MetOpAVHRR#
- class earth2studio.data.MetOpAVHRR(
- satellite=None,
- subsample=1,
- time_tolerance=numpy.timedelta64(1, 'h'),
- cache=True,
- verbose=True,
- async_timeout=600,
- Global
EUMETSAT MetOp AVHRR Level 1B radiance and brightness temperature observations.
The Advanced Very High Resolution Radiometer (AVHRR) is a 6-channel cross-track scanning radiometer aboard the MetOp series of polar-orbiting satellites. It measures calibrated radiances in visible (0.58-1.6 µm) and infrared (3.7-12.5 µm) bands at 1 km spatial resolution.
Channels 1-2 and 3A provide reflectances (visible/NIR), while channels 3B, 4, and 5 provide brightness temperatures (thermal IR). Channels 3A and 3B cannot operate simultaneously.
The returned
DataFramehas one row per pixel per channel, following the same convention asUFSObsSat. Thechannel_indexcolumn (1–6) identifies each channel. Theclasscolumn differentiates observation types:"refl"for visible/NIR channels (1, 2, 3A) and"rad"for thermal IR channels (3B, 4, 5).This data source downloads Level 1B products from the EUMETSAT Data Store and parses the EPS native binary format directly. Calibration coefficients are read from the GIADR-radiance record; visible channels are converted to reflectance (%), thermal channels to brightness temperature (K).
Geolocation uses the 103 EPS navigation tie points per scan line (~20 km spacing), avoiding expensive full-resolution interpolation.
- Parameters:
satellite (str, optional) – Satellite platform filter. One of “metop-a”, “metop-b”, “metop-c”, or None (all available). By default None.
subsample (int, optional) – Scan-line subsampling factor. AVHRR produces ~1000+ scan lines per orbit; subsampling reduces data volume. By default 1.
time_tolerance (TimeTolerance, optional) – Time tolerance window for filtering observations. Accepts a single value (symmetric ± window) or a tuple (lower, upper) for asymmetric windows, by default np.timedelta64(1, ‘h’)
cache (bool, optional) – Cache data source on local memory, by default True
verbose (bool, optional) – Print download progress and info, by default True
async_timeout (int, optional) – Time in seconds after which download will be cancelled if not finished, by default 600
Warning
This is a remote data source and can potentially download a large amount of data to your local machine for large requests. Each AVHRR orbit file is approximately 1 GB.
Note
Requires EUMETSAT Data Store credentials. Set the following environment variables:
EUMETSAT_CONSUMER_KEY: Your EUMETSAT API consumer keyEUMETSAT_CONSUMER_SECRET: Your EUMETSAT API consumer secret
Register at https://eoportal.eumetsat.int/ to obtain credentials.
Note
Additional information on the data repository:
- __call__(time, variable, fields=None)[source]#
Function to get AVHRR radiance/brightness temperature observations.
- Parameters:
time (datetime | list[datetime] | TimeArray) – Timestamps to return data for (UTC).
variable (str | list[str] | VariableArray) – Variables to return. Must be in MetOpAVHRRLexicon (e.g.
["avhrr"]).fields (str | list[str] | pa.Schema | None, optional) – Fields to include in output, by default None (all fields).
- Returns:
AVHRR observation data in long format with one row per pixel per channel.
- Return type:
pd.DataFrame
- async fetch(time, variable, fields=None)[source]#
Async function to get AVHRR data.
- Parameters:
time (datetime | list[datetime] | TimeArray) – Timestamps to return data for (UTC).
variable (str | list[str] | VariableArray) – Variables to return. Must be in MetOpAVHRRLexicon (e.g.
["avhrr"]).fields (str | list[str] | pa.Schema | None, optional) – Fields to include in output, by default None (all fields).
- Returns:
AVHRR observation data in long format with one row per pixel per channel.
- Return type:
pd.DataFrame