Made code work for descending passes and for orbits that switch from ASC to DESC.