Skip to content

ESMValGroup/eso4clima-wp1-prototype

Repository files navigation

eso4clima-wp1-prototype

License

Installation

We recommend using uv to manage the dependencies needed. Please refer to the uv documentation for installation instructions of uv.

To run this workflow, first clone this repository. Inside the repository, run:

uv sync

This will create a virtual environment in the .venv folder with all the required dependencies. To activate the virtual environment, run:

source .venv/bin/activate

Spatio Temporal Model (class SpatioTemporalModel):

Summary:

  • Combines video encoder, temporal attention, spatial transformer, and decoder
  • Encodes video into spatio-temporal patches
  • Aggregates temporal information per spatial patch
  • Mixes spatial features across patches
  • Decodes back to original spatial resolution

Detailed process:

The model takes daily SST (or similar) data in video format: x ∈ ℝ^{B × 1 × T × H × W} and a daily_mask indicating missing pixels. It also takes land_mask_patch indicating land regions in the output.

  1. Patch embedding:

             `X (VideoEncoder)---------> X_patch`
    
  2. Temporal aggregation:

Temporal attention summarizes daily patches into a monthly token per spatial location:

            `X_patch (TemporalAttentionAggregator)---------> X_temp_agg`
  1. Add spatial encoding + spatial transformer:

Spatial transformer mixes information across all spatial patches:

           ` X_temp_agg + PE ---------> X_mixed`
  1. Decode to original resolution:

Decoder upsamples tokens to full-resolution map, optionally masking land areas:

            `X_mixed (MonthlyConvDecoder)---------> Output`

References:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •