--- license: cc0-1.0 task_categories: - time-series-forecasting tags: - climate - precipitation - cmorph - noaa - virtualizarr - kerchunk - zarr - icechunk - east-africa - geospatial size_categories: - 100K=", 2020), ("year", "<=", 2023)], ) print(f"2020-2023 files: {len(df)}") ``` ## Architecture ``` NOAA S3 (public) Parquet Catalog Icechunk Store (GCS) ┌──────────────────┐ VirtualiZarr ┌──────────────────┐ materialize ┌──────────────────┐ │ 236,688 NetCDF │ ──────────────────>│ cmorph-aws-s3- │ ───────────────> │ EA Subset │ │ files (8km, │ Coiled workers │ 1998-2024 │ Coiled + S3 │ (Icechunk repo) │ │ 30-min, global) │ + Kerchunk refs │ .parquet │ direct reads │ lat:-12..23 │ └──────────────────┘ │ (223 MB) │ │ lon: 21..53 │ └──────────────────┘ └────────┬─────────┘ │ rechunk ┌────────▼─────────┐ │ Pencil Zarr │ │ (full-time x │ │ 5lat x 5lon) │ └──────────────────┘ ``` ## Dependencies - Python 3.10+ - `virtualizarr`, `kerchunk`, `fsspec`, `obstore` - `pandas`, `pyarrow`, `xarray`, `zarr` - `icechunk` (for the East Africa materialized store) - `coiled`, `dask.distributed` (for distributed processing) - `pystac`, `stac-geoparquet` (for STAC integration — future) ## Related Scripts | Script | Purpose | Link | |---|---|---| | `cmorph_parquet_vds_catalog.py` | Build the Parquet VDS catalog from S3 | [GitHub](https://github.com/icpac-igad/ibf-thresholds-triggers/blob/xarray-method/thresholds/CMORPH/cmorph_parquet_vds_catalog.py) | | `cmorph_east_africa_icechunk.py` | Materialize EA subset + pencil rechunk | [GitHub](https://github.com/icpac-igad/ibf-thresholds-triggers/blob/xarray-method/thresholds/CMORPH/cmorph_east_africa_icechunk.py) | ## License The CMORPH data is produced by NOAA's Climate Prediction Center and is in the public domain. The processing scripts and catalog are part of the [ICPAC IGAD IBF Thresholds & Triggers](https://github.com/icpac-igad/ibf-thresholds-triggers) project.