OrbitGlobalPrecip¶
GlobalMRF202540 GBPyTorch
Import path: earth2studio.models.dx.OrbitGlobalPrecip
View source on GitHub View install commands
Documentation¶
Bases: Module, AutoModelMixin
ORBIT-2 precipitation downscaling model supporting both 9.5m and 126m parameter variants.
Note
This model and checkpoint are from Wang et al. 2025. For more information see the following references:
Note
A few details regarding the model's variables:
t2m:max:-25h:-1handt2m:min:-25h:-1hare the daily maximum and minimum 2m temperature over the hourly samplest-24h, ..., t-1h(window(t-25h, t-1h]).tp:sum:24his the 24-hour accumulated precipitation over the window(t-24h, t], the 24 hourly accumulations ending att.t2mandsstare combined to represent global surface temperature, withsstreplacingt2mover the ocean. The same is applied to the daily extremes usingsst:max:-25h:-1handsst:min:-25h:-1h. Thesstinputs are dropped after combining, leaving 19 model input channels.- The model is fine-tuned for IMERG 24-hour accumulated precipitation, which is
also the output variable (
tp:sum:24h).
Parameters:
-
core_model(Module) –Core pytorch model
-
land_sea_mask(ndarray) –Binary land-sea mask at 0.25° resolution, shape
(720, 1440). Values are 1 over land, 0 over ocean. -
orography(ndarray) –Surface geopotential height (meters) at 0.25° resolution, shape
(720, 1440). -
lattitude(ndarray) –Latitude values broadcast to grid shape
(720, 1440), used as a positional encoding input to the model. -
landcover(ndarray) –Land-use / land-cover classification at 0.25° resolution, shape
(720, 1440). -
normalize_mean_lowres(NpzFile) –Per-variable mean values for input normalization. Keys are variable names, values are single-element arrays.
-
normalize_std_lowres(NpzFile) –Per-variable standard deviation values for input normalization. Keys are variable names, values are single-element arrays.
-
normalize_mean_highres(NpzFile) –Per-variable mean values for output denormalization. Keys are variable names, values are single-element arrays.
-
normalize_std_highres(NpzFile) –Per-variable standard deviation values for output denormalization. Keys are variable names, values are single-element arrays.
-
do_tiling(bool) –Boolean to indicate whether tiled inference is performed
-
div(int) –If performing tiling, number of tiles to divide input into
-
overlap(int) –If performing tiling, number of overlap pixels to use during tiled inference
Example
The 24-hour accumulated precipitation and daily 2m temperature extremes are computed by the data source as temporal statistics:
>>> import numpy as np
>>> from earth2studio.data import ARCO_ERA5, fetch_data
>>> from earth2studio.models.dx import OrbitGlobalPrecip
>>> from earth2studio.utils.time import to_time_array
>>>
>>> package = OrbitGlobalPrecip.load_default_package()
>>> orbit = OrbitGlobalPrecip.load_model(package)
>>> orbit = orbit.to("cuda")
>>> time = to_time_array([np.datetime64("2023-06-01")])
>>>
>>> x = fetch_data(
... source=ARCO_ERA5(),
... time=time,
... variable=orbit.input_coords()["variable"].values,
... device="cuda",
... )
>>> output = orbit(x)
__call__ ¶
load_model
classmethod
¶
load_model(
package: Package,
model_type: Literal["global"] = "global",
model_size: Literal["9.5m", "126m"] = "9.5m",
model_variable: Literal[
"precipitation"
] = "precipitation",
) -> DiagnosticModel
Load ORBIT-2 precipitation diagnostic model from package files.
Parameters:
-
package(Package) –Model package containing configuration and checkpoint files.
-
model_type(Literal['global'], default:'global') –ORBIT-2 model family to load, by default "global"
-
model_size(Literal['9.5m', '126m'], default:'9.5m') –ORBIT-2 model size variant to load, by default "9.5m"
-
model_variable(Literal['precipitation'], default:'precipitation') –Target variable variant to load, by default "precipitation"
Returns:
-
DiagnosticModel–Loaded ORBIT-2 precipitation diagnostic model