Metadata-Version: 2.4
Name: cedarkit
Version: 2026.11.0
Summary: A toolkit for meteorological data processing and visualization at CEMC/CMA.
Author-email: Wang Dapeng <perillaroc@gmail.com>
License: Apache-2.0
Project-URL: Homepage, https://github.com/cemc-oper/cedarkit
Project-URL: Repository, https://github.com/cemc-oper/cedarkit.git
Keywords: meteorology,data,graphic,cemc,cedarkit
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: reki<2027,>=2026.11.0
Requires-Dist: cedarkit-comp<2027,>=2026.7.0
Requires-Dist: cedarkit-plots<2027,>=2026.11.0
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# cedarkit

![Maturity-Sandbox](https://img.shields.io/badge/Maturity-Sandbox-F9D71C)
![GitHub Release](https://img.shields.io/github/v/release/cemc-oper/cedarkit)
![PyPI - Version](https://img.shields.io/pypi/v/cedarkit)
![GitHub License](https://img.shields.io/github/license/cemc-oper/cedarkit)
![GitHub Action Workflow Status](https://github.com/cemc-oper/cedarkit/actions/workflows/ci.yaml/badge.svg)

`cedarkit` is the meta package for the CEMC meteorological data-processing and
visualization toolkit. Installing it provides the core data-access,
meteorological-computation, and plotting packages as a compatible set.

`cedarkit` itself intentionally ships no Python modules. It exists to provide a
single installation target and a tested dependency set, following the meta-
package model used by [earthkit](https://github.com/ecmwf/earthkit). The
`cedarkit` namespace is supplied by component packages as a PEP 420 namespace
package.

> This project is at the Sandbox maturity level. Component APIs and the
> dependency set may still evolve.

## Included components

| Package | Namespace | Responsibility |
| --- | --- | --- |
| [reki](https://github.com/cemc-oper/reki) | `reki` | Locate, read, query, and process meteorological data, including GRIB2 data in CMADaaS-mounted directories. |
| [cedarkit-comp](https://github.com/cemc-oper/cedarkit-comp) | `cedarkit.comp` | Meteorological computation utilities, such as smoothing and grid calculations. |
| [cedarkit-plots](https://github.com/cemc-oper/cedarkit-plots) | `cedarkit.plots` | Plotting primitives, map domains, styles, colormaps, and declarative plot recipes. |

Together, the components form a simple workflow:

```text
CMADaaS-mounted data → reki → cedarkit.comp → cedarkit.plots → figures
```

Use the components independently when only one layer is needed, or install
this meta package when an application needs the complete toolkit.

## Installation

Python 3.11 or later is required.

```bash
pip install cedarkit
```

The runtime dependencies install `reki`, `cedarkit-comp`, and
`cedarkit-plots`. Reading GRIB2 data requires an ecCodes installation provided
by the target environment.

## Quick check

After installation, the component namespaces should import directly:

```python
import reki

from cedarkit.comp.smooth import smth9
from cedarkit.plots.chart import Panel

print("cedarkit components are available")
```

For CMADaaS-mounted GRIB data, declare a local `reki` source and select by
UTC initialization time and forecast lead.

```python
import reki

with reki.from_source(
    {"kind": "local", "dataset": "cma_gfs_gmf", "root": "/CMADAAS"}
) as source:
    field = source.sel(
        parameter="t2m",
        time="2026-11-02T12:00:00Z",
        step="PT6H",
    ).one()
    t2m = field.to_xarray()["t2m"]
```

The mounted-directory workflow reads local files and does not require CMADaaS
remote-service credentials.

## Development

In this workspace, the three components are configured as local editable
dependencies. Install the meta package and its test extra from this directory:

```bash
cd repo/cedarkit
uv pip install -e ".[test]"
pytest
```

The version is derived from Git tags by `setuptools_scm`. Since this is a meta
package, it has no module-level version file and ships no code of its own.

## License

Copyright &copy; 2021-2026, developers at cemc-oper.

`cedarkit` is licensed under the [Apache License 2.0](LICENSE).
