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:
Unit conversion in
post_process(): µmol kg⁻¹ → mmol m⁻³ using in-situ density (TEOS-10 gsw.rho with pressure from depth).Density coordinate for density-space vertical interpolation when the downstream pipeline uses
bgc_interpolation_methodof"density"/"density_mld".
After vertical interpolation the pipeline drops T/S via the
bgc_source_tsmechanism; 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-10gsw.rhowith pressure from depth) divided by 1000.Methods
Convert BGC tracers from µmol kg⁻¹ to mmol m⁻³.
Attributes
GLODAPv2BGCDataset.bgc_source_tsGLODAPv2BGCDataset.dim_namesGLODAPv2BGCDataset.var_namesGLODAPv2BGCDataset.opt_var_namesGLODAPv2BGCDataset.filenameGLODAPv2BGCDataset.is_globalGLODAPv2BGCDataset.ds