earth2studio.data.IFS#

class earth2studio.data.IFS(source='aws', cache=True, verbose=True, async_timeout=600)[source]#

Integrated forecast system (IFS) HRES data on an equirectangular grid at 0.25 degree resolution.

Parameters:
  • source (Literal['aws', 'ecmwf', 'azure'])

  • cache (bool)

  • verbose (bool)

  • async_timeout (int)

__call__(time, lead_time, variable)#

Retrieve ECMWF data.

Parameters:
  • time (datetime | list[datetime] | TimeArray) – Timestamps to return data for (UTC).

  • lead_time (timedelta | list[timedelta] | LeadTimeArray) – Forecast lead times to fetch.

  • variable (str | list[str] | VariableArray) – String, list of strings or array of strings that refer to variables to return. Must be in the data lexicon.

Returns:

ECMWF weather data array

Return type:

xr.DataArray

async fetch(time, lead_time, variable)#

Async function to get data.

Parameters:
  • time (datetime | list[datetime] | TimeArray) – Timestamps to return data for (UTC).

  • lead_time (timedelta | list[timedelta] | LeadTimeArray) – Forecast lead times to fetch.

  • variable (str | list[str] | VariableArray) – String, list of strings or array of strings that refer to variables to return. Must be in the data lexicon.

Returns:

ECMWF weather data array.

Return type:

xr.DataArray