Skip to content

DLWP

GlobalS2S202140 GBNVIDIAPyTorch

Import path: earth2studio.models.px.DLWP

View source on GitHub View install commands

Documentation

Bases: Module, AutoModelMixin, PrognosticMixin

Deep learning weather prediction (DLWP) prognostic model. This is a parsimonious global forecast model with a time-step size of 6 hours. The core model is a convolutional encoder-decoder trained on [64,64] cubed sphere data that has an input of 18 fields (2x7 atmos variables + 4 prescriptive) and outputs 14 fields (2x7 atmos variables). This implementation provides a wrapper that accepts [721,1440] lat-lon equirectangular grid of just the atmospheric varaibles as an input for better compatability with common data sources. Prescriptive fields are added inside the model wrapper.

Note

For more information about this model see:

Parameters:

  • core_model (Module) –

    Core cubed-sphere DLWP model.

  • landsea_mask (Tensor) –

    Land sea mask in cubed sphere form [6,64,64]

  • orography (Tensor) –

    Surface geopotential (orography) in cubed sphere form [6,64,64]

  • latgrid (Tensor) –

    Cubed sphere latitude coordinates [6,64,64]

  • longrid (Tensor) –

    Cubed sphere longitude coordinates [6,64,64]

  • cubed_sphere_transform (Tensor) –

    Sparse pytorch tensor to transform equirectangular fields to cubed sphere of size [24576, 1038240]

  • cubed_sphere_inverse (Tensor) –

    Sparse pytorch tensor to transform cubed sphere fields to equirectangular of size [1038240, 24576]

  • center (Tensor) –

    Model atmospheric variable center normalization tensor of size [1,7,1,1]

  • scale (Tensor) –

    Model atmospheric variable scale normalization tensor of size [1,7,1,1]

__call__

__call__(x: DataArray) -> DataArray

Predict the complete twelve-hour forecast chunk without iterator hooks.

Parameters:

  • x (DataArray) –

    Two-frame lat-lon history matching input_coords().

Returns:

  • DataArray –

    Six- and twelve-hour forecasts on the public lat-lon grid.

create_iterator

create_iterator(
    x: DataArray,
) -> Generator[DataArray, None, None]

Yield complete two-frame forecasts with hooks on the public grid.

Parameters:

  • x (DataArray) –

    Initial history matching input_coords().

Yields:

  • DataArray –

    Two-frame, twelve-hour chunks, starting with initialization's forecast. The rear hook runs before each yield and the front hook before later steps; edits are projected onto the native grid.

load_default_package classmethod

load_default_package() -> Package

Default DLWP model package on NGC

load_model classmethod

load_model(package: Package) -> PrognosticModel

Load prognostic from package

Examples using earth2studio.models.px.DLWP