Skip to main content

Climakitae

codecov CI Documentation Status PyPI version Python License Code style: black

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

Install 1.4.0 with conda on Linux

For additional details on the latest version and step-by-step installation instructions please visit the wiki

# get the conda lock file from github
curl https://raw.githubusercontent.com/cal-adapt/cae-environments/refs/heads/main/conda-lock/climakitae/1.3.0/conda-linux-64.lock -o conda-linux-64.lock

# create and activate your environment
conda create -n climakitae --file conda-linux-64.lock
conda activate climakitae

# install climakitae
pip install https://github.com/cal-adapt/climakitae/archive/refs/tags/1.4.0.zip

Installation via Pip

Prerequisites

  • Python 3.12
  • pip

Install 1.3.0 with pip on Linux

For additional details on the latest version and step-by-step installation instructions please visit the wiki

# get the requirements.txt file from github
curl https://raw.githubusercontent.com/cal-adapt/climakitae/refs/heads/release-1.3.0/requirements.txt -o requirements.txt

# load packages from requirements.txt
pip install -r requirements.txt

# install climakitae
pip install https://github.com/cal-adapt/climakitae/archive/refs/tags/1.4.0.zip

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

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

Support


Contributors

Contributors

Download files

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

Source Distribution

climakitae-1.4.0.tar.gz (98.9 MB view details)

Uploaded Source

Built Distribution

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

climakitae-1.4.0-py3-none-any.whl (30.6 MB view details)

Uploaded Python 3

File details

Details for the file climakitae-1.4.0.tar.gz.

File metadata

  • Download URL: climakitae-1.4.0.tar.gz
  • Upload date:
  • Size: 98.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for climakitae-1.4.0.tar.gz
Algorithm Hash digest
SHA256 97139d46ad2e0a1475d5a599eb5eb4da0139de826664e12aa5c1ff2f4309ddbb
MD5 a9a730b7f61535416de4d96a6ea243ee
BLAKE2b-256 84dec7fb43c9416543fe109aa8d4350062505b12b5bb53e0e4a6b3df4c09217b

See more details on using hashes here.

Provenance

The following attestation bundles were made for climakitae-1.4.0.tar.gz:

Publisher: publish.yml on cal-adapt/climakitae

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

File details

Details for the file climakitae-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: climakitae-1.4.0-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

Hashes for climakitae-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17a80057306a03a9a75212d68a83dd6eb32e6e93162c7591fbc240cd3c440f43
MD5 d8b8c4beb00190f57984600dac22d34b
BLAKE2b-256 3d857aeaed95256d1ee8d0263121e24e1229a97e97e9b6addd8ed05301355946

See more details on using hashes here.

Provenance

The following attestation bundles were made for climakitae-1.4.0-py3-none-any.whl:

Publisher: publish.yml on cal-adapt/climakitae

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

Release history Release notifications | RSS feed

1.5.9

2 files

1.5.8

2 files

1.5.7

2 files

1.5.6

2 files

1.5.5

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.6

2 files

1.4.5

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

This release

1.4.0 This release

2 files

1.3.0

2 files

1.2.3

2 files

1.2.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page