The study of the chemical composition, reactions, and processes that occur within planetary atmospheres and surfaces.