A model for 5577Å and 8446Å atomic oxygen dayglow emission at midaltitudes