earth2studio-create-prognostic
Skill1.2k starsChanged 4 months agoApache-2.0View on GitHub
Create Earth2Studio prognostic (time-stepping forecast) model wrappers. Do NOT use for diagnostic models, data sources, or installation.
Trending
Less talk lately.about the whole repository
Who's talking about NVIDIA/earth2studio
- A Hacker News story“Earth2Studio: Nvidia's next generation of weather AI”Hacker News · Jan 26, 2026 · 5 points
- @rodrigo-gtiff.bsky.social“8/ 🛠️ A shout-out to @nvidiabot.bsky.social Earth2Studio — all model predictions in this study ran through …”Bluesky · Jul 21, 2026 · 1 likes
- NVIDIA/physicsnemo“Add torch support to zenith_angle.py”GitHub · Jun 16, 2026 · 1 reactions
- @pythonhub.dev“earth2studio Open-source deep-learning framework for exploring, building and deploying AI weather/climate …”Bluesky · Feb 5, 2026 · 1 likes
- secondlaw-ai/skyrim“Hello from Earth2Studio”GitHub · May 8, 2024 · 1 reactions
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Bluesky and Hacker News (16 times).
On GitHub · 13
- Jun 16, 2026Add torch support to zenith_angle.py — NVIDIA/physicsnemo1 reaction · 3 comments
- May 8, 2024Hello from Earth2Studio — secondlaw-ai/skyrim1 reaction · 1 comment
- Oct 1, 2026python3Packages.earth2studio: 0.18.0 -> 0.19.0 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 7, 2026Expand NVIDIA Earth-2 source coverage beyond FourCastNet prototype — TusharSariya/Astraeus0 reactions · 1 comment
- Sep 2, 2026Generative downscaling of CMIP6 (CorrDiff-style) to daily catchment forcing for the climate playbook — Rekin226/aquascope0 reactions
8 more on GitHub
- Aug 18, 2026Consider serializing to Icechunk format — gaia-hazlab/gaia-cli0 reactions
- Jul 4, 2026Insitubatch — emfdavid/earth2studio0 reactions · 1 comment
- Nov 7, 2025[Ecosystem] Nvidia PhysicsNeMo — pytorch-fdn/ecosystem0 reactions · 9 comments
- Sep 30, 2025Add support for NVIDIA ML-based forecast models — google-research/weatherbenchX0 reactions · 2 comments
- Sep 10, 2025Create nvidia earth studio 2 environment for JASMIN — MetOffice/data_science_cop0 reactions · 1 comment
- Aug 7, 2025Adding seed set to infill method (do not merge) — NVlabs/cBottle0 reactions · 2 comments
- Jan 31, 2025px-cdn.net — mypdns/matrix0 reactions · 1 comment
- May 27, 2024Add Earth2Studio — protontypes/open-sustainable-technology0 reactions · 1 comment
On Bluesky · 2
- Jul 21, 20268/ 🛠️ A shout-out to @nvidiabot.bsky.social Earth2Studio — all model predictions in this study ran through it. Having a single open-source… — @rodrigo-gtiff.bsky.social1 likes and repost
- Feb 5, 2026earth2studio Open-source deep-learning framework for exploring, building and deploying AI weather/climate workflows.… — @pythonhub.dev1 likes and repost
On Hacker News · 1
- Jan 26, 2026Earth2Studio: Nvidia's next generation of weather AI5 points · 1 comment
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- developer-bump-versionSkill
- developer-release-rebaseSkill
- earth2studio-create-datasourceSkill
- earth2studio-create-diagnosticSkill
- earth2studio-data-fetchSkill
- earth2studio-deterministic-forecastSkill
- earth2studio-discoverSkill
- earth2studio-installSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 5 are distinctive, and 18 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
If $ARGUMENTS provided, use it.
- Very specific: line 131
If a checkpoint/model core expects south-to-north latitude, flip tensors internally before/after the core model.
- Very specific: line 134
output_coords: Use handshake_dim/handshake_coords for input validation, then increment lead_time.
- Very specific: line 141
create_iterator: MUST yield initial condition first (step 0). - Very specific: line 142
Use front_hook/rear_hook for perturbation injection.
- Very specific: line 148
load_model: Use package.resolve(), map_location="cpu", eval() mode, decorate with @check_optional_dependencies(). - Very specific: line 163
Create PhooModelName dummy matching interface for mock tests.
- Distinctive: line 171
Do not omit the package test.
- Very specific: line 177
Add to earth2studio/models/px/__init__.py (alphabetical)
- Very specific: line 178
Verify deps in pyproject.toml
- Very specific: line 182
Add to docs/modules/models_px.md (alphabetical).
- Very specific: line 184
Add an entry to docs/userguide/about/install_options.yml for the model extra, even when the extra is empty.
- Very specific: line 188
Update CHANGELOG.md under ### Added.
- Very specific: line 198
Follow references/validation-guide.md.
- Distinctive: line 200
Use PR-safe placeholders for plots so the user can upload images manually.
- Very specific: line 206
Follow references/validation-guide.md and use:
- Very specific: line 210
Before creating the PR, verify pyproject.toml has the model extra, the all extra includes it, docs/userguide/about/install_options.yml has …
- Distinctive: line 215
Do not include machine names, absolute paths, device inventory, or uploaded image links in PR text.
- Very specific: line 291
Use uv run python for ALL Python commands
- Very specific: line 292
Use loguru.logger, never print()
- Very specific: line 295
Use front_hook()/rear_hook() in _default_generator
- Distinctive: line 299
Create general base classes for reuse
- Distinctive: line 300
Commit API keys or comparison scripts
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Quick Start Checklist
Do these steps IN ORDER. Do not skip any step.
- Read this SKILL.md completely first
- Get reference script (Step 0)
- Create
earth2studio/models/px/<name>.pywith triple inheritance - Create
test/models/px/test_<name>.pywith mock tests - Run:
uv run pytest test/models/px/test_<name>.py -v - Add/update model extra, install docs, API docs, and changelog (Steps 1-2, 9)
- Run:
make format && make lint
⚠️ CRITICAL: Always use
uv runfor Python commands:
- ✅
uv run pytest .../uv run python ...- ❌
pytest .../python ...(missing dependencies)Stuck or wrong output: Do not keep retrying the same fix. Follow Self-Improvement to patch this skill before continuing.
Purpose
Implement a prognostic model wrapper connecting third-party ML weather models to Earth2Studio. Prognostic models time-integrate forward—given initial state, they predict future states by stepping through time (e.g., 6-hour increments).
Workspace
| Context | Location |
| Harbor eval | Write to /workspace/output/earth2studio/models/px/... |
Harbor + --copy-repo | Full checkout at /workspace/repo |
| Local clone | Directory with pyproject.toml |
Never read evals/targets/ — grader references only.
Reference Files
Load on demand during the matching step:
| File | Content | Load at |
references/skeleton-template.py | Full model skeleton with FILL comments | Steps 3–6 |
references/method-templates.py | Canonical method implementations | Steps 4–6 |
references/testing-guide.py | Test skeleton and mock patterns | Step 7 |
references/validation-guide.md | Comparison scripts, PR, code review | Steps 10–11 |
Workflow Steps
Step 0 — Get Reference Script
If $ARGUMENTS provided, use it. Otherwise ask:
Please provide a reference inference script URL/path.
Step 1 — Analyze & Propose Dependencies
Analyze: packages, architecture, I/O shapes, time step, resolution, checkpoint.
Propose pyproject.toml group (alphabetical, add to all). Every
prognostic model must have an optional dependency extra, even when no packages
are required:
model-name = ["package1>=version", "package2"]
# or, when no additional packages are required:
model-name = [][CONFIRM] Present dependencies and ask user to approve.
Step 2 — Add Dependencies
Edit pyproject.toml: add the model extra alphabetically, even if it is
empty, and update the all aggregate.
Step 3 — Create Model File
File: earth2studio/models/px/<lowercase>.py
Required inheritance (all three):
class ModelName(torch.nn.Module, AutoModelMixin, PrognosticMixin):Required imports:
import numpy as np
import torch
from earth2studio.models.auto import AutoModelMixin, Package
from earth2studio.models.batch import batch_coords, batch_func
from earth2studio.models.px.base import PrognosticMixin
from earth2studio.models.utils import create_coords_from_lat_lon, handshake_dim
from earth2studio.lexicon import E2STUDIO_VOCAB
from earth2studio.utils import check_optional_dependencies
from loguru import loggerSPDX header (required at top of every .py file):
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES.
# SPDX-License-Identifier: Apache-2.0Canonical method order:
__init__2.input_coords3.output_coords(@batch_coords)load_default_package5.load_model6.to(optional)- Private methods 8.
__call__(@batch_func) 9._default_generator create_iterator
Step 4 — Implement Coordinates
input_coords rules:
batch:np.empty(0)time:np.empty(0)(dynamic)lead_time: starts atnp.timedelta64(0, "h")lat: 90 to -90 (north to south); this is the public Earth2Studio convention even if the source model uses the opposite orderlon: 0 to 360- If a checkpoint/model core expects south-to-north latitude, flip tensors internally before/after the core model; do not expose flipped latitude in
input_coordsoroutput_coords - Map variables to
E2STUDIO_VOCAB(282 entries inearth2studio/lexicon/base.py)
output_coords: Use handshake_dim/handshake_coords for input validation, then increment lead_time. Prefer a shared coordinate-check helper and call it from output_coords, __call__, and iterator setup before model execution.
Step 5 — Implement Forward Pass
__call__: @batch_func decorated, shape (batch, time, lead_time, var, lat, lon).
Reshape to model format → call model → reshape back.
create_iterator: MUST yield initial condition first (step 0).
Use front_hook/rear_hook for perturbation injection.
Step 6 — Implement Model Loading
load_default_package: Lock HuggingFace URLs: hf://org/repo@commit
load_model: Use package.resolve(), map_location="cpu", eval() mode,
decorate with @check_optional_dependencies().
Step 7 — Write Tests
File: test/models/px/test_<name>.py
Required tests:
| Function | Purpose |
test_<model>_call | Single forward pass (parametrize device/time) |
test_<model>_iter | Iterator produces sequence |
test_<model>_exceptions | Invalid coords raise errors |
test_<model>_package | Real weights (@pytest.mark.package) |
Create PhooModelName dummy matching interface for mock tests.
Run tests:
uv run pytest test/models/px/test_<name>.py -m "not package" -v
uv run pytest test/models/px/test_<name>.py::test_<model>_package --package -vDo not omit the package test. If arbitrary random inputs are not physically valid for the real checkpoint, use a stable model-appropriate synthetic input while still loading real weights and running a forward pass.
Step 8 — Register Model (if requested)
- Add to
earth2studio/models/px/__init__.py(alphabetical) - Verify deps in pyproject.toml
Step 9 — Documentation
- Add to
docs/modules/models_px.md(alphabetical). This is required for every new prognostic model so the API docs include the generated page. - Add an entry to
docs/userguide/about/install_options.ymlfor the model extra, even when the extra is empty. Include model-specific notes, source-specific preinstall commands, andapi_refsfor any model classes that should show a View Install Notes button in the generated API docs. - Update
CHANGELOG.mdunder### Added. This is required for every new prognostic model.
Format and lint:
make format && make lint && make licenseStep 10 - Validation (if requested)
Follow references/validation-guide.md. Create uncommitted vanilla, E2S,
comparison, and sanity-check scripts; do not commit generated outputs or images.
Use PR-safe placeholders for plots so the user can upload images manually.
[CONFIRM] User must visually inspect plots before proceeding.
Step 11 - PR (if requested)
Follow references/validation-guide.md and use:
references/pr-body-template.mdreferences/pr-comment-template.md
Before creating the PR, verify pyproject.toml has the model extra, the
all extra includes it, docs/userguide/about/install_options.yml has the
install entry and api_refs, and docs/modules/models_px.md plus
CHANGELOG.md are updated.
Do not include machine names, absolute paths, device inventory, or uploaded image links in PR text. Use plot placeholders instead.
Examples
Simple Identity Model
User: Create IdentityModel - returns input unchanged, 6h step, 181x360, vars: t2m, u10m, v10m, msl
Agent: [reads SKILL.md, creates identity.py with triple inheritance,
creates test_identity.py, runs pytest, runs make format && lint]External Model (Pangu)
User: Add Pangu-Weather wrapper
GitHub: https://github.com/198808xc/Pangu-Weather
Agent: [reads SKILL.md, fetches inference.py, creates pangu.py,
creates test_pangu.py, runs pytest]Key Patterns
Coordinate Template
@property
def input_coords(self) -> CoordSystem:
return CoordSystem({
"batch": np.empty(0),
"time": np.empty(0),
"lead_time": np.array([np.timedelta64(0, "h")]),
"variable": np.array(["t2m", "u10m", ...]),
# Public Earth2Studio convention is north-to-south latitude.
"lat": np.linspace(90, -90, 181),
"lon": np.linspace(0, 359, 360),
})
@batch_coords()
def output_coords(self, input_coords: CoordSystem) -> CoordSystem:
output = input_coords.copy()
output["lead_time"] = input_coords["lead_time"] + np.timedelta64(6, "h")
return outputIterator Template
def create_iterator(self, x, coords):
yield x, coords # Initial condition (step 0)
while True:
x, coords = self.front_hook(x, coords)
x, coords = self(x, coords)
x, coords = self.rear_hook(x, coords)
yield x, coordsTroubleshooting
| Error | Solution |
OptionalDependencyFailure | uv add --optional <group> <pkg> |
| Coordinate handshake fails | Check handshake_dim indices match dim position |
| Iterator wrong shapes | Debug reshape logic with random input |
ModuleNotFoundError: pytest | Use uv run pytest not pytest |
Reminders
DO:
- Use
uv run pythonfor ALL Python commands - Use
loguru.logger, neverprint() - Inherit
torch.nn.Module + AutoModelMixin + PrognosticMixin - Yield initial condition first in
create_iterator - Use
front_hook()/rear_hook()in_default_generator - Include SPDX header in every .py file
DON'T:
- Create general base classes for reuse
- Commit API keys or comparison scripts
- Read from
evals/targets/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

