SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.03795 · 2024

Samudra: An AI Global Ocean Emulator for Climate

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2412.03795.json · badge: /api/ran/2412.03795.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
m2lines/samudra canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
area_weighted_sum Ran
ran; our contract draft was wrong, not the code
m2lines/samudra/src/samudra/aggregator/metrics.py
code served (permissive licence) · get_code("f1d7733101a74ac9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with distinct dimensions
# data: shape (2, 4, 3) - batch=2, height=4, width=3
data = torch.randn(2, 4, 3)

# area_weights: same spatial shape as data (2, 4, 3)
area_weights = torch.randn(2, 4, 3)

# dim: tuple of dimensions to sum over (spatial dimensions)
dim = (-2, -1)

# keepdim: whether to keep the summed dimensions
keepdim = False

ARGS = {
    "data": data,
    "area_weights": area_weights,
    "dim": dim,
    "keepdim": keepdim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_llc_layout Ran
ran; our contract draft was wrong, not the code
m2lines/samudra/src/samudra/constants.py
code served (permissive licence) · get_code("6c0883593d148809")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataLayout. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import dataclasses

torch.manual_seed(0)

# Build the vars_by_key dictionary for prognostic and boundary variables
vars_by_key_prog = {
    'single_1': ['temp_0', 'salt_0', 'u_0', 'v_0'],
    'single_2': ['temp_0', 'salt_0'],
}

vars_by_key_bound = {
    'single_1': ['sst', 'sss', 'tau_x', 'tau_y'],
    'single_2': ['sst', 'sss'],
}

def _select_var_names(vars_by_key, key, dataset_type, var_kind):
    try:
        return list(vars_by_key[key])
    except KeyError as exc:
        choices = ', '.join(sorted(vars_by_key))
        raise ValueError(f'Unsupported {dataset_type} {var_kind} variable key {key!r}. Expected one of: {choices}') from exc

def build_llc_layout(prognostic_vars_key='single_1', boundary_vars_key='single_1'):
    return dataclasses.dataclass(frozen=True)(
        type('DataLayout', (), {
            'depth_levels': (0.5, 1.57, 2.79),
            'depth_thickness': (1.07, 1.22, 1.395),
            'prognostic_var_names': _select_var_names(vars_by_key_prog, prognostic_vars_key, 'llc', 'prognostic'),
            'boundary_var_names': _select_var_names(vars_by_key_bound, boundary_vars_key, 'llc', 'boundary'),
            'default_metadata': {'temp': {'units': 'K'}, 'salt': {'units': 'psu'}},
            'ocean_heat_temperature_var': 'temp_0',
            'grid_type': 'gaussian',
        })
    )()

ARGS = {
    'prognostic_vars_key': 'single_1',
    'boundary_vars_key': 'single_1',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLayout — a DataLayout output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLayout output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_cmap_limits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
m2lines/samudra/src/samudra/aggregator/plotting.py
code served (permissive licence) · get_code("176ded160fde8076")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple numpy array with some NaN values for testing
data = np.array([1.0, 2.0, 3.0, -2.0, -1.0, np.nan, 5.0, -3.0])

ARGS = {
    "data": data,
    "diverging": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_imshow Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
m2lines/samudra/src/samudra/aggregator/plotting.py
code served (permissive licence) · get_code("10458b939cac2dbb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Figure. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import Colormap

# Create a small 2D numpy array for plotting
np.random.seed(0)
data = np.random.randn(8, 12)  # 8 height, 12 width - distinct dimensions

# Create colormap
cmap = plt.cm.viridis

# Define all arguments
ARGS = {
    "data": data,
    "vmin": None,
    "vmax": None,
    "cmap": cmap,
    "flip_lat": True,
    "use_colorbar": True,
    "nan_padding": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_config_path Ran
ran; our contract draft was wrong, not the code
m2lines/samudra/src/samudra/config_base.py
code served (permissive licence) · get_code("b3bfcf99bf2e29a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory to simulate the filesystem
temp_dir = tempfile.mkdtemp()
temp_config_path = Path(temp_dir) / "test_config.yaml"
temp_config_path.write_text("test: config\n")

ARGS = {
    "config": str(temp_config_path)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_om4_layout Not yet run
unverified (harvested, no recorded run)
m2lines/samudra/src/samudra/constants.py
code served (permissive licence) · get_code("7d164b3ef3042d89")
How it ran

no invocation recorded.

get_pydantic_models Not yet run
unverified (harvested, no recorded run)
m2lines/samudra/src/samudra/config_schema.py
code served (permissive licence) · get_code("81a7e5afb4d681c6")
How it ran

no invocation recorded.

validate_config_files Not yet run
unverified (harvested, no recorded run)
m2lines/samudra/src/samudra/config_schema.py
code served (permissive licence) · get_code("fe5e4851475f43a4")
How it ran

no invocation recorded.

weighted_mean Not yet run
unverified (harvested, no recorded run)
m2lines/samudra/src/samudra/aggregator/metrics.py
code served (permissive licence) · get_code("563fb09148ffe522")
How it ran

no invocation recorded.

weighted_sum Not yet run
unverified (harvested, no recorded run)
m2lines/samudra/src/samudra/aggregator/metrics.py
code served (permissive licence) · get_code("7bf915a1ca9e3c04")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

AI emulators for forecasting have emerged as powerful tools that can outperform conventional numerical predictions. The next frontier is to build emulators for long climate simulations with skill across a range of spatiotemporal scales, a particularly important goal for the ocean. Our work builds a skillful global emulator of the ocean component of a state-of-the-art climate model. We emulate key ocean variables, sea surface height, horizontal velocities, temperature, and salinity, across their full depth. We use a modified ConvNeXt UNet architecture trained on multi-depth levels of ocean data. We show that the ocean emulator - Samudra - which exhibits no drift relative to the truth, can reproduce the depth structure of ocean variables and their interannual variability. Samudra is stable for centuries and 150 times faster than the original ocean model. Samudra struggles to capture the correct magnitude of the forcing trends and simultaneously remain stable, requiring further work.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2412.03795")
get_code_for_paper("2412.03795")
have("2412.03795")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2412.03795.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2412.03795.svg)](https://syntology.ai/paper/2412.03795)

Connect an agent — have() is free.