SofiaGyroDriftsInfo

class sofia_redux.scan.custom.sofia.info.gyro_drifts.SofiaGyroDriftsInfo[source]

Bases: InfoBase

Initialize the SOFIA gyro drift information.

Contains information on the SOFIA gyro drifts and provides methods to correct integrations/scans.

Attributes Summary

lengths

Return the length of each drift (utc range).

log_id

Return the string log ID for the info.

n_drifts

Return the number of drifts (utc ranges) available.

Methods Summary

add_drifts()

Read the FITS header options and create drifts.

apply_configuration()

Apply the configuration to the information.

correct(integration)

Apply the gyro drift corrections to an integration.

get_drift_deltas()

Return the offsets for all drifts.

get_drift_utc_ranges()

Return the drift UTC ranges.

get_max()

Return the maximum drift.

get_rms()

Return the drift RMS.

get_table_entry(name)

Return a parameter value for the given name.

validate_time_range(scan)

Ensure the UTC time ranges for each drift are correct.

Attributes Documentation

lengths

Return the length of each drift (utc range).

Returns:
astropy.units.Quantity (numpy.array)

An array containing the length of each drift.

log_id

Return the string log ID for the info.

The log ID is used to extract certain information from table data.

Returns:
str
n_drifts

Return the number of drifts (utc ranges) available.

Returns:
int

Methods Documentation

add_drifts()[source]

Read the FITS header options and create drifts.

Returns:
None
apply_configuration()[source]

Apply the configuration to the information.

Returns:
None
correct(integration)[source]

Apply the gyro drift corrections to an integration.

Equatorial offsets are added to the integration frames.

Parameters:
integrationIntegration
Returns:
None
get_drift_deltas()[source]

Return the offsets for all drifts.

Returns:
astropy.units.Quantity (numpy.ndarray)
get_drift_utc_ranges()[source]

Return the drift UTC ranges.

Returns:
numpy.ndarray (float)
get_max()[source]

Return the maximum drift.

Returns:
astropy.units.Quantity

The maximum drift.

get_rms()[source]

Return the drift RMS.

Returns:
astropy.units.Quantity

The drift RMS.

get_table_entry(name)[source]

Return a parameter value for the given name.

Parameters:
namestr

The name of the parameter to retrieve.

Returns:
value
validate_time_range(scan)[source]

Ensure the UTC time ranges for each drift are correct.

Returns:
None