SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.03251 · 2023

Interpretable multiscale Machine Learning-Based Parameterizations of Convection for ICON

arXiv · PDF · Open in the Atlas

Code that ran

9 of 16 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 7 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/2311.03251.json · badge: /api/ran/2311.03251.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
EyringMLClimateGroup/heuer23_ml_convection_parameterization canonical (classifier label)
classifier basis: census
9 ran · 7 no recorded run
FunctionStatusWhere it lives
format_date_str Ran
ran; our contract draft was wrong, not the code
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/HelperFuncs.py
code served (permissive licence) · get_code("87d0d51f184808c6")
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 str. 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

def format_date_str(date_str):
    return date_str[:4] + '-' + date_str[4:6] + '-' + date_str[6:8]

# The function takes a date string in YYYYMMDD format and reformats it to YYYY-MM-DD
# It only uses string slicing operations on the input
date_input = "20230515"

ARGS = {
    "date_str": date_input
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_ax_size Ran
ran, honoured the contract we drafted
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/setup_mpl_tex.py
code served (permissive licence) · get_code("bfe0b544d6d55843")
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 matplotlib.pyplot as plt
import matplotlib.transforms as transforms

# Create a figure and axis
fig, ax = plt.subplots(figsize=(8, 6))

# The function needs:
# - ax: an Axes object with get_window_extent() method
# - fig: a Figure object with dpi_scale_trans and dpi attributes

ARGS = {
    "ax": ax,
    "fig": fig,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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
get_cloud_tops Ran
ran, honoured the contract we drafted
EyringMLClimateGroup/heuer23_ml_convection_parameterization/preprocessing/CalcConvOut.py
code served (permissive licence) · get_code("0fe62d62ce151e0c")
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 ndarray, ndim 1, dtype family int, 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 numpy as np

# The function takes ccells as input, which should be a 2D numpy array
# It performs operations like argmax, max along axis 1, and indexing
# ccells.shape[1] is accessed, so it needs to be a 2D array
# Let's create a small 2D numpy array with shape (batch_size, height)

ccells = np.array([
    [0.0, 0.5, 0.8, 0.3],  # batch 1: 4 height levels
    [0.1, 0.0, 0.0, 0.0]   # batch 2: mostly zeros
], dtype=np.float32)

ARGS = {
    'ccells': ccells
}
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 ndarray, ndim 1, dtype family int, 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
get_convective Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/ConvParamFuncs.py
code served (permissive licence) · get_code("fcd0eadc364c2fab")
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 ndarray, ndim 3, dtype family float, shape (2, 4, 3) 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 numpy as np

# Create small test arrays with distinct dimensions
# w_hl: shape (batch, height, lon) - used for column max
# w_fl: shape (batch, height, lon) - used for cell-level masking
# ql: shape (batch, height, lon) - liquid water content
# qi: shape (batch, height, lon) - ice water content

batch_size = 2
height = 4
lon = 3

np.random.seed(0)

# w_hl: vertical velocity at half levels (batch, height, lon)
w_hl = np.random.uniform(0, 2, size=(batch_size, height, lon))

# w_fl: vertical velocity at full levels (batch, height, lon)
w_fl = np.random.uniform(-0.5, 1.5, size=(batch_size, height, lon))

# ql: liquid water content (batch, height, lon)
ql = np.random.uniform(0, 0.1, size=(batch_size, height, lon))

# qi: ice water content (batch, height, lon)
qi = np.random.uniform(0, 0.05, size=(batch_size, height, lon))

# Parameters a and b as specified in function signature
a = 0.0
b = 0.1

ARGS = {
    'w_hl': w_hl,
    'w_fl': w_fl,
    'ql': ql,
    'qi': qi,
    'a': a,
    'b': b
}
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 ndarray, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) 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
get_convective_thetav_buoyancy Ran
ran, violated the contract we drafted
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/ConvParamFuncs.py
code served (permissive licence) · get_code("22f784400456751d")
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 2, dtype family float, shape (2, 4) 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
import numpy as np

torch.manual_seed(0)

# Create small tensors with distinct dimensions for clarity
batch_size = 2
dim_size = 4

# theta_v: virtual potential temperature
theta_v = torch.randn(batch_size, dim_size)

# theta_v_bar: mean virtual potential temperature
theta_v_bar = torch.randn(batch_size, dim_size)

# w: vertical velocity
w = torch.randn(batch_size, dim_size)

# qc: cloud water mixing ratio
qc = torch.randn(batch_size, dim_size)

# qi: cloud ice mixing ratio
qi = torch.randn(batch_size, dim_size)

ARGS = {
    "theta_v": theta_v,
    "theta_v_bar": theta_v_bar,
    "w": w,
    "qc": qc,
    "qi": qi,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
get_pad_last_dim Ran
ran; our contract draft was wrong, not the code
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/NetworksTorch.py
code served (permissive licence) · get_code("eec9b22d31bc12bc")
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 function. 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 torch.nn.functional as F

torch.manual_seed(0)

# The function get_pad_last_dim takes a single parameter 'diff'
# which is used as an integer in F.pad([diff // 2, diff - diff // 2])
# So diff should be an integer representing the total padding difference

ARGS = {
    "diff": 5
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_sp_size Ran
ran, honoured the contract we drafted
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/NDLHyperOpt.py
code served (permissive licence) · get_code("5dfee14da8654920")
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 int, ndim 0, dtype family int, shape () 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
import numpy as np

def get_sp_size(search_space):
    result = 1
    for key, space in search_space.items():
        result *= len(space)
    return result

# Construct a valid search_space dictionary
# The function iterates through items and multiplies the length of each space
search_space = {
    'learning_rate': [0.001, 0.01, 0.1],
    'batch_size': [16, 32, 64, 128],
    'dropout': [0.0, 0.5],
    'activation': ['relu', 'tanh', 'sigmoid', 'elu', 'selu']
}

ARGS = {
    'search_space': search_space
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
pick_with_idx_array_dimm1 Ran
ran; our contract draft was wrong, not the code
EyringMLClimateGroup/heuer23_ml_convection_parameterization/preprocessing/CalcConvOut.py
code served (permissive licence) · get_code("1ada3d07328d4441")
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 ndarray, ndim 2, dtype family int, shape (2, 3) 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 numpy as np

# Create sample data for the function
# vals: the array we're picking from
# idx_arr: indices to pick with (must not have the axis dimension)
# axis: which axis to pick along

vals = np.array([
    [[1, 2, 3, 4],
     [5, 6, 7, 8],
     [9, 10, 11, 12]],
    [[13, 14, 15, 16],
     [17, 18, 19, 20],
     [21, 22, 23, 24]]
])  # shape: (2, 3, 4)

# idx_arr should not have the axis dimension
# If axis=2, idx_arr should have shape (2, 3) with values 0-3
idx_arr = np.array([
    [0, 2, 1],
    [3, 1, 2]
])  # shape: (2, 3)

axis = 2

ARGS = {
    "vals": vals,
    "idx_arr": idx_arr,
    "axis": axis
}
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 ndarray, ndim 2, dtype family int, shape (2, 3) — shape (2, 3) 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
set_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/setup_mpl_tex.py
code served (permissive licence) · get_code("a3a734e005243bf3")
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.

# Setup code for set_size function

ARGS = {
    'width': 139.68,
    'ratio': 'default',
    'fraction': 1,
    'subplots': (1, 1)
}
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 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
add_tke_fl Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/GetTrainingData.py
code served (permissive licence) · get_code("7e94037fc4753b73")
How it ran

no invocation recorded.

assign_bnd_coords Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/HelperFuncs.py
code served (permissive licence) · get_code("14532d3bea226f2f")
How it ran

no invocation recorded.

get_adv_subgrid_tend Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/GetTrainingData.py
code served (permissive licence) · get_code("b436b2e594614b17")
How it ran

no invocation recorded.

get_convective_thetav_grad Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/convection_param/ConvParamFuncs.py
code served (permissive licence) · get_code("cb9c7d5be829b55c")
How it ran

no invocation recorded.

rename_to_standard Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/preprocessing/CalcConvOut.py
code served (permissive licence) · get_code("eb756447c8536e38")
How it ran

no invocation recorded.

vert_coarse_grain_fl Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/preprocessing/VerticalCoarseGrainingParallel.py
code served (permissive licence) · get_code("d89eb716d6952c6a")
How it ran

no invocation recorded.

vert_coarse_grain_hl Not yet run
unverified (harvested, no recorded run)
EyringMLClimateGroup/heuer23_ml_convection_parameterization/preprocessing/VerticalCoarseGrainingParallel.py
code served (permissive licence) · get_code("23c5b110f5991402")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 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 16 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

Machine learning (ML)-based parameterizations have been developed for Earth System Models (ESMs) with the goal to better represent subgrid-scale processes or to accelerate computations. ML-based parameterizations within hybrid ESMs have successfully learned subgrid-scale processes from short high-resolution simulations. However, most studies used a particular ML method to parameterize the subgrid tendencies or fluxes originating from the compound effect of various small-scale processes (e.g., radiation, convection, gravity waves) in mostly idealized settings or from superparameterizations. Here, we use a filtering technique to explicitly separate convection from these processes in simulations with the Icosahedral Non-hydrostatic modelling framework (ICON) in a realistic setting and benchmark various ML algorithms against each other offline. We discover that an unablated U-Net, while showing the best offline performance, learns reverse causal relations between convective precipitation and subgrid fluxes. While we were able to connect the learned relations of the U-Net to physical processes this was not possible for the non-deep learning-based Gradient Boosted Trees. The ML algorithms are then coupled online to the host ICON model. Our best online performing model, an ablated U-Net excluding precipitating tracer species, indicates higher agreement for simulated precipitation extremes and mean with the high-resolution simulation compared to the traditional scheme. However, a smoothing bias is introduced both in water vapor path and mean precipitation. Online, the ablated U-Net significantly improves stability compared to the non-ablated U-Net and runs stable for the full simulation period of 180 days. Our results hint to the potential to significantly reduce systematic errors with hybrid ESMs.

For agents

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

get_harvested_code_for_paper("2311.03251")
get_code_for_paper("2311.03251")
have("2311.03251")

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

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

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

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

Connect an agent — have() is free.