# Source: CHIRPS (Climate Hazards Group InfraRed Precipitation with Station data)
# Type: cog
# Catalog: Manual
# Created for: CBGB benchmark problems

source:
  id: ucsb-chg-chirps
  name: CHIRPS v2.0 Precipitation
  type: cog
  url: https://www.chc.ucsb.edu/data/chirps
  description: >
    CHIRPS (Climate Hazards Group InfraRed Precipitation with Station data)
    is a quasi-global rainfall dataset spanning 50+ years at 0.05 degree
    (~5.5km) resolution. It combines satellite imagery with in-situ station
    data to create gridded rainfall time series for trend analysis and
    seasonal drought monitoring. Covers 50S-50N, all longitudes. Available
    at daily, pentadal (5-day), dekadal (10-day), and monthly time steps.
    Widely used for food security early warning, agricultural monitoring,
    and hydrological modeling in data-sparse regions.
  provider: UC Santa Barbara Climate Hazards Center (CHC)
  license: CC-BY-4.0
  metadata:
    connector_id: null
    tags:
    - Precipitation
    - Rainfall
    - Climate
    - Global
    - Raster
    - CHIRPS
    - Drought
    - Food Security
    dataset:
      tier: 1
      thematic_group: Climate & Weather
      format: cog
      resolution: 0.05 degree (~5.5km)
      crs: EPSG:4326
      bands:
      - id: precipitation
        description: Rainfall amount (mm)
        dtype: float32
      temporal:
        range: 1981-01-01/..
        frequency: daily
        type: time_series
        default_range: latest
      quality:
        methodology: >
          Blends cold cloud duration (CCD) observations from geostationary
          satellites with TRMM 3B42 product, CHPclim climatology, and
          station data using a modified inverse distance weighting algorithm.
          Station data improves estimates where ground truth is available.
        accuracy: >
          Validation against gauge networks shows high correlation (r>0.9)
          at monthly scale. Daily estimates have higher uncertainty. Performs
          well in tropical and subtropical regions. See Funk et al. 2015,
          Scientific Data 2:150066.
        coverage: quasi-global (50S-50N)
      layout:
        type: partitioned
        uri_template: https://data.chc.ucsb.edu/products/CHIRPS-2.0/{region}/{frequency}/tifs/p05/{year}/chirps-v2.0.{date}.tif.gz
        parameters:
        - var: region
          values:
          - global
          - africa
        - var: frequency
          values:
          - daily
          - pentad
          - dekad
          - monthly
        - var: year
          description: Data year (1981-present)
        - var: date
          description: Date string format varies by frequency
      access:
        type: http
        url: https://data.chc.ucsb.edu/products/CHIRPS-2.0/
        notes: >
          Public HTTP access. COG and NetCDF formats. GEE hosts pentadal
          (UCSB-CHG/CHIRPS/PENTAD) and daily (UCSB-CHG/CHIRPS/DAILY)
          collections. Also available from IRI Data Library.
      original_source_url: https://data.chc.ucsb.edu/products/CHIRPS-2.0/
      homepage: https://www.chc.ucsb.edu/data/chirps
      gee_asset_id: UCSB-CHG/CHIRPS/PENTAD
      cbgb_problems:
      - EBD_F4.2_C1
