Skip to main content

CDO-based NetCDF regridding with chunking, parallel workers, and optional CMIP filename helpers

Project description

cdo-toolkit

CDO-based NetCDF regridding toolkit: weight caching, time-chunked processing, parallel workers, Rich progress UI, and optional surface/seafloor level extraction.

Works with general NetCDF files. CMIP6 filename helpers (tos_Omon_... variable filtering, nominal_resolution metadata) live in cdo_toolkit.cmip but are optional.

Requirements

  • Python ≥ 3.10
  • CDO binary on PATH (e.g. conda install -c conda-forge cdo)

Install

pip install cdo-toolkit
# editable from source
pip install -e .

CLI

cdo-toolkit /path/to/data -o /path/to/out -r 1.0 1.0 -w 4
python -m cdo_toolkit /path/to/file.nc --extract-surface

Python API

from pathlib import Path
from cdo_toolkit import CDORegridPipeline, regrid_directory, regrid_single_file

regrid_directory(Path("data/"), target_resolution=(1.0, 1.0), max_workers=8)

Package layout

Module Role
pipeline CDORegridPipeline core
api High-level regrid_directory, regrid_single_file, …
workers Process-pool worker entrypoints
ui Rich progress bars
cmip Optional CMIP6 filename/metadata helpers
paths Weight-cache and intermediate-file path helpers

License

BSD-3-Clause

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

cdo_toolkit-0.1.0.tar.gz (40.5 kB view details)

Uploaded Source

Built Distribution

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

cdo_toolkit-0.1.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file cdo_toolkit-0.1.0.tar.gz.

File metadata

  • Download URL: cdo_toolkit-0.1.0.tar.gz
  • Upload date:
  • Size: 40.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for cdo_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5b224ffd0a73772f2b354699fe09231bbae9bc52fde643764010486b7d02cc2
MD5 a12f7ae6c19f821c65a1a37348ab859d
BLAKE2b-256 82d59ade454dff5c0927dfa25b2ae2b8bd6e093b3247b7ae43aa434c9f88ca1d

See more details on using hashes here.

File details

Details for the file cdo_toolkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cdo_toolkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for cdo_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab752132a286fd5d75c9d5eaa7ddcb0bc92a31677b428aa7bf6a6ebbde6a2b71
MD5 9d86f3076ef7ed89402429e3ec65f341
BLAKE2b-256 f98b539d3100235b9869d244604c2de606a03a74d06856402251b0fb765fa9c2

See more details on using hashes here.

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