EmptyFrame#
- class gwcs.coordinate_frames.EmptyFrame(name=None)[source]#
Bases:
CoordinateFrame
Represents a “default” detector frame. This is for use as the default value for input frame by the WCS object.
Attributes Summary
Names of axes in the frame.
A tuple of indices which map inputs to axes.
Type of this frame : 'SPATIAL', 'SPECTRAL', 'TIME'.
The axis physical types for this frame.
A custom name of this frame.
The number of axes in this frame.
Reference frame, used to convert to world coordinate objects.
This property is used by the low level WCS API in Astropy.
The unit of this frame.
The APE 14 object classes for this frame.
The APE 14 object components for this frame.
Methods Summary
from_high_level_coordinates
(*high_level_coords)Convert high level coordinate objects to "values" as described by this frame.
to_high_level_coordinates
(*values)Convert "values" to high level coordinate objects described by this frame.
Attributes Documentation
- axes_names#
- axes_order#
- axes_type#
- axis_physical_types#
- name#
A custom name of this frame.
- naxes#
- reference_frame#
- serialized_classes#
This property is used by the low level WCS API in Astropy.
By providing it we can duck type as a low level WCS object.
- unit#
- world_axis_object_classes#
- world_axis_object_components#
The APE 14 object components for this frame.
Methods Documentation
- from_high_level_coordinates(*high_level_coords)[source]#
Convert high level coordinate objects to “values” as described by this frame.
“values” are the coordinates in array or scalar form, and high level objects are things such as
SkyCoord
orQuantity
. See Shared Python Interface for World Coordinate Systems for details.- Parameters:
- high_level_coordinates
One (or more) high level object describing the coordinate.
- Returns:
- values
numbers.Number
ornumpy.ndarray
naxis
number of coordinates as scalars or arrays.
- values
- to_high_level_coordinates(*values)[source]#
Convert “values” to high level coordinate objects described by this frame.
“values” are the coordinates in array or scalar form, and high level objects are things such as
SkyCoord
orQuantity
. See Shared Python Interface for World Coordinate Systems for details.- Parameters:
- values
numbers.Number
,numpy.ndarray
, orQuantity
naxis
number of coordinates as scalars or arrays.
- values
- Returns:
- high_level_coordinates
One (or more) high level object describing the coordinate.