DLESyMv0_ISCCP_ERA5Precip#
- class earth2studio.models.dx.DLESyMv0_ISCCP_ERA5Precip(
- core_model,
- hpx_lat,
- hpx_lon,
- nside,
- center,
- scale,
- constants,
- input_times,
- variables,
- output_variable='tp06',
- log_epsilon=1e-08,
- use_ttr=True,
- ttr_clim_mean=None,
- ttr_clim_std=None,
- olr_clim_mean=None,
- olr_clim_std=None,
- olr_floor=0.0,
- GlobalCM202440 GB
Precipitation diagnostic for the DLESyMv0_ISCCP_ERA5 climate model.
A
HEALPixUNetdiagnostic from the AtmosSci-DLESM/DLESyM repository that predicts 6-hourly accumulated precipitation (tp06) from the full coupled atmosphere/ocean state. It is designed to be chained offDLESyMv0_ISCCP_ERA5(or its lat/lon variant).The model takes 2 consecutive history timesteps of 10 variables (the 9 atmospheric variables plus
sst) on a HEALPixnside=64grid and predictstp06at the last input timestep (i.e., precipitation accumulated over the 6 h prior tot=0).When
use_ttr=True(default), the wrapper accepts ERA5ttrin place ofrlutand applies the same per-doy moment-matching TTR -> OLR transform asDLESyMv0_ISCCP_ERA5before the forward pass. This allows the diagnostic to run standalone from an ERA5 initial condition. Whenuse_ttr=False, supply pre-transformedrlutdirectly – use this when chaining offDLESyMv0_ISCCP_ERA5output, which is already in OLR space.- Parameters:
core_model (torch.nn.Module) – The wrapped
physicsnemo.models.dlwp_healpix.HEALPixUNet.hpx_lat (np.ndarray) – HEALPix latitude grid, shape
(12, nside, nside).hpx_lon (np.ndarray) – HEALPix longitude grid, shape
(12, nside, nside).nside (int) – HEALPix nside.
center (np.ndarray) – Per-variable input means, shape
(1, 1, 1, V, 1, 1, 1)ordered byvariables.scale (np.ndarray) – Per-variable input stds, same shape as
center.constants (np.ndarray) – Constant fields (e.g. land-sea mask, topography), shape
(12, n_constants, nside, nside).input_times (np.ndarray) – Input lead times, shape
(input_time_dim,). e.g.np.array([-6, 0], dtype='timedelta64[h]').variables (list[str]) – Input variable names in channel order. Must contain
rlut(the model variable-space name);input_coordsswaps it tottrwhenuse_ttr=True.output_variable (str) – Output variable name, typically
"tp06".log_epsilon (float | None) – If non-None, denormalize as
exp(out + log(eps)) - epsto invert the upstream log-transform applied to precipitation during training. Set toNoneto disable.use_ttr (bool, optional) – Accept ERA5
ttrinstead ofrlutand run the TTR -> OLR transform internally. Defaults to True.ttr_clim_mean (np.ndarray | None) – Per-doy climatology arrays of shape
(D, F, H, W). Required whenuse_ttr=True.ttr_clim_std (np.ndarray | None) – Per-doy climatology arrays of shape
(D, F, H, W). Required whenuse_ttr=True.olr_clim_mean (np.ndarray | None) – Per-doy climatology arrays of shape
(D, F, H, W). Required whenuse_ttr=True.olr_clim_std (np.ndarray | None) – Per-doy climatology arrays of shape
(D, F, H, W). Required whenuse_ttr=True.olr_floor (float, optional) – Lower bound applied to the transformed OLR. Defaults to 0.0.
Note
For more information see:
https://arxiv.org/abs/2409.16247 (the published paper backing this checkpoint set)
- __call__(x, coords)[source]#
Run the precip diagnostic forward.
- Parameters:
x (torch.Tensor) – Input of shape
(B, T, LT, V, F, H, W)withLT = input_time_dimhistory timesteps andV = len(variables)channels on HEALPix.coords (CoordSystem) – Input coordinates.
- Returns:
Output tensor of shape
(B, T, 1, 1, F, H, W)and the corresponding output coords withvariable = [tp06].- Return type:
tuple[torch.Tensor, CoordSystem]
- classmethod load_default_package()[source]#
Default DLESyMv0_ISCCP_ERA5 precip package on HuggingFace.
- Return type:
- classmethod load_model(package, use_ttr=True)[source]#
Load the DLESyMv0_ISCCP_ERA5 precip diagnostic from a package.
- Parameters:
package (Package) – Model package containing
config.yaml, the precip.mdluscheckpoint, the HEALPix lat/lon, the constant fields, and (whenuse_ttr=True) the TTR/OLR climatology netCDFs (era5_ttr_doy_stats_hpx64.ncandisccp_olr_doy_stats_hpx64.nc).use_ttr (bool, optional) – See
DLESyMv0_ISCCP_ERA5Precip. Defaults to True.
- Returns:
Loaded
DLESyMv0_ISCCP_ERA5Precipinstance.- Return type:
DiagnosticModel