EarthMoverBrightBandIFS#

class earth2studio.data.EarthMoverBrightBandIFS(
repo=None,
branch='main',
client=None,
cache=True,
verbose=True,
)[source]#
Global

Brightband ECMWF IFS 0.25 degree initial-condition data source on Earthmover Arraylake.

Parameters:
  • repo (str, optional) – Arraylake repository name as org/repo. When omitted, derives the repo from EARTHMOVER_ORGANIZATION as <org>/ecmwf-ifs-initial-conditions-open-subscription, by default None.

  • branch (str, optional) – Repository branch to read, by default “main”.

  • client (arraylake.AsyncClient, optional) – Pre-authenticated Arraylake async client. When omitted, this data source uses the API key stored in EARTHMOVER_API_KEY, by default None.

  • cache (bool, optional) – Retained for API compatibility; Arraylake reads lazily via Icechunk, by default True.

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

Warning

This is a remote data source and can download a large amount of data for large requests.

Note

Configure Earthmover access before using this data source:

  • Set the EARTHMOVER_API_KEY environment variable to an Earthmover / Arraylake API key, unless passing a pre-authenticated client.

  • Pass repo="org/repo" to open a specific Arraylake repository.

  • If repo is omitted, set the EARTHMOVER_ORGANIZATION environment variable. The default repository is <EARTHMOVER_ORGANIZATION>/ecmwf-ifs-initial-conditions-open-subscription.

Arraylake-backed Earthmover sources require Python 3.12 or newer.

Additional information on the data repository can be referenced here:

__call__(time, variable)[source]#

Retrieve IFS analysis data for times and variables.

Parameters:
  • time (datetime | list[datetime] | TimeArray) – Analysis timestamps (UTC).

  • variable (str | list[str] | VariableArray) – Earth2Studio variable id(s).

Returns:

Data array with dimensions [time, variable, lat, lon].

Return type:

xr.DataArray

async fetch(time, variable)[source]#

Retrieve IFS analysis data for times and variables asynchronously.

Parameters:
  • time (datetime | list[datetime] | TimeArray) – Analysis timestamps (UTC).

  • variable (str | list[str] | VariableArray) – Earth2Studio variable id(s).

Returns:

Data array with dimensions [time, variable, lat, lon].

Return type:

xr.DataArray

available(time)[source]#

Synchronous wrapper for _available().

Parameters:

time (datetime | datetime64)

Return type:

bool