earth2studio.data.PlanetaryComputerGOES#
- class earth2studio.data.PlanetaryComputerGOES(satellite='goes16', scan_mode='F', cache=True, verbose=True, max_workers=24, request_timeout=60, max_retries=4, async_timeout=600)[source]#
GOES-R ABI L2 Cloud and Moisture Imagery on Planetary Computer.
- Parameters:
satellite (str, optional) – Which GOES satellite to use (‘goes16’, ‘goes17’, ‘goes18’, or ‘goes19’), by default ‘goes16’
scan_mode (str, optional) – For ABI: Scan mode (‘F’ for Full Disk, ‘C’ for Continental US) Mesoscale data is currently not supported due to the changing scan position.
cache (bool, optional) – Cache data source on local memory, by default True
verbose (bool, optional) – Whether to print progress information, by default True
max_workers (int, optional) – Upper bound on concurrent download and processing tasks, by default 24
request_timeout (int, optional) – Timeout (seconds) applied to individual HTTP requests, by default 60
max_retries (int, optional) – Maximum retry attempts for transient network failures, by default 4
async_timeout (int, optional) – Time in sec after which download will be cancelled if not finished successfully, by default 600
Note
Please see
earth2studio.data.goes.GOESfor further details. This data source exposes the MCMIP products but not the full-resolution CMIP products. Additional information on the data repository can be referenced here:- __call__(time, variable)#
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 ARCO lexicon.
- Returns:
Data array from planetary computer
- Return type:
xr.DataArray
- async fetch(time, variable)[source]#
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 data source’s lexicon.
- Returns:
Plantary computer data array
- Return type:
xr.DataArray