Earth2Studio is now OSS!

earth2studio.data.IFS#

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

The integrated forecast system (IFS) initial state data source provided on an equirectangular grid. This data is part of ECMWF’s open data project on AWS. This data source is provided on a 0.25 degree lat lon grid at 6-hour intervals for the most recent 4 days.

Parameters:
  • cache (bool, optional) – Cache data source on local memory, by default True

  • verbose (bool, optional) – Print download progress, by default True

Warning

This is a remote data source and can potentially download a large amount of data to your local machine for large requests.

Note

This data source only fetches the initial state of control forecast of IFS and does not fetch an predicted time steps.

__call__(time, variable)[source]#

Function to get data.

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

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

Returns:

IFS weather data array

Return type:

xr.DataArray

classmethod available(time)[source]#

Checks if given date time is avaliable in the IFS AWS data store

Parameters:

time (datetime | np.datetime64) – Date time to access

Returns:

If date time is avaiable

Return type:

bool