ICON Grid Generator
Pure Python generation of deterministic ICON-style triangular grids.
The package provides spherical R<n>B<k> grids, planar triangular grids,
limited-area extraction, geometry diagnostics and transforms, xarray conversion,
and ICON-compatible NetCDF export. Large global grids use export-first generation
with bounded derived-field memory and resumable disk checkpoints.
Installation
The base package requires Python 3.10 or newer and NumPy:
python -m pip install icon-grid-generator
Install acceleration and common output integrations for high-resolution work:
python -m pip install "icon-grid-generator[accelerate,netcdf,xarray]"
Numba acceleration is optional for in-memory grids and required for the high-resolution export-first path.
Quick Start
Generate an in-memory grid and write the complete NetCDF schema:
from grid_generator import generate_grid
grid = generate_grid("R2B4")
print(grid.name, grid.dims)
grid.to_netcdf("icon_grid_R02B04.nc")
Generate a large global grid directly to NetCDF:
from grid_generator import generate_grid_to_netcdf
generate_grid_to_netcdf(
"R2B12",
"icon_grid_R02B12.nc",
options={"max_cells": None, "accelerator": "numba"},
work_dir="icon-grid-R2B12-work",
fields="reduced",
)
The default full profile contains 85 fields. reduced contains the 46-field
union required by the standard ICON and icon4py global-grid readers. Dedicated
icon and icon4py profiles and exact custom field lists are also available.
Place large outputs and checkpoint directories on disk-backed storage. Each
checkpoint manifest atomically selects a complete array snapshot, so an
interrupted overwrite leaves the preceding completed checkpoint resumable.
Performance
Measurements used an exclusive dual-socket AMD EPYC 7713 node with 128 physical cores and about 446 GiB of available memory. Times cover independent generation and uncompressed NetCDF export; shared-filesystem I/O varies with storage load.
| R2B12 output | Generation | NetCDF export | Total | Peak RSS | Checkpoints | NetCDF |
|---|---|---|---|---|---|---|
| Full | 43.51 min | 91.24 min | 134.74 min | 328.18 GiB | 162.46 GiB | 1,047.50 GiB |
| Reduced | 42.03 min | 42.05 min | 84.08 min | 328.18 GiB | 162.46 GiB | 485.00 GiB |
See Performance and Scaling for R2B8–R2B12 measurements, component timings, validation details, and all field-profile storage sizes.
Documentation
Citation metadata is provided in CITATION.cff. The package is distributed under the BSD 3-Clause License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icon_grid_generator-0.6.0.tar.gz.
File metadata
- Download URL: icon_grid_generator-0.6.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac0062791a3248448b342d84111331e7c5770c752d46e9c83ec3999ffb7cd2d8
|
|
| MD5 |
290298c4f1e697229703f1fd41f657f1
|
|
| BLAKE2b-256 |
96feaad9b8a9ca31332d889eff278bb6665b6c2a4ec2e3b35eadf6b6acb3d54a
|
Provenance
The following attestation bundles were made for icon_grid_generator-0.6.0.tar.gz:
Publisher:
release.yml on ofuhrer/icon-grid-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
icon_grid_generator-0.6.0.tar.gz -
Subject digest:
ac0062791a3248448b342d84111331e7c5770c752d46e9c83ec3999ffb7cd2d8 - Sigstore transparency entry: 2397543240
- Sigstore integration time:
-
Permalink:
ofuhrer/icon-grid-generator@d4b4a7f062db4697ab55974f2e46123bfb2d4ea6 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/ofuhrer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d4b4a7f062db4697ab55974f2e46123bfb2d4ea6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file icon_grid_generator-0.6.0-py3-none-any.whl.
File metadata
- Download URL: icon_grid_generator-0.6.0-py3-none-any.whl
- Upload date:
- Size: 89.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7563d3a5dbaabf2a584b6edc09d5f39416281e05c3220a1751b3571512c15146
|
|
| MD5 |
ce01584cd20aab35b2cf7b3b4ff7fa16
|
|
| BLAKE2b-256 |
73762f4a53219630581ce52a2c431bbef8732efe3a6b15902859e326dfcdfb9c
|
Provenance
The following attestation bundles were made for icon_grid_generator-0.6.0-py3-none-any.whl:
Publisher:
release.yml on ofuhrer/icon-grid-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
icon_grid_generator-0.6.0-py3-none-any.whl -
Subject digest:
7563d3a5dbaabf2a584b6edc09d5f39416281e05c3220a1751b3571512c15146 - Sigstore transparency entry: 2397543519
- Sigstore integration time:
-
Permalink:
ofuhrer/icon-grid-generator@d4b4a7f062db4697ab55974f2e46123bfb2d4ea6 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/ofuhrer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d4b4a7f062db4697ab55974f2e46123bfb2d4ea6 -
Trigger Event:
push
-
Statement type: