Less copy-pastah

Reduces copy-pasted code in the atmospheric monitor computer code.