CoordinateFrame¶
-
class
gwcs.coordinate_frames.CoordinateFrame(naxes, axes_type, axes_order, reference_frame=None, reference_position=None, unit=None, axes_names=None, name=None)[source]¶ Bases:
objectBase class for CoordinateFrames.
Parameters: naxes : int
Number of axes.
axes_type : str
One of [“SPATIAL”, “SPECTRAL”, “TIME”]
axes_order : tuple of int
A dimension in the input data that corresponds to this axis.
reference_frame : astropy.coordinates.builtin_frames
Reference frame (usually used with output_frame to convert to world coordinate objects).
reference_position : str
Reference position - one of
STANDARD_REFERENCE_POSITIONunit : list of astropy.units.Unit
Unit for each axis.
axes_names : list
Names of the axes in this frame.
name : str
Name of this frame.
Attributes Summary
axes_namesNames of axes in the frame. axes_orderA tuple of indices which map inputs to axes. axes_typeType of this frame : ‘SPATIAL’, ‘SPECTRAL’, ‘TIME’. nameA custom name of this frame. naxesThe number of axes intheis frame. reference_framereference_positionunitThe unit of this frame. Methods Summary
coordinates(*args)Create world coordinates object input_axes([start_frame])Computes which axes in start_framecontribute to each axis in the current frame.Attributes Documentation
-
axes_names¶ Names of axes in the frame.
-
axes_order¶ A tuple of indices which map inputs to axes.
-
axes_type¶ Type of this frame : ‘SPATIAL’, ‘SPECTRAL’, ‘TIME’.
-
name¶ A custom name of this frame.
-
naxes¶ The number of axes intheis frame.
-
reference_frame¶
-
reference_position¶
-
unit¶ The unit of this frame.
Methods Documentation
-
input_axes(start_frame=None)[source]¶ Computes which axes in
start_framecontribute to each axis in the current frame.Parameters: start_frame : ~gwcs.coordinate_frames.CoordinateFrame
A frame in the WCS pipeline The transform between start_frame and the current frame is used to compute the mapping inputs: outputs.
-