Metadata
MetadataReader
def MetadataReader(
obsid
):
A class to read and manage metadata for a given observation ID (obsid). Parameters ———- obsid : str The observation ID for which metadata is to be read and managed. Attributes ———- obsid : str The observation ID. prodid : ProductPathfinder An instance of ProductPathfinder initialized with the observation ID and “_COLOR” suffix. labelpath : pathlib.Path The local path to the label file. label : labels.HiRISE_Label An instance of HiRISE_Label initialized with the label path. campt_out_path : pathlib.Path The path to the campt output CSV file. campt_out_df : pandas.DataFrame A DataFrame containing the contents of the campt output CSV file. Methods ——- read_edr_index() Reads the EDR index for the HiRISE instrument. download_label() Downloads the label file if it does not exist locally.
get_north_azimuths_from_SPICE
def get_north_azimuths_from_SPICE(
obsids
):
Calculate the North Azimuth for a list of observation IDs using SPICE metadata. Parameters ———- obsids : list of str List of observation IDs for which to calculate the North Azimuth direction. Returns ——- pandas.DataFrame DataFrame containing the observation IDs and their corresponding North Azimuth values. The DataFrame has two columns: ‘OBSERVATION_ID’ and ‘north_azimuth’.