imerg-fetch
/imerg-fetch
Fetch NASA IMERG daily precipitation (global 0.1° grid) for a date range from NASA GES DISC via Earthdata login, as a weather-skills Zarr. Serves the daily Late (GPM_3IMERGDL, about 2 days behind) and Final (GPM_3IMERGDF, gauge-adjusted research quality) files. Use when a task specifically needs these daily GES DISC products, for example IMERG Final.
- Author
- rhiza-research ↗
- Repository
- weather-skills ↗
- Licence
- MIT
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/fetch.py, tests/test_imerg_fetch.py
What it does and when to use it
Fetch NASA IMERG daily precipitation (global 0.1° grid) for a date range from NASA GES DISC via Earthdata login, as a weather-skills Zarr. Serves the daily Late (GPM_3IMERGDL, about 2 days behind) and Final (GPM_3IMERGDF, gauge-adjusted research quality) files. Use when a task specifically needs these daily GES DISC products, for example IMERG Final.
Original author description
Fetch NASA IMERG daily precipitation (global 0.1° grid) for a date range from NASA GES DISC via Earthdata login, as a weather-skills Zarr. Serves the daily Late (GPM_3IMERGDL, about 2 days behind) and Final (GPM_3IMERGDF, gauge-adjusted research quality) files. Use when a task specifically needs these daily GES DISC products, for example IMERG Final.
How it works
- Usage
SKILL.md preview
---
name: imerg-fetch
description: "Fetch NASA IMERG daily precipitation (global 0.1° grid) for a date range from NASA GES DISC via Earthdata login, as a weather-skills Zarr. Serves the daily Late (GPM_3IMERGDL, about 2 days behind) and Final (GPM_3IMERGDF, gauge-adjusted research quality) files. Use when a task specifically needs these daily GES DISC products, for example IMERG Final."
license: MIT
compatibility: Requires Python 3.12 and uv. Authenticates to NASA Earthdata via the `earthaccess` library — set EARTHDATA_USERNAME and EARTHDATA_PASSWORD in the environment, or use a `.netrc` entry for `urs.earthdata.nasa.gov`. Earthdata accounts are free with sign-up at https://urs.earthdata.nasa.gov/users/new.
allowed-tools: Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/fetch.py *)
metadata:
version: "0.0.4"
catalog-group: fetchers
variables:
- precip
openclaw:
requires:
env:
- EARTHDATA_USERNAME
- EARTHDATA_PASSWORD
primaryEnv: EARTHDATA_USERNAME
---
# imerg-fetch
Downloads IMERG daily files for a date range and writes the global daily precipitation grid.
## Usage
```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/fetch.py --start-time YYYY-MM-DD --end-time YYYY-MM-DD [--version late|final] -o OUT.zarr
# Latest published day of one product (no download)
uv run ${CLAUDE_SKILL_DIR}/scripts/fetch.py --probe-latest [late|final]
```
### Arguments
- `--start-time`, `--end-time` — inclusive date range.
- `--version` — `late` (`GPM_3IMERGDL`, near real time) or `final` (`GPM_3IMERGDF`). Default: `late`.
- `--probe-latest` — print the latest published day (`YYYY-MM-DD`) on stdout and exit. Optional value `late` or `final`; without one it uses `--version`.
- `--output`, `-o` — output Zarr, overwritten.
### Output
- `precip`, the daily mean rate in `mm day-1`, dims `(time, latitude, longitude)`, latitude ascending, on the full global 0.1° grid.
- `data_interval` `1 day`. Global attrs `weather_skills_source=imerg`, `imerg_version` (`late` or `final`), and `source` naming the GES DISC collection.
### Notes
- Credentials come from `EARTHDATA_USERNAME` / `EARTHDATA_PASSWORD`, then `~/.netrc`; failure exits 1.
- Pick `--version` from the window. Final lags months (its V07 collection ends 2025-09-30 as of October 2026); run `--probe-latest final` and use `final` only up to that day, `late` after it. A window crossing that day needs two fetches, or `late` throughout. A `final` window with no published day exits 1.
- An `--end-time` past the latest day writes the days available and warns on stderr. A missing day inside the range exits 1. Missing days are never filled.
- There is no `--bbox`: each day downloads the whole global file (about 32 MB) and holds it in memory. Keep windows short and clip afterwards.
### Example
```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/fetch.py --start-time 2026-10-01 --end-time 2026-10-10 --version late -o imerg_late_oct.zarr
```
Writes 10 days of global IMERG Late daily rainfall rates.
Files in this package (3)
- SKILL.md 3 KB
- scripts/fetch.py 7 KB
- tests/test_imerg_fetch.py 5 KB
Versions
The database has no other skills named imerg-fetch.
Database snapshot: 13.11.2026 · package version 74b71a221cec (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100smap-fetch
Fetch NASA SMAP Enhanced L3 (SPL3SMP_E) daily 9 km volumetric surface soil moisture for a region and short date range via NASA Earthdata, as a weather-skills Zarr. Needs an Earthdata login. Use when a task needs gridded soil-moisture observations, e.g. for drought or… - 100neuralgcm-fetch
Fetch a NeuralGCM subseasonal ensemble forecast (up to 50 members, 6-hourly leads to 60 days, ~2.8° global) for one init over an optional lat/lon box, as a weather-skills Zarr: IMERG-trained precipitation, or 2 m temperature and dewpoint. Reads the private Tomorrow Now 2026… - 100environment-setup
在真正开始下载之前,检查并引导用户配置 ResearchDataHub 数据源所需的依赖与凭证(如 CDS 的 CDSAPI_KEY、NCAR/NASA 的认证),全程由用户自己在终端完成配置,Agent 绝不索取或打印任何密码或令牌。当采集前需要"这台机器能不能跑通"的判断、出现 MISSING_CREDENTIAL 类阻断、或用户问"怎么配置 CDS/Earthdata 凭证"时使用。