SpectralFrame

class gwcs.coordinate_frames.SpectralFrame(axes_order=(0,), reference_frame=None, unit=None, axes_names=None, name=None, axis_physical_types=None, reference_position=None)[source]

Bases: CoordinateFrame

Represents Spectral Frame

Parameters:
axes_ordertuple or int

A dimension in the input data that corresponds to this axis.

reference_frameastropy.coordinates.builtin_frames

Reference frame (usually used with output_frame to convert to world coordinate objects).

unitstr or units.Unit instance

Spectral unit.

axes_namesstr

Spectral axis name.

namestr

Name for this frame.

reference_positionstr

Reference position - one of STANDARD_REFERENCE_POSITION

Methods Summary

coordinate_to_quantity(*coords)

Given a rich coordinate object return an astropy quantity object.

coordinates(*args)

Create world coordinates object

Methods Documentation

coordinate_to_quantity(*coords)[source]

Given a rich coordinate object return an astropy quantity object.

coordinates(*args)[source]

Create world coordinates object