High-energy particles emitted by the sun and other celestial bodies can potentially harm spacecraft or astronauts.