Skip to main content

Shared code for the icon4py model.

Project description

icon4py-common

Description

Utilities shared by several ICON4Py components.

Installation instructions

Check the README.md at the root of the model folder for installation instructions.

Contents

IO

module containing IO funcitonality for ICON4Py.

The IO module requires the installation of the io optional dependencies defined in pyproject.toml of the icon4py-common package and can be installed with the following command:

uv pip install .[io]

or even better by running:

uv sync --extra io  # or `uv sync --extra all` which includes everything

at the top-level folder of the repository, which installs all ICON4Py packages including the IO dependencies.

Distributed run

The package decomposition contains infrastructure for parallel implementation of icon4py/model. icon4py uses GHEX for halo exchanges. In order to run in parallel optional dependencies mpi4py and ghex need to be installed, which can be done through

uv sync --extra distributed  # or `uv sync --extra all` which includes everything

from the top-level folder of the repository.

Grid

Contains basic infrastructure regarding the (unstructured) grid used in icon4py. There are two implementations of the general grid a small simple grid with periodic boundaries in simple.py used for testing and the ICON grid icon.py both implement the same protocl. The ICON grid can be initialized from an ICON grid file via the grid_manager.py (THIS is still EXPERIMENTAL!!) or from serialized data. The grid_manager.py needs netcdf as an optional dependency, which can be installed with

uv sync --extra io  # or `uv sync --extra all` which includes everything

from the top-level folder of the repository.

interpolation

Contains interpolation stencils and port of interpolation fields in ICON.

math

math utilities.

states

contains type for the ICON prognostic state used by several packages.

test_utils

Utilities used in tests made available here for usage in other packages

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icon4py_common-0.2.0rc2.tar.gz (153.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icon4py_common-0.2.0rc2-py3-none-any.whl (205.8 kB view details)

Uploaded Python 3

File details

Details for the file icon4py_common-0.2.0rc2.tar.gz.

File metadata

  • Download URL: icon4py_common-0.2.0rc2.tar.gz
  • Upload date:
  • Size: 153.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for icon4py_common-0.2.0rc2.tar.gz
Algorithm Hash digest
SHA256 7ade34f070ac886909b12e4a94d2ae56d8ce0e8e657d044907df50cf6391768a
MD5 55c1de28e83cb34d83edefc166d98119
BLAKE2b-256 1ca6f12ce99c591e3c95b0c341a4e971b14f7c6dbaeb75e1d129e3498dd7714e

See more details on using hashes here.

Provenance

The following attestation bundles were made for icon4py_common-0.2.0rc2.tar.gz:

Publisher: pypi-deploy.yml on C2SM/icon4py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file icon4py_common-0.2.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for icon4py_common-0.2.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 db8f43efe21cbbef62eef8b61dcf643e3b0183d7589ab306ddc43d61578c7583
MD5 223fab8414ab0f2ccea4e8b8dc7ac995
BLAKE2b-256 661f007f0fc5271c2575c96f332106a707309331357903c1faf7fdf528f8ebdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for icon4py_common-0.2.0rc2-py3-none-any.whl:

Publisher: pypi-deploy.yml on C2SM/icon4py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page