GFS¶
GlobalGFSNOAA
Import path: earth2studio.data.GFS
Documentation¶
The global forecast service (GFS) initial state data source provided on an equirectangular grid. GFS is a weather forecast model developed by NOAA. This data source is provided on a 0.25 degree lat lon grid at 6-hour intervals spanning from Jan 1st 2021 to present date.
Parameters:
-
source(str, default:'aws') –Data store location to pull from. Options are [aws, ncep], by default aws
-
cache(bool, default:True) –Cache data source on local memory, by default True
-
verbose(bool, default:True) –Print download progress, by default True
-
async_timeout(int, default:600) –Time in sec after which download will be cancelled if not finished successfully, by default 600
-
async_workers(int, default:None) –Maximum number of concurrent downloads. By default None, which autoscales to the number of download tasks (capped at 64)
-
retries(int, default:3) –Number of retries for each download task on transient errors, by default 3
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 fetches the initial state of GFS. The derived tp06 variable
uses the preceding cycle's six-hour forecast accumulation ending at the requested
time, in metres. See GFS_FX for forecast lead times.
Note
Temporal statistics: mean, sum, min and max at six-hourly
cadence (see the time statistics spec). tp is a running bucket that resets
every six hours, so do not sum it; use tp06.
Note
Additional information on the data repository can be referenced here:
__call__ ¶
__call__(
time: datetime | list[datetime] | TimeArray,
variable: str | list[str] | VariableArray,
) -> DataArray
Retrieve GFS initial state / analysis 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 the GFS lexicon.
Returns:
-
DataArray–GFS weather data array
fetch
async
¶
fetch(
time: datetime | list[datetime] | TimeArray,
variable: str | list[str] | VariableArray,
) -> DataArray
Async 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 the GFS lexicon.
Returns:
-
DataArray–GFS weather data array
available
classmethod
¶
available(time: datetime | datetime64) -> bool
Checks if given date time is avaliable in the GFS object store. Uses S3 store
Parameters:
-
time(datetime | datetime64) –Date time to access
Returns:
-
bool–If date time is avaiable