BesselianEpoch

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

Bases: Epoch

Initialize a Besselian epoch.

The BesselianEpoch is an extension of the Epoch class which will always set and return Besselian years when necessary. The epoch and equinox will default to B1950 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 Besselian year.

Methods Summary

copy()

Return a copy of the BesselianEpoch.

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 = 'B1950'
default_format = 'byear'
year

Return the Besselian year.

Returns:
float or numpy.ndarray (float)

Methods Documentation

copy()[source]

Return a copy of the BesselianEpoch.

Returns:
BesselianEpoch
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:
BesselianEpoch