SkyCoordInfo¶
- class astropy.coordinates.SkyCoordInfo(bound=False)[source]¶
Bases:
MixinInfoContainer for meta information like name, description, format. This is required when the object is used as a mixin column within a table, but can be used as a general way to store meta information.
Attributes Summary
Methods Summary
default_format(val)new_like(skycoords, length[, ...])Return a new SkyCoord instance which is consistent with the input SkyCoord objects
skycoordsand haslengthrows.Attributes Documentation
- attrs_from_parent = {'unit'}¶
- unit¶
Methods Documentation
- new_like(skycoords, length, metadata_conflicts='warn', name=None)[source]¶
Return a new SkyCoord instance which is consistent with the input SkyCoord objects
skycoordsand haslengthrows. Being “consistent” is defined as being able to set an item from one to each of the rest without any exception being raised.This is intended for creating a new SkyCoord instance whose elements can be set in-place for table operations like join or vstack. This is used when a SkyCoord object is used as a mixin column in an astropy Table.
The data values are not predictable and it is expected that the consumer of the object will fill in all values.
- Parameters:
- skycoords
python:list List of input SkyCoord objects
- length
python:int Length of the output skycoord object
- metadata_conflicts
python:str(‘warn’|’error’|’silent’) How to handle metadata conflicts
- name
python:str Output name (sets output skycoord.info.name)
- skycoords
- Returns:
- skycoord
SkyCoord(or subclass) Instance of this class consistent with
skycoords
- skycoord