redback.get_data.otter.OtterDataGetter

class redback.get_data.otter.OtterDataGetter(transient: str, transient_type: str, obs_type: str = 'uvoir')[source]

Bases: DataGetter

Data getter for OTTER (Open multiwavelength Transient Event Repository)

Follows redback pattern: converts raw OTTER data to CSV with ALL data modes (flux_density, flux, magnitude) computed in convert_raw_data_to_csv(). The Transient class handles data_mode selection when loading.

Parameters:
  • transient (str) – Name of the transient (e.g., ‘AT2017gfo’, ‘SN2011fe’)

  • transient_type (str) – Type of transient (kilonova, supernova, tidal_disruption_event)

  • obs_type (str, optional) – Observation type to retrieve: ‘uvoir’ (default), ‘radio’, ‘xray’

__init__(transient: str, transient_type: str, obs_type: str = 'uvoir') None[source]

Constructor class for OTTER data getter.

Parameters:
  • transient (str) – Name of the transient, e.g., ‘AT2017gfo’

  • transient_type (str) – Type of transient. Must be from redback.get_data.otter.OtterDataGetter.VALID_TRANSIENT_TYPES.

  • obs_type (str or list, optional) – Observation type: ‘uvoir’, ‘radio’, ‘xray’, or list of these. Default is ‘uvoir’.

__call__(**kwargs)

Call self as a function.

Methods

__init__(transient, transient_type[, obs_type])

Constructor class for OTTER data getter.

collect_data()

Query OTTER and save raw data

convert_raw_data_to_csv()

Convert OTTER data to redback format with ALL data modes.

get_data()

Downloads the raw data and produces a processed .csv file.

Attributes

VALID_OBS_TYPES

VALID_TRANSIENT_TYPES

metadata_path

Path to the metadata file.

obs_type

Return observation type

transient_type

Checks if the transient type is valid when setting.

collect_data() None[source]

Query OTTER and save raw data

convert_raw_data_to_csv() DataFrame[source]

Convert OTTER data to redback format with ALL data modes.

Following OpenDataGetter pattern: - Compute magnitude, flux_density, and flux columns - Add time relative to discovery/trigger - Include band and system information

Returns:

The processed data.

Return type:

pandas.DataFrame

get_data() DataFrame

Downloads the raw data and produces a processed .csv file.

Returns:

The processed data

Return type:

pandas.DataFrame

property metadata_path

Path to the metadata file. :rtype: str

Type:

return

property obs_type: str

Return observation type

property transient_type: str

Checks if the transient type is valid when setting.

Returns:

The transient type.

Return type:

str