safe_sidereal_time

sofia_redux.scan.utilities.utils.safe_sidereal_time(t, kind, longitude=None, model=None)[source]

Calculate sidereal time, even if offline.

This is a wrapper around Time.sidereal_time() in cases where the IERS table cannot be downloaded.

Parameters:
tTime

The time for which to calculate the sidereal time.

kindstr

May be one of {‘mean’, ‘apparent’} i.e., accounting for precession only, or also for nutation.

longitudeunits.Quantity or float or numpy.ndarray, optional

The longitude on the Earth at which to compute the Earth rotation angle. If a float is provided, it should be in degrees.

modelstr, optional

The precession model to use.

Returns:
longitudeunits.Quantity

The local sidereal time in hourangle units.