redback.get_data.fink.FinkDataGetter
- class redback.get_data.fink.FinkDataGetter(transient: str, transient_type: str, source='ztf')[source]
Bases:
DataGetter- __init__(transient: str, transient_type: str, source='ztf') None[source]
Constructor class for a data getter. The instance will be able to downloaded the specified Swift data.
- Parameters:
transient (str) – Telephone number of GRB, e.g., ‘GRB140903A’ or ‘140903A’ are valid inputs.
transient_type (str) – Type of the transient. Must be from redback.get_data.open_data.FinkDataGetter.VALID_TRANSIENT_TYPES.
source – The source of the data. Must be either ‘ztf’ or ‘lsst’. Default is ‘ztf’.
- __call__(**kwargs)
Call self as a function.
Methods
__init__(transient, transient_type[, source])Constructor class for a data getter.
Downloads the data from astrocats and saves it into the raw file path.
Converts the raw data into processed data and saves it into the processed file path.
get_data()Downloads the raw data and produces a processed .csv file.
Attributes
VALID_TRANSIENT_TYPESThe object ID i.e., the transient name :rtype: str
Checks if the transient type is valid when setting.
The fink raw data url.
- convert_raw_data_to_csv() DataFrame | None[source]
Converts the raw data into processed data and saves it into the processed file path. The data columns are in OpenDataGetter.PROCESSED_FILE_COLUMNS.
- 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 objectId: str
The object ID i.e., the transient name :rtype: str
- Type:
return
- property transient_type: str
Checks if the transient type is valid when setting.
- Returns:
The transient type.
- Return type:
str
- property url: str
The fink raw data url. :rtype: str
- Type:
return