[AstroPy] Altitude and Azimuth weirdness

Jeffrey Brent McBeth mcbeth at broggs.org
Thu May 26 09:59:12 EDT 2016


I have an observer on the ground, and an object in low earth orbit, both coordinates given in ITRS.

Now, I want to know where to look at that object.  Example code that I am trying is given below


#+BEGIN_SRC python
#!/usr/bin/env python

import astropy.coordinates
from astropy.time import Time
import astropy.units as u

iss = astropy.coordinates.ITRS([-4168468,-2886384,4484231]*u.meter)
ground = astropy.coordinates.ITRS([-2741286,-4319576,3796101]*u.meter)

aa = astropy.coordinates.AltAz(location=ground,obstime='J2000')

print iss.transform_to(aa)

aaOther = astropy.coordinates.AltAz(location=ground,obstime='J2005')

print iss.transform_to(aaOther)
#+END_SRC


#+BEGIN_RESULTS
#+END_RESULTS
<AltAz Coordinate (obstime=J2000.000, location=(-2741286.0, -4319575.999999999, 3796101.0) m, pressure=0.0 hPa, temperature=0.0 deg_C, relative_humidity=0, obswl=1.0 micron): (az, alt, distance) in (deg, deg, m)
    (292.00525871, 71.67647035, 2136448.14280338)>
<AltAz Coordinate (obstime=J2005.000, location=(-2741286.0, -4319575.999999999, 3796101.0) m, pressure=0.0 hPa, temperature=0.0 deg_C, relative_humidity=0, obswl=1.0 micron): (az, alt, distance) in (deg, deg, m)
    (245.6707333, 24.06189178, 1825914387.38354349)>

The problem that I'm seeing is that the location of where to look changes drastically based on the observation time even though both coordinates are rotating with the earth at all times and so are time agnostic.  

I won't yet start poking at the problem that 

Please illuminate my ignorance...

Jeff
-- 
"The man who does not read good books has no advantage over 
 the man who cannot read them."
 -- Mark Twain



More information about the AstroPy mailing list