pyradtran.era5.normalize_era5

Contents

pyradtran.era5.normalize_era5#

pyradtran.era5.normalize_era5(ds: Dataset) Dataset[source]#

Return ds with ERA5 variables/coordinates on canonical names.

Accepts CDS-style short names, ARCO-ERA5 long names, or an already canonical dataset (the call is idempotent). The pressure coordinate is converted to hPa when it arrives in Pa. Unit attributes that ERA5 pipelines commonly strip are restored with their known values.

Parameters:

ds (xarray.Dataset) – Any ERA5(-like) dataset on pressure levels, e.g. straight from xr.open_zarr(gcsfs...) or a CDS NetCDF download.

Returns:

Same data, canonical names: variables t, q, z, o3, clwc, ciwc, cc, skt, sst (those present), coordinates pressure_level (hPa) and valid_time.

Return type:

xarray.Dataset