EarthLocationAttribute#
- class astropy.coordinates.EarthLocationAttribute(default=None, secondary_attribute='', *, doc='A frame attribute')[source]#
Bases:
AttributeA frame attribute that can act as a
EarthLocation. It can be created as anything that can be transformed to theITRSframe, but always presents as anEarthLocationwhen accessed after creation.- Parameters:
- default
object Default value for the attribute if not provided
- secondary_attribute
python:str Name of a secondary instance attribute which supplies the value if
default is Noneand no value was supplied during initialization.- doc
python:str Description of the frame attribute for help and documentation
- default
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:
- out, convertedcorrectly-typed
object, bool Tuple consisting of the correctly-typed object and a boolean which indicates if conversion was actually performed.
- out, convertedcorrectly-typed
- Raises:
ValueErrorIf the input is not valid for this attribute.