Skip to content

FCN

GlobalMRF202240 GBNVIDIAPyTorch

Import path: earth2studio.models.px.FCN

View source on GitHub View install commands

Documentation

Bases: Module, AutoModelMixin, PrognosticMixin

FourCastNet global prognostic model. Consists of a single model with a time-step size of 6 hours. FourCastNet operates on 0.25 degree lat-lon grid (south-pole excluding) equirectangular grid with 26 variables.

Note

This model is a retrained version on more atmospgeric variables from the FourCastNet paper. For additional information see the following resources:

Parameters:

  • core_model (Module) –

    Core PyTorch model with loaded weights

  • center (Tensor) –

    Model center normalization tensor of size [26]

  • scale (Tensor) –

    Model scale normalization tensor of size [26]

__call__

__call__(x: DataArray) -> DataArray

Predict six hours ahead without iterator hooks.

Parameters:

  • x (DataArray) –

    NumPy- or CuPy-backed input with coordinates and grid metadata.

Returns:

  • DataArray –

    Forecast six hours in the future on the same device.

create_iterator

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

Yield six-hour forecasts, starting with initialization's prediction.

Parameters:

  • x (DataArray) –

    Initial state with coordinates and grid metadata.

Yields:

  • DataArray –

    Forecast DataArrays. The rear hook runs before every yield and the front hook before each subsequent step.

load_default_package classmethod

load_default_package() -> Package

Load prognostic package

load_model classmethod

load_model(package: Package) -> PrognosticModel

Load prognostic from package

Examples using earth2studio.models.px.FCN