SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.12095 · 2024

Major TOM: Expandable Datasets for Earth Observation

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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 7 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2402.12095.json · badge: /api/ran/2402.12095.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
ESA-PhiLab/Major-TOM community (classifier label)
classifier basis not recorded on the link
7 ran · 4 no recorded run
FunctionStatusWhere it lives
dem_thumbnail Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/extras/thumbnail_dem.py
code served (permissive licence) · get_code("1c8d1263fb1717a9")
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 (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 a small DEM (Digital Elevation Model) array
dem = np.random.randn(4, 3).astype(np.float32) * 100 + 1000

ARGS = {
    "dem": dem,
    "dem_NODATA": -32768.0,
    "hillshade": 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 ndarray, ndim 2, dtype family int, shape (4, 3) — shape (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
fig2img Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/extras/coverage_vis.py
code served (permissive licence) · get_code("759e1b4914b196e1")
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 PngImageFile. 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 matplotlib
matplotlib.use('Agg')

# Create a simple matplotlib figure
fig = plt.figure(figsize=(4, 3))
ax = fig.add_subplot(111)
ax.plot([1, 2, 3], [1, 2, 3])
ax.set_title('Test Figure')

ARGS = {
    'fig': fig
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, matplotlib — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile output the recorded ndim 3 and dtype family int 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
fragment_unfold Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/embedder/grid_cell_fragment.py
code served (permissive licence) · get_code("41b719572c681073")
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 4, dtype family float, shape (2, 3, 4, 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 a small test image with shape (height, width, channels)
# Using distinct dimensions: height=8, width=6, channels=3
image_np = np.random.rand(8, 6, 3).astype(np.float32)

# Fragment size as a single integer (will be converted to [size, size])
fragment_size = 4

# Overlap as a single integer (will be converted to [overlap, overlap])
overlap = 1

ARGS = {
    "image": image_np,
    "fragment_size": fragment_size,
    "overlap": overlap,
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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_grayscale Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/extras/thumbnail_dem.py
code served (permissive licence) · get_code("09c5c3afd8af4b9f")
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, 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 numpy as np

# Create a simple numpy array with some values
# Using shape (2, 4) to be small but non-trivial
x = np.random.rand(2, 4).astype(np.float32)

ARGS = {
    "x": x
}
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, 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_utm_zone_from_latlng Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/grid.py
code served (permissive licence) · get_code("2eece8918134444c")
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 math
import re

def get_utm_zone_from_latlng(latlng):
    """
    Get the UTM zone from a latlng list and return the corresponding EPSG code.

    Parameters
    ----------
    latlng : List[Union[int, float]]
        The latlng list to get the UTM zone from.

    Returns
    -------
    str
        The EPSG code for the UTM zone.
    """
    assert isinstance(latlng, (list, tuple)), 'latlng must be in the form of a list or tuple.'
    longitude = latlng[1]
    latitude = latlng[0]
    zone_number = math.floor((longitude + 180) / 6) % 60 + 1
    if latitude >= 56.0 and latitude < 64.0 and (longitude >= 3.0) and (longitude < 12.0):
        zone_number = 32
    elif latitude >= 72.0 and latitude < 84.0:
        if longitude >= 0.0 and longitude < 9.0:
            zone_number = 31
        elif longitude >= 9.0 and longitude < 21.0:
            zone_number = 33
        elif longitude >= 21.0 and longitude < 33.0:
            zone_number = 35
        elif longitude >= 33.0 and longitude < 42.0:
            zone_number = 37
    if latitude < 0:
        epsg_code = f'327{zone_number:02d}'
    else:
        epsg_code = f'326{zone_number:02d}'
    if not re.match('32[6-7](0[1-9]|[1-5][0-9]|60)', epsg_code):
        print(f'latlng: {latlng}, epsg_code: {epsg_code}')
        raise ValueError(f'out of bound latlng resulted in incorrect EPSG code for the point')
    return epsg_code


# Valid latlng: [latitude, longitude]
# latitude in range [-90, 90], longitude in range [-180, 180]
# Example: San Francisco area
ARGS = {
    'latlng': [37.7749, -122.4194]
}
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 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
read_png_bytes Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/sample_helpers.py
code served (permissive licence) · get_code("f6f0561f5c61311b")
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 PngImageFile. 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
from PIL import Image
import io

# Create a small valid PNG image in memory
# We'll create a minimal 2x2 RGB image
img = Image.new('RGB', (2, 2), color='red')
png_buffer = io.BytesIO()
img.save(png_buffer, format='PNG')
png_bytes = png_buffer.getvalue()

ARGS = {
    'png_bytes': png_bytes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile output the recorded ndim 3 and dtype family int 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
read_row Ran
ran on a synthesized input
ESA-PhiLab/Major-TOM/MajorTOM/metadata_helpers.py
code served (permissive licence) · get_code("3974a9fcef5ff4e1")
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 PngImageFile. 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 pyarrow as pa
import pyarrow.parquet as pq
from io import BytesIO
from PIL import Image
import tempfile
import os

# Create a mock row object that simulates a geopandas row
class MockRow:
    def __init__(self, parquet_url, parquet_row):
        self.parquet_url = parquet_url
        self.parquet_row = parquet_row

# Create a temporary parquet file with thumbnail data
def create_mock_parquet_file():
    # Create a small test image
    test_image = Image.new('RGB', (10, 10), color='red')
    img_bytes = BytesIO()
    test_image.save(img_bytes, format='PNG')
    img_bytes.seek(0)
    thumbnail_bytes = img_bytes.getvalue()
    
    # Create a parquet table with thumbnail column
    table = pa.table({
        'thumbnail': pa.array([thumbnail_bytes], type=pa.binary())
    })
    
    # Write to a temporary file
    temp_file = tempfile.NamedTemporaryFile(delete=False, suffix='.parquet')
    temp_path = temp_file.name
    temp_file.close()
    
    pq.write_table(table, temp_path)
    return temp_path

# Create mock parquet file
parquet_file_path = create_mock_parquet_file()

# Create mock row
mock_row = MockRow(
    parquet_url=parquet_file_path,
    parquet_row=0
)

ARGS = {
    'row': mock_row,
    'columns': ['thumbnail']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, fsspec, pyarrow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile output the recorded ndim 3 and dtype family int 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
filter_metadata Not yet run
unverified (harvested, no recorded run)
ESA-PhiLab/Major-TOM/MajorTOM/metadata_helpers.py
code served (permissive licence) · get_code("9e3123ee58fe7b18")
How it ran

no invocation recorded.

fragment_fn Not yet run
unverified (harvested, no recorded run)
ESA-PhiLab/Major-TOM/MajorTOM/embedder/grid_cell_fragment.py
code served (permissive licence) · get_code("656ac1028d6da65f")
How it ran

no invocation recorded.

get_hillshade Not yet run
unverified (harvested, no recorded run)
ESA-PhiLab/Major-TOM/MajorTOM/extras/thumbnail_dem.py
code served (permissive licence) · get_code("7b206de29d25d3f8")
How it ran

no invocation recorded.

get_mask Not yet run
unverified (harvested, no recorded run)
ESA-PhiLab/Major-TOM/MajorTOM/extras/coverage_vis.py
code served (permissive licence) · get_code("7ac1e4e2274dc385")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Deep learning models are increasingly data-hungry, requiring significant resources to collect and compile the datasets needed to train them, with Earth Observation (EO) models being no exception. However, the landscape of datasets in EO is relatively atomised, with interoperability made difficult by diverse formats and data structures. If ever larger datasets are to be built, and duplication of effort minimised, then a shared framework that allows users to combine and access multiple datasets is needed. Here, Major TOM (Terrestrial Observation Metaset) is proposed as this extensible framework. Primarily, it consists of a geographical indexing system based on a set of grid points and a metadata structure that allows multiple datasets with different sources to be merged. Besides the specification of Major TOM as a framework, this work also presents a large, open-access dataset, MajorTOM-Core, which covers the vast majority of the Earth's land surface. This dataset provides the community with both an immediately useful resource, as well as acting as a template for future additions to the Major TOM ecosystem. Access: https://huggingface.co/Major-TOM

For agents

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

get_harvested_code_for_paper("2402.12095")
get_code_for_paper("2402.12095")
have("2402.12095")

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

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

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

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

Connect an agent — have() is free.