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
|
Return the data directory of the product (the 2.x name of |
|
Download one day of one variable (the 2.x name of |
|
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:
- 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:
dtm (
str,pandas.Timestamp,numpy.datetime64ordatetime, optional) – Day.data_var (
str, optional) – Variable. Default"uvel".force (
bool, optional) – Download again even if cached.
- Returns:
pathlib.Path– The cached Zarr store.- Return type: