pgb_utils.utils

utils contains functions that facilitate interacting with Pitt-Google Broker’s data and services.

pgb_utils.pgb_utils.utils.alert_dict_to_dataframe(alert_dict)[source]

Package a ZTF alert dictionary into a dataframe.

Adapted from: https://github.com/ZwickyTransientFacility/ztf-avro-alert/blob/master/notebooks/Filtering_alerts.ipynb

Return type

DataFrame

pgb_utils.pgb_utils.utils.alert_dict_to_table(alert_dict)[source]

Package a ZTF alert dictionary into an Astopy Table.

Return type

Table

pgb_utils.pgb_utils.utils.ztf_fid_names()[source]

Return a dictionary mapping the ZTF fid (filter ID) to the common name.

Return type

dict