AltAz¶
-
class
astropy.coordinates.AltAz(*args, **kwargs)[source] [edit on github]¶ Bases:
astropy.coordinates.BaseCoordinateFrameA coordinate or frame in the Altitude-Azimuth system (Horizontal coordinates). Azimuth is oriented East of North (i.e., N=0, E=90 degrees).
This frame is assumed to include refraction effects if the
pressureframe attribute is non-zero.This frame has the following frame attributes, which are necessary for transforming from AltAz to some other system:
obstimeThe time at which the observation is taken. Used for determining the position and orientation of the Earth.
locationThe location on the Earth. This can be specified either as an
EarthLocationobject or as anything that can be transformed to anITRSframe.
pressureThe atmospheric pressure as an
Quantitywith pressure units. This is necessary for performing refraction corrections. Setting this to 0 (the default) will disable refraction calculations when transforming to/from this frame.
temperatureThe ground-level temperature as an
Quantityin deg C. This is necessary for performing refraction corrections.
relative_humidityThe relative humidity as a number from 0 to 1. This is necessary for performing refraction corrections.
obswl- The average wavelength of observations as an
Quantity with length units. This is necessary for performing refraction corrections.
- The average wavelength of observations as an
Parameters: representation :
BaseRepresentationor NoneA representation object or None to have no data (or use the other keywords)
az :
Angle, optional, must be keywordThe Azimuth for this object (
altmust also be given andrepresentationmust be None).alt :
Angle, optional, must be keywordThe Altitude for this object (
azmust also be given andrepresentationmust be None).distance :
Quantity, optional, must be keywordThe Distance for this object along the line-of-sight.
copy : bool, optional
If
True(default), make copies of the input coordinate arrays. Can only be passed in as a keyword argument.Notes
The refraction model is based on that implemented in ERFA, which is fast but becomes inaccurate for altitudes below about 5 degrees. Near and below altitudes of 0, it can even give meaningless answers, and in this case transforming to AltAz and back to another frame can give highly discrepent results. For much better numerical stability, leaving the
pressureat0(the default), disabling the refraction correction (yielding “topocentric” horizontal coordinates).Attributes Summary
default_representationframe_attributesframe_specific_representation_infolocationnameobstimeobswlpressurerelative_humidityseczSecant if the zenith angle for this coordinate, a common estimate of the airmass. temperaturezenThe zenith angle for this coordinate Attributes Documentation
-
default_representation¶
-
frame_attributes= OrderedDict([('obstime', <astropy.coordinates.baseframe.TimeFrameAttribute object>), ('location', <astropy.coordinates.baseframe.EarthLocationAttribute object>), ('pressure', <astropy.coordinates.baseframe.QuantityFrameAttribute object>), ('temperature', <astropy.coordinates.baseframe.QuantityFrameAttribute object>), ('relative_humidity', <astropy.coordinates.baseframe.FrameAttribute object>), ('obswl', <astropy.coordinates.baseframe.QuantityFrameAttribute object>)])¶
-
frame_specific_representation_info¶
-
location= None¶
-
name= 'altaz'¶
-
obstime= None¶
-
obswl= <Quantity 1.0 micron>¶
-
pressure= <Quantity 0.0 hPa>¶
-
relative_humidity= 0¶
-
secz¶ Secant if the zenith angle for this coordinate, a common estimate of the airmass.
-
temperature= <Quantity 0.0 deg_C>¶
-
zen¶ The zenith angle for this coordinate