GLODAPv2BGCDataset

GLODAPv2BGCDataset#

class roms_tools.datasets.lat_lon_datasets.GLODAPv2BGCDataset(*, filename: str | ~pathlib.Path | list[str | ~pathlib.Path], start_time: ~datetime.datetime | None = None, end_time: ~datetime.datetime | None = None, dim_names: dict[str, str] = <factory>, var_names: dict[str, str] = <factory>, opt_var_names: dict[str, str] = <factory>, climatology: bool = False, has_encoded_times: bool = False, needs_lateral_fill: bool = True, use_dask: bool = False, chunks: dict[str, int] | None = None, initial_slice_bounds: dict[str, tuple[int | float, int | float]] | None = None, read_zarr: bool = False, allow_flex_time: bool = False, start_time_pad: bool = True, end_time_pad: bool = True, apply_post_processing: bool = True, ds_loader_fn: ~collections.abc.Callable[[], ~xarray.core.dataset.Dataset] | None = None)#

GLODAPv2 2016b mapped to ROMS BGC variable names.

Loads six core BGC tracers plus temperature and salinity (T/S). T/S serve two roles:

  1. Unit conversion in post_process(): µmol kg⁻¹ → mmol m⁻³ using in-situ density (TEOS-10 gsw.rho with pressure from depth).

  2. Density coordinate for density-space vertical interpolation when the downstream pipeline uses bgc_interpolation_method of "density" / "density_mld".

After vertical interpolation the pipeline drops T/S via the bgc_source_ts mechanism; they are never written to ROMS output.

Variables loaded#

BGC (kept in output): PO4, NO3, SiO3 (silicate), O2 (oxygen), DIC (TCO2), ALK (TAlk).

Ancillary (for density, dropped by pipeline after vertical regrid): temperature, salinity (stored internally as temp_bgc / salt_bgc).

Notes

GLODAPv2 values are in µmol kg⁻¹. post_process() converts to mmol m⁻³ using in-situ density (TEOS-10 gsw.rho with pressure from depth) divided by 1000.

Methods

GLODAPv2BGCDataset.post_process()

Convert BGC tracers from µmol kg⁻¹ to mmol m⁻³.

Attributes

GLODAPv2BGCDataset.bgc_source_ts

GLODAPv2BGCDataset.dim_names

GLODAPv2BGCDataset.var_names

GLODAPv2BGCDataset.opt_var_names

GLODAPv2BGCDataset.filename

GLODAPv2BGCDataset.is_global

GLODAPv2BGCDataset.ds