seagrid.glorys#

GLORYS12 daily reanalysis (Mercator Ocean THREDDS), as a module.

Every member of seagrid.sources.model.glorys.Glorys is available as a module attribute:

from seagrid import glorys

glorys.check_auth()                                  # login in ~/.netrc
ds = glorys.open_dataset("2010-06-01")               # uvel, vvel, wvel
ds = glorys.open_dataset("2010-06-01", tracers=True) # + temp, salt
grid = glorys.grid_definition()                      # dxv, dyu, dzt, kmt
glorys.download_range("2010-01-01", "2010-12-31")
glorys.downloaded("2010-01-01", "2010-12-31")

plus the 2.x functions retrieve() and basedir(). See seagrid.sources.module.

Functions

basedir()

Return the data directory of the product (the 2.x name of datadir()).

retrieve([dtm, data_var, force])

Download one day of one variable (the 2.x name of download).

source([variant])

Return a source object, optionally for a variant or with overrides.

seagrid.glorys.basedir()[source]#

Return the data directory of the product (the 2.x name of datadir()).

Return type:

Path

seagrid.glorys.retrieve(dtm='2020-01-01', data_var='uvel', force=False)[source]#

Download one day of one variable (the 2.x name of download).

Parameters:
Returns:

pathlib.Path – The cached Zarr store.

Return type:

Path

seagrid.glorys.source(variant=None, **overrides)#

Return a source object, optionally for a variant or with overrides.

Parameters:
  • variant (str, optional) – Product variant, e.g. "nrt".

  • **overrides – Settings that replace the configured ones for this object.

Returns:

DataSource

Return type:

DataSource