{
  "slug": "precip-spi-map",
  "name": "中国五十年降水干湿图",
  "brand": "China 50-Year Wet & Dry Pin Map",
  "nameEn": "China 50-Year Wet & Dry Pin Map",
  "category": "mapping",
  "categoryName": "画图出图",
  "description": "打开就能看：1975–2025 年全国 0.5° 格点逐年干湿立针图（标准化降水指数 SPI），湿年针升高、干年针压低；可播放、点格点看详情、导出 PNG / WebM / CSV",
  "descriptionEn": "1975–2025 annual Standardized Precipitation Index on a 0.5° grid over China as a pin map: pins rise in wet years and sink in dry years; play, inspect cells, export PNG / WebM / CSV.",
  "url": "https://data.ruiduobao.cn/tools/precip-spi-map/",
  "input": "无需上传；可选年份（URL 参数 ?year=1975–2025，&play=1 自动播放）",
  "output": "PNG 图片 / WebM 动画 / CSV 格点表（lon,lat,year,spi,precip_mm,valid_years,missing；缺测年 spi 为空、missing=1）",
  "freeBoundary": "免费：全部年份、全部格点，图片、视频、数据表导出都不限次数。",
  "processingLocation": "用户浏览器端（静态数据文件，无后端接口）",
  "parameters": [
    {
      "name": "year",
      "label": "年份",
      "type": "integer",
      "default": 2025,
      "description": "1975–2025，URL 参数 ?year="
    },
    {
      "name": "play",
      "label": "自动播放",
      "type": "integer",
      "default": 0,
      "description": "URL 参数 &play=1"
    },
    {
      "name": "metric",
      "label": "看什么",
      "type": "string",
      "default": "spi",
      "description": "spi 干湿指数 / pct 年降水距平百分比"
    }
  ],
  "data": {
    "files": [
      {
        "url": "https://data.ruiduobao.cn/tools/precip-spi-map/precip-spi-meta.json",
        "format": "JSON",
        "content": "version, years, res, n, spiScale, missing(-128), minValidYears(30), minCV(0.05), lon[], lat[], validYears[] (0 = whole cell missing), nationalSpi[], nationalMm[]"
      },
      {
        "url": "https://data.ruiduobao.cn/tools/precip-spi-map/precip-spi.bin",
        "format": "binary",
        "content": "int8 SPI×40 [year][cell] (-128 = missing), then uint16 little-endian annual precipitation mm [year][cell]; cell order = meta lon/lat arrays"
      },
      {
        "url": "https://data.ruiduobao.cn/tools/precip-spi-map/make_data.py",
        "format": "Python",
        "content": "build script: CRU TS v4.10 pre .nc → precip-spi.bin + precip-spi-meta.json (reproduces the bin byte for byte)"
      },
      {
        "url": "https://data.ruiduobao.cn/tools/precip-spi-map/METHOD.txt",
        "format": "text",
        "content": "method, reproduction steps, source links and licence (zh + en)"
      }
    ],
    "source": "CRU TS v4.10 monthly precipitation, Climatic Research Unit, University of East Anglia",
    "citation": "Harris, I., Osborn, T.J., Jones, P. et al. Version 4 of the CRU TS monthly high-resolution gridded multivariate climate dataset. Sci Data 7, 109 (2020). https://doi.org/10.1038/s41597-020-0453-3",
    "license": "Open Database License (ODbL) 1.0; contents under Database Contents License (DbCL) 1.0; attribution + share-alike",
    "method": "Calendar-year (Jan–Dec) totals = 12-month SPI. Baseline and display period 1975–2025 (51 years). A year is missing if any month is missing or at least 10 of the 12 monthly values lie within max(0.15 mm, 3%) of the calendar-month mode (a site heuristic for values that appear relaxed to climatology; not an official CRU per-cell quality flag — CRU TS has none, and CRU station-count (stn) files are not used). Two-parameter gamma (loc=0) fitted per cell on valid years; cells with <30 valid years or CV of valid annual totals <0.05 (also heuristic) are missing in every year. Zero totals would use a mixed distribution (none occur). SPI = inverse standard-normal of CDF, clipped to ±3. National SPI weighted by cos(lat) over non-missing cells.",
    "temporalCoverage": "1975/2025",
    "resolution": "0.5 degree",
    "baselinePeriod": "1975/2025",
    "sourceCoverage": "CRU TS v4.10: 1901-01 to 2025-12",
    "sourceUrl": [
      "https://crudata.uea.ac.uk/cru/data/hrg/",
      "https://crudata.uea.ac.uk/cru/data/hrg/cru_ts_4.10/cruts.2604091129.v4.10/pre/"
    ],
    "missingFlag": "heuristic (this site), not an official CRU quality flag"
  },
  "examples": [
    {
      "title": "示例：看 1998 年（长江流域大水年）",
      "url": "https://data.ruiduobao.cn/tools/precip-spi-map/?year=1998"
    },
    {
      "title": "示例：自动播放五十年",
      "url": "https://data.ruiduobao.cn/tools/precip-spi-map/?year=1975&play=1"
    }
  ],
  "version": "1.1.0",
  "updated": "2026-11-30"
}