Skip to content

OISST

GlobalNOAA

Import path: earth2studio.data.OISST

View source on GitHub

Documentation

NOAA daily 0.25° Optimum Interpolation Sea Surface Temperature (OISST v2.1), read directly from NCEI.

NCEI publishes a preliminary analysis for each day about one day later and replaces it with the final analysis about two weeks later. This source reads the final file when it exists and otherwise the preliminary one, so recent dates are available for real-time use. PlanetaryComputerOISST serves the final product only.

Values are in kelvin on the native 720 x 1440 cell-centred grid, with latitude from north to south and NaN over land. Subdaily request times select that day's analysis. The sst_date coordinate records the date of the analysis returned for each requested time.

Parameters:

  • lag_days (int, default: 0 ) –

    Days before the requested date to start searching, by default 0. For example, 1 uses the previous day's analysis, as for a forecast that may only use data available at its initial time.

  • lookback_days (int, default: 1 ) –

    Number of consecutive days to try, newest first, starting lag_days before the requested date, by default 1. Values above 1 fall back to an older analysis when the newest one is not yet published.

  • cache (bool, default: True ) –

    Cache downloaded NetCDF files in the local filesystem cache, by default True

  • verbose (bool, default: True ) –

    Show download progress, by default True

  • async_timeout (int, default: 600 ) –

    Time in seconds after which a download is cancelled, by default 600

  • async_workers (int | None, default: None ) –

    Maximum number of concurrent downloads, by default None

  • retries (int, default: 3 ) –

    Retries per file for transient failures, by default 3

  • device (device | str, default: 'cpu' ) –

    Device of the returned array, by default "cpu"

Note

Additional information on the data repository can be referenced here:

__call__

__call__(
    time: datetime | list[datetime] | TimeArray,
    variable: str | list[str] | VariableArray,
) -> DataArray

Fetch daily SST for the requested UTC dates.

Parameters:

  • time (datetime | list[datetime] | TimeArray) –

    Requested dates; subdaily times select the same daily analysis.

  • variable (str | list[str] | VariableArray) –

    Variables to return; only sst is supported.

Returns:

  • DataArray –

    SST in kelvin with time, variable, lat and lon dimensions and an sst_date coordinate on time.

fetch async

fetch(
    time: datetime | list[datetime] | TimeArray,
    variable: str | list[str] | VariableArray,
) -> DataArray

Fetch SST in kelvin for the requested UTC dates.

Parameters:

  • time (datetime | list[datetime] | TimeArray) –

    Requested dates; subdaily times select the same daily product.

  • variable (str | list[str] | VariableArray) –

    The supported variable is sst.

Returns:

  • DataArray –

    Fields with time, variable, latitude and longitude dimensions.

available classmethod

available(time: datetime | datetime64) -> bool

Check if the given date is within the OISST archive range.

Parameters:

Returns:

  • bool –

    True if the date is between 1981-09-01 and today. A recent date may still have no published analysis yet.

Examples using earth2studio.data.OISST