Skip to main content

Tool for climate data research

Project description

🌍 climatrix


Climatrix is a flexible toolbox for sampling and reconstructing climate datasets.

It provides utilities and an xarray accessor that simplifies the workflow of working with climate data arrays — from preprocessing to statistical sampling.


👤 Author


👥 Contributors


📌 Version

Important This is an alpha release – features are still evolving, and breaking changes may occur.


📚 Table of Contents


⚙️ Usage

Getting started and API reference are available in the official documentation.


🧪 Examples

🔍 Click to expand example: Accessing `climatrix` features
import climatrix as cm
import xarray as xr

my_dataset = "/file/to/netcdf.nc
cm_dset = xr.open_dataset(my_dataset).cm
📊 Click to expand example: Getting values of coordinate
import climatrix as cm
import xarray as xr

my_dataset = "/file/to/netcdf.nc"
cm_dset = xr.open_dataset(my_dataset).cm
print("Latitude values: ", cm_dset.latitude)
print("Time values: ", cm_dset.time)
📊 Subsetting by bounding box
import climatrix as cm
import xarray as xr

my_dataset = "/file/to/netcdf.nc
cm_dset = xr.open_dataset(my_dataset).cm
europe = cm_dset.cm.subset(north=71, south=36, west=-24, east=35)

🛠️ Features

  • 🧭 Easy access to coordinate data (similar to MetPy), using regex to locate lat/lon
  • 📊 Sampling of climate data, both uniformly and using normal-like distributions
  • 🔁 Reconstruction via:
    • IDW (Inverse Distance Weighting)
    • Ordinary Kriging
    • SIREN (Sinusoidal INR)
  • 🧪 Tools to compare reconstruction results
  • 📈 Plotting utilities for visualizing inputs and outputs

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👥 Contributing

The rules for contributing on the project are described in CONTRIBUTING file in details.


🙏 Citation

If you are using this software in scientific work, cite us:

@misc{climatrix,
  author       = {Walczak, J., Żyndul, W.},
  title        = {climatrix: Climate data reconstruction made simple },
  year         = {2025},
  publisher    = {GitHub},
  journal      = {GitHub repository},
  howpublished = {\url{https://github.com/jamesWalczak/climatrix}},
}

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

climatrix-0.5a0.tar.gz (11.2 MB view details)

Uploaded Source

Built Distribution

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

climatrix-0.5a0-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file climatrix-0.5a0.tar.gz.

File metadata

  • Download URL: climatrix-0.5a0.tar.gz
  • Upload date:
  • Size: 11.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for climatrix-0.5a0.tar.gz
Algorithm Hash digest
SHA256 fc42a907122b97b7e3d3048abf1d037ce690a7a490d3f0ba7bafafeb6a3c6c7a
MD5 ab17770c344903242860fb7a44ef861f
BLAKE2b-256 a8c712167b2f0ab76d08c4e07edf4ee253b4db783341d83316ceb71c110d12b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for climatrix-0.5a0.tar.gz:

Publisher: release_pypi.yml on jamesWalczak/climatrix

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

File details

Details for the file climatrix-0.5a0-py3-none-any.whl.

File metadata

  • Download URL: climatrix-0.5a0-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for climatrix-0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6ecb3481708aab3ba84e3e0302ab29e4f5a306b1d4a3e1013cb806078e8bc28
MD5 036231b5df12bb55e129199aea331603
BLAKE2b-256 b5d27469a96f78f5bdc1a4f6792afd49639cca35e9b9efb705b06af4840df596

See more details on using hashes here.

Provenance

The following attestation bundles were made for climatrix-0.5a0-py3-none-any.whl:

Publisher: release_pypi.yml on jamesWalczak/climatrix

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