EarthLocationAttribute#
- class astropy.coordinates.EarthLocationAttribute(default=None, secondary_attribute='')[source]#
Bases:
Attribute
A frame attribute that can act as a
EarthLocation
. It can be created as anything that can be transformed to theITRS
frame, but always presents as anEarthLocation
when accessed after creation.- Parameters:
Methods Summary
convert_input
(value)Checks that the input is a Quantity with the necessary units (or the special value
0
).Methods Documentation
- convert_input(value)[source]#
Checks that the input is a Quantity with the necessary units (or the special value
0
).- Parameters:
- value
object
Input value to be converted.
- value
- Returns:
- Raises:
ValueError
If the input is not valid for this attribute.