pyradtran.era5#
ERA5 integration: normalisation, atmosphere files, and cloud profiles.
ERA5 data arrives under several naming conventions — the CDS NetCDF short
names (t, q, o3, clwc, coordinate pressure_level) and
the ARCO-ERA5 Zarr long names (temperature, specific_humidity,
geopotential, coordinate level). normalize_era5() maps any
of them onto one canonical form so the rest of pyRadtran never has to
care which flavour the user opened.
From a normalised dataset this module can produce, per (time, lat, lon) point:
a libRadtran
radiosondeatmosphere file — pressure, temperature, humidity and (when available) an ozone profile (write_atmosphere_file()), anddict-valued
wc_file/ic_filecloud profiles from the ERA5clwc/ciwcfields (cloud_profiles()).
recommend_atmosphere() suggests the AFGL background profile
(atmosphere_file) that matches a latitude and date. The background
profile still matters when a radiosonde is used: libRadtran takes every
level above the radiosonde top — and every gas the radiosonde does not
provide — from the atmosphere_file.
See also
pyradtran.io.ERA5AtmosphereGeneratorBackwards-compatible wrapper.
|
Build |
|
One-step: normalise, select a point, write the atmosphere file. |
|
Return ds with ERA5 variables/coordinates on canonical names. |
|
Suggest the AFGL |
|
Select a single vertical profile from a (normalised) ERA5 dataset. |
|
Write a profile as a libRadtran |