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: object

Base 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_POSITION

unit : 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_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 Summary

coordinates(*args) Create world coordinates object
input_axes([start_frame]) Computes which axes in start_frame contribute 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

coordinates(*args)[source]

Create world coordinates object

input_axes(start_frame=None)[source]

Computes which axes in start_frame contribute 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.