Modified geostrophy in the thermosphere