JulianEpoch

class sofia_redux.scan.coordinate_systems.epoch.epoch.JulianEpoch(equinox=None, immutable=False)[source]

Bases: Epoch

Initialize a Julian epoch.

The JulianEpoch is an extension of the Epoch class which will always set and return Julian years when necessary. The epoch and equinox will default to J2000 unless explicitly defined.

Parameters:
equinoxparameter, optional

The given equinox can be a string, int, float, Time, Header, FK4, FK5, or Epoch, or numpy.ndarray or list

immutablebool, optional

If True, the equinox will be fixed and cannot be altered by standard methods.

Attributes Summary

default_epoch

default_format

year

Return the Julian year.

Methods Summary

copy()

Return a copy of the JulianEpoch.

get_equinox([equinox])

Return an astropy equinox frame from the given input.

get_indices(indices)

Return selected epoch for given indices.

Attributes Documentation

default_epoch = 'J2000'
default_format = 'jyear'
year

Return the Julian year.

Returns:
float or numpy.ndarray (float)

Methods Documentation

copy()[source]

Return a copy of the JulianEpoch.

Returns:
JulianEpoch
classmethod get_equinox(equinox=None)[source]

Return an astropy equinox frame from the given input.

Parameters:
equinoxparameter

The given equinox can be a string, int, float, Time, Header, FK4, FK5, or Epoch, or numpy.ndarray or list

Returns:
equinoxastropy.units.Time
get_indices(indices)[source]

Return selected epoch for given indices.

Parameters:
indicesslice or list or int or numpy.ndarray (int)

The indices to extract.

Returns:
JulianEpoch