Climate data analysis toolkit
Project description
Climakitae
A powerful Python toolkit for climate data analysis and retrieval from the Cal-Adapt Analytics Engine (AE).
Climakitae provides intuitive tools for accessing, analyzing, and visualizing downscaled CMIP6 data, enabling researchers and practitioners to perform comprehensive climate impact assessments for California.
[!WARNING] This package is under active development. APIs may change between versions.
Key Features
- 🌡️ Comprehensive Climate Data Access: Retrieve climate variables from hosted climate models
- 📊 Downscaled Climate Models: Access dynamical (WRF) and statistical (LOCA2) downscaling methods
- 🗺️ Spatial Analysis Tools: Built-in support for geographic subsetting and spatial aggregation
- 📈 Climate Indices: Calculate heat indices, warming levels, and extreme event metrics
- 🔧 Flexible Data Export: Export to NetCDF, CSV, and Zarr
- 📱 GUI Integration: Works seamlessly with climakitaegui for interactive analysis
About Cal-Adapt
Climakitae is developed as part of the Cal-Adapt Analytics Engine, a platform for California climate data and tools. Cal-Adapt provides access to cutting-edge climate science to support adaptation planning and decision-making.
Getting Started
Installation via Conda
Prerequisites
- Python 3.12 | 3.13
- conda / miniconda
Install latest release with conda on Linux
For additional details on the latest version and step-by-step installation instructions please visit the wiki
# create a conda environment with
conda create -n climakitae python=3.13 -y
conda activate climakitae
pip install climakitae
Installation via Pip
Prerequisites
- Python 3.12
- pip
Install latest release with pip on Linux
For additional details on the latest version and step-by-step installation instructions please visit the wiki
pip install --upgrade pip
pip install climakitae
Basic Usage
from climakitae.core.data_interface import get_data
# Retrieve temperature data for California
data = get_data(
variable="Air Temperature at 2m",
downscaling_method="Dynamical",
resolution="9 km",
timescale="monthly",
scenario="SSP 3-7.0",
cached_area="CA"
)
# Data is returned as an xarray Dataset
print(data)
Documentation
| Resource | Description |
|---|---|
| AE Navigation Guide | Interactive notebook tutorial |
| API Reference | Complete API documentation |
| AE Notebooks | Sample notebooks and scripts |
| Contributing | Development guidelines |
Development Setup
Prerequisites
- Python 3.12
- conda / miniconda
Dev Environment Setup (Linux)
git clone https://github.com/cal-adapt/climakitae.git
cd climakitae
conda create -n climakitae --file conda-linux-64.lock
conda activate climakitae
Running Tests
# Run basic tests
pytest -m "not advanced"
# Run all tests
pytest
# Run with coverage
pip install pytest-cov
pytest --cov=climakitae --cov-report=html
Contributing
We welcome contributions! Please see our contributing guidelines for details on:
- 🐛 Reporting bugs
- 💡 Requesting features
- 🔧 Submitting code changes
- 📖 Improving documentation
Quick Development Workflow
Open a ⚙️ code improvement issue describing the feature you'd like to develop.
Then, checkout and setup your branch:
# Fork the repo and create a feature branch
git checkout -b feature/your-feature-name
# Make your changes and add tests
# ...
# Run tests and linting
pytest
black climakitae/
isort climakitae/
# Submit a pull request
When submitting a pull request, please tag at least two project maintainers/developers for review.
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
Related Projects
- climakitaegui - Interactive GUI tools for climakitae
- cae-notebooks - Example notebooks and tutorials
Support
- 📧 Email: analytics@cal-adapt.org
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Contributors
Project details
Release history Release notifications | RSS feed
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 climakitae-1.4.5.tar.gz.
File metadata
- Download URL: climakitae-1.4.5.tar.gz
- Upload date:
- Size: 99.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36f62e3dcb690ee9663bf3e85382cde02cec107226a08658c045b2229fa801ff
|
|
| MD5 |
201334f15f27659cd2b057e5adbba151
|
|
| BLAKE2b-256 |
5adf5f188a363dcd8a37ffc61b6a5a3eec7068093d1634ead89fec97ae2a1454
|
Provenance
The following attestation bundles were made for climakitae-1.4.5.tar.gz:
Publisher:
publish.yml on cal-adapt/climakitae
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climakitae-1.4.5.tar.gz -
Subject digest:
36f62e3dcb690ee9663bf3e85382cde02cec107226a08658c045b2229fa801ff - Sigstore transparency entry: 747183228
- Sigstore integration time:
-
Permalink:
cal-adapt/climakitae@eb87dbe9e8cbd09360867e04009e5d6b94c30799 -
Branch / Tag:
refs/tags/v1.4.5 - Owner: https://github.com/cal-adapt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb87dbe9e8cbd09360867e04009e5d6b94c30799 -
Trigger Event:
release
-
Statement type:
File details
Details for the file climakitae-1.4.5-py3-none-any.whl.
File metadata
- Download URL: climakitae-1.4.5-py3-none-any.whl
- Upload date:
- Size: 30.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d515b7d9e39b0b936a2ad01da7c6cb2993fa29a7a573c1d3a727d2f87fc2009
|
|
| MD5 |
cc950fe3ce5b441d56467beadac87207
|
|
| BLAKE2b-256 |
92768b65ab8792c400b73bd6576c55ee4e300278d93bd9a8cc6b48c9b51e68d3
|
Provenance
The following attestation bundles were made for climakitae-1.4.5-py3-none-any.whl:
Publisher:
publish.yml on cal-adapt/climakitae
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climakitae-1.4.5-py3-none-any.whl -
Subject digest:
2d515b7d9e39b0b936a2ad01da7c6cb2993fa29a7a573c1d3a727d2f87fc2009 - Sigstore transparency entry: 747183230
- Sigstore integration time:
-
Permalink:
cal-adapt/climakitae@eb87dbe9e8cbd09360867e04009e5d6b94c30799 -
Branch / Tag:
refs/tags/v1.4.5 - Owner: https://github.com/cal-adapt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb87dbe9e8cbd09360867e04009e5d6b94c30799 -
Trigger Event:
release
-
Statement type: