seagrid.ostia#

OSTIA sea-surface temperature, as a module.

Every member of seagrid.sources.sst.ostia.OSTIA is available as a module attribute:

from seagrid import ostia

ds = ostia.open_dataset("2010-06-01")                    # sst in °C
monthly = ostia.open_dataset("2010-06-01", timetype="monthly")
nrt = ostia.source(variant="nrt")                        # near real time

See seagrid.sources.module.

Functions

open_dataset([dtm, data_var, nrt])

Open one time step, downloading it first if it is not cached.

source([variant])

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

seagrid.ostia.open_dataset(dtm=None, data_var=None, *, nrt=False, **kwargs)[source]#

Open one time step, downloading it first if it is not cached.

As seagrid.sources.DataSource.open_dataset(), plus nrt.

Parameters:
  • dtm (str, pandas.Timestamp, numpy.datetime64 or datetime, optional) – Any time in the time step. Default: the first available date.

  • data_var (str, optional) – Return only this variable. Default: all variables.

  • nrt (bool, optional) – Use the near-real-time variant for dates from 2007 on. Default False.

  • **kwargs – timetype, resolution, force, lat_bounds, lon_bounds and keywords for xarray.open_dataset().

Returns:

xarray.Dataset

Return type:

Dataset

seagrid.ostia.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