Cosmogenic nuclides (or cosmogenic isotopes) are rare nuclides (isotopes) created when a high-energy cosmic ray interacts with the nucleus of an in situ Solar System atom, causing nucleons (protons and neutrons) to be expelled from the atom (see cosmic ray spallation). These nuclides are produced within Earth materials such as rocks or soil, in Earth's atmosphere, and in extraterrestrial items such as meteoroids. By measuring cosmogenic nuclides, scientists are able to gain insight into a range of geological and astronomical processes. There are both radioactive and stable cosmogenic nuclides. Some of these radionuclides are tritium, carbon-14 and phosphorus-32.