glider_ingest.processor

Module Contents

class glider_ingest.processor.Processor[source]

A class to process glider data

add_mission_vars(mission_vars: list[glider_ingest.variable.Variable] | list[str] | glider_ingest.variable.Variable | str)[source]

Add variables to the mission_vars list.

Parameters:
  • mission_vars – Can be any of:

  • object (- Single Variable)

  • string (- Single)

  • objects (- List of Variable)

  • strings (- Mixed list of Variables and)

  • strings

process(return_ds=True)[source]
remove_mission_vars(vars_to_remove: list[str] | str)[source]

Remove variables from mission_vars list by data source name.

Parameters:

vars_to_remove – Can be a single string or list of strings representing data_source_names to remove

save(save_path=None)[source]
dbd: dbdreader.MultiDBD | None
property dbd_variables: list
property df: pandas.DataFrame
ds: xarray.Dataset | None
property eng_dbd_vars: list

Get the engineering DBD variables.

property eng_df: pandas.DataFrame
property eng_ds: xarray.Dataset
property eng_vars: list

Get engineering variables (non-calculated vars starting with m_)

property glider_id: str | None

Get the glider ID.

glider_ids: dict
property glider_name: str | None

Get the glider name.

include_gridded_data: bool
property log_level: str

Get the current logging level.

property logger: logging.Logger

Get the logger instance for this processor.

memory_card_copy_path: pathlib.Path
mission_end_date: datetime.datetime
property mission_folder_name: str

Get the mission folder name.

property mission_folder_path: pathlib.Path

Get the mission folder path.

mission_num: str
mission_start_date: datetime.datetime
property mission_title: str

Get the mission title.

mission_vars: list[glider_ingest.variable.Variable]
property mission_year: str

Get the mission year.

property netcdf_filename: str

Get the NetCDF filename.

property netcdf_output_path: pathlib.Path

Get the NetCDF path.

recopy_files: bool
property sci_dbd_vars: list

Get the science DBD variables.

property sci_df: pandas.DataFrame
property sci_ds: xarray.Dataset
property sci_vars: list

Get science variables (all non-engineering variables)

property wmo_id: str | None

Get the WMO ID.

wmo_ids: dict
working_dir: pathlib.Path