Skip to main content

Climakitae

codecov CI docs PyPI version Python License Code style: black DOI:10.5281/zenodo.18111935

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 California's Fifth Climate Change Assessment Dataset (downscaled CMIP6 data) and other state supported datasets, enabling researchers and practitioners to perform comprehensive climate impact assessments for California.

Key Features

  • 🌡️ Comprehensive Climate Data Access: Retrieve climate variables from hosted climate model, weather station, renewable energy, and Sup3rCC datasets
  • 📊 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

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

Climakitae requires Python 3.12 or 3.13. We recommend uv on Linux/macOS and conda on Windows or when native geospatial dependencies cause trouble.

Quick install of the latest release:

# with uv
uv pip install climakitae

# with conda
conda create -n climakitae python=3.13 -y
conda activate climakitae
pip install climakitae

For editable installs, developer dependencies, and platform-specific tips, see the Installation Guide on the wiki.

Basic Usage

from climakitae import ClimateData

# Retrieve monthly max temperature for Los Angeles in 2015
data = (
    ClimateData()
    .catalog("cadcat")
    .activity_id("WRF")
    .institution_id("UCLA")
    .table_id("mon")
    .grid_label("d03")
    .variable_id("t2max")
    .processes({
        "time_slice": ("2015-01-01", "2015-12-31"),
        "clip": "Los Angeles",
    })
    .get()
)

# Data is returned as a lazy xarray Dataset
print(data)

The legacy climakitae.core.data_interface APIs are deprecated and scheduled for removal in 2.0.0, targeting late Q1 2027. Existing calls may emit DeprecationWarning; new work should use ClimateData from climakitae.new_core.

source_id() accepts one model name as a string or several names as a list or tuple. For example, to request these LOCA2 models together:

models = (
    ClimateData()
    .catalog("cadcat")
    .activity_id("LOCA2")
    .institution_id("UCSD")
    .source_id(["CESM2-LENS", "CNRM-ESM2-1"])
    .experiment_id(["historical", "ssp370"])
    .table_id("day")
    .grid_label("d03")
    .variable_id("tasmax")
    .get()
)

Pass a single string to select one source, or a list or tuple of source IDs to select multiple sources in one query.

Documentation

Resource Description
Installation Guide Casual, power-user, and developer installs
AE Navigation Guide Interactive notebook tutorial
API Reference Complete API documentation
AE Notebooks Sample notebooks and scripts
Contributing Development guidelines

Contributing

We welcome contributions! Please see our contributing guidelines for details on:

  • 🐛 Reporting bugs
  • 💡 Requesting features
  • 🔧 Submitting code changes
  • 📖 Improving documentation

For setting up a development environment (editable install, tests, formatters), see the Installation Guide on the wiki.

When opening a pull request, please tag at least two project maintainers for review.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

Support


Contributors

Contributors


General External Boundary Datasets Disclaimer

Climakitae includes multiple external boundary datasets from government and institutional sources to provide geographic context and geospatial clipping for climate analysis. These datasets are reference information and have limitations.

Data Sources & Currency

Boundary data in climakitae comes from various official sources and reflects information available at the time of integration. Source agencies update their boundaries periodically, so this data may not capture the most recent changes or all contemporary territorial claims and interests.For more information about each boundary dataset, please reference the README file in our AWS bucket.

Representation & Authority

Equal representation of all communities, and equal capacity for advocacy and participation in decision-making, requires more than the availability of geographic boundary data. Boundaries shown in climakitae are one source of information and do not fully capture the complexity of governance, jurisdictional authority, or community interests.

Reference Layer Only

External boundary data should be used as a reference layer for geographic analysis and context.

Data Verification

Climakitae does not independently verify external boundary information. For critical applications, authoritative sources, official documentation, and representatives of relevant organizations and communities are the primary references.

Feedback

If you have feedback or notice an issue with the boundary data, please email us at support@cal-adaport.org or report an issue on climakitae’s Github repository.

Tribal Boundaries Disclaimer

Climakitae tribal boundary data comes from the U.S. Department of Interior Bureau of Indian Affairs (BIA) GeoSpatial Data Repository (https://biamaps.geoplatform.gov/server/rest/services/BOGS/RTV_VIEWER/MapServer). Equal representation of all tribal perspectives, and equal capacity for advocacy in decision-making, requires more than the availability of this data.

Metadata

Release files for climakitae 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for climakitae 1.6.0
File Size Uploaded Provenance Actions
climakitae-1.6.0.tar.gz 98.5 MB With provenance Details for climakitae-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for climakitae 1.6.0
File Interpreter ABI Platform Actions
climakitae-1.6.0-py3-none-any.whl Python 3 none any Details for climakitae-1.6.0-py3-none-any.whl

Total release size: 128.5 MB

Release files / climakitae-1.6.0.tar.gz

Download URL climakitae-1.6.0.tar.gz
Size 98.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b5a4875bf31647d7a6ba8fe882ab59ab17cb4110ae9e394bd02de7056f2b4886
BLAKE2b-256 checksum
How to use checksums
a43c01f1f99e7639d24207d7e0c0c783ea0e88bcd7185275af8deafdaceea93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / climakitae-1.6.0-py3-none-any.whl

Download URL climakitae-1.6.0-py3-none-any.whl
Size 30.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
eefa7c4e2fddb8b40b1119312a229586f9b3d346238631be865984dde9be932e
BLAKE2b-256 checksum
How to use checksums
9e3b33d2e076a7ec5c0dfd06be73a0b072caff0a4216651ef3424fcdb41aa89b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for climakitae 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for climakitae-1.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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