eoio.readers.sentinel2.aux_vars.meteo module#
eoio.readers.sentinel2.aux_vars.meteo - meteo data reading functions
- eoio.readers.sentinel2.aux_vars.meteo.add_meteo(*, ds: Dataset, var_names: list[str], layout: S2Layout, config: Any) Dataset[source]#
Add requested meteorological / atmospheric auxiliary variables from Sentinel-2 AUX_DATA GRIB products (ECMWF/CAMS) into ds (no regridding performed).
- Parameters:
ds – Input xarray Dataset to which auxiliary variables will be added. This dataset is not modified in-place; a new dataset is returned.
var_names – List of auxiliary variable names to extract and attach. These must correspond to variables available in the Sentinel-2 ECMWF or CAMS auxiliary GRIB products (e.g.
tcwv,tco3,msl,u10,v10,r).layout –
S2Layoutinstance describing the Sentinel-2 SAFE product layout. Used to locate the granule directory and associated AUX_DATA products.config – Reader or processor configuration object. Currently unused, but included for API consistency and future extensibility.
- Returns:
A new xarray Dataset containing the original data and the requested auxiliary variables.
- Raises:
KeyError – If one or more requested variables are not present in the available auxiliary GRIB products.