Inferring ecosystem dynamics from atmospheric observations