CustomFrame
- class erwans3.Frame_class.CustomFrame(*args, copy=True, representation_type=None, differential_type=None, **kwargs)
Bases:
BaseCoordinateFrameA super class used to generate custom astropy frames.
The custom frames use ICRF axis but a custom origin point based on either - coordinates - or a body
Attributes:
- default_representationclass
Specifies the default representation used in the custom frame.
- default_differentialclass
Specifies the default differential used in the custom frame.
- obstimeTimeAttribute
Time attribute representing the reference time of the frame.
- :meth:`~erwans3.Frame_class.init_from_ref_coord`
Initialize a frame class based on origin coordinates stored in another astropy frame.
- :meth:`~erwans3.Frame_class.init_from_body`
Initialize a frame class based on origin coordinates of a solar system body known by astropy.
- :meth:`~erwans3.Frame_class.init_from_spice`
Work in progress.
Attributes Summary
Default representation for differential data (e.g., velocity)
Default representation for position data
Mapping for frame-specific component names
Methods Summary
init_from_body(body)Initialize a frame class based on a body as origin coordinate.
init_from_ref_coord(ref_coord)Initialize a frame class based on origin coordinate
init_from_spice(dict_spice)Initialize a frame class based on a body known by spice The frame can be not ICRF (axis rotate with the body)
Attributes Documentation
- default_differential
Default representation for differential data (e.g., velocity)
- default_representation
Default representation for position data
- frame_attributes = {'obstime': <astropy.coordinates.attributes.TimeAttribute object>}
- frame_specific_representation_info
Mapping for frame-specific component names
- name = 'customframe'
- obstime = <Time object: scale='tt' format='jyear_str' value=J2000.000>
Methods Documentation
- init_from_body(body: str)
Initialize a frame class based on a body as origin coordinate.
The body has to be known by astropy.
Parameters:
- ref_coord
str Name of the body
- ref_coord
- init_from_ref_coord(ref_coord: Union[BaseCoordinateFrame, SkyCoord])
Initialize a frame class based on origin coordinate
that are stored in another astropy frame (reference frame of the origin coordinate)
Parameters:
- ref_coord
BaseCoordinateFrameorSkyCoord Reference coordinate or frame to define the custom frame’s origin.
- ref_coord
- init_from_spice(dict_spice)
Initialize a frame class based on a body known by spice The frame can be not ICRF (axis rotate with the body)
Not Implemented.