TemporalFrame

class gwcs.coordinate_frames.TemporalFrame(axes_order=(0, ), reference_time=None, reference_frame=<class 'astropy.time.core.Time'>, unit=None, axes_names=None, name=None, axis_physical_types=None)[source]

Bases: gwcs.coordinate_frames.CoordinateFrame

A coordinate frame for time axes.

Parameters:
axes_order : tuple or int

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

reference_frame : object

The object to instantiate to represent the time coordinate. Defaults to astropy.time.Time. Use partial functions to customise the Time instance.

reference_time : astropy.time.Time or None

Reference time, the time of the 0th coordinate. If none the values of the axis are assumed to be valid times.

unit : str or units.Unit instance

Spectral unit.

axes_names : str

Spectral axis name.

name : str

Name for this frame.

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