- class astropy.coordinates.Latitude(angle, unit=None, **kwargs)#
Latitude-like angle(s) which must be in the range -90 to +90 deg.
A Latitude object is distinguished from a pure
Angleby virtue of being constrained so that:
-90.0 * u.deg <= angle(s) <= +90.0 * u.deg
Any attempt to set a value outside that range will result in a
The input parser is flexible and supports all of the input formats supported by
The angle value(s). If a tuple, will be interpreted as
(h, m, s)or
(d, m, s)depending on
unit. If a string, it will be interpreted following the rules described for
angleis a sequence or array of strings, the resulting values will be in the given
unit, or if
Noneis provided, the unit will be taken from the first given value.
- unitastropy:unit-like, optional
The unit of the value specified for the angle. This may be any string that
Unitunderstands, but it is better to give an actual unit object. Must be an angular unit.