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