Skip to content

Himawari-8/9 AHI (JAXA P-Tree)

The ahi gatherer downloads full-disk Advanced Himawari Imager (AHI) granules from the JAXA P-Tree archive over FTP: gridded Level-1 radiance and the Level-2 cloud property product.

Overview

  • Provider: Japan Aerospace Exploration Agency (JAXA) / Earth Observation Research Center (EORC)
  • Official Portal: eorc.jaxa.jp/ptree
  • Data Server: ftp.ptree.jaxa.jp (FTP)
  • Registration: P-Tree User Registration
  • Coverage: Full disk, 60°S–60°N. Longitude 80°E–160°W before the 2026-01-07 footprint change, 70°E–150°W after it
  • Observations: Level-1 gridded radiance (R21) and Level-2 cloud properties (L2CLP)
  • Temporal Resolution: 10 minutes
  • Authentication: Requires a free P-Tree account
  • Output Format: NetCDF-4
  • Download Concurrency: Parallel (max_workers), one FTP connection per worker thread

JAXA connection limits

P-Tree documents a limit of 30 simultaneous connections per host and a 12-hour maximum session duration. max_workers is capped at 8 and defaults to 4; the gatherer recycles connections before the session limit and aborts the run if the server answers 421 after its retries.


Supported Products

Product Value Remote Tree Availability Grid
Level-1 gridded radiance NC /jma/netcdf/{YYYYMM}/{DD}/ Continuous 02801_02401 (0.05°, current), 02401_02401 (0.05°, until 2026-01-06)
Level-2 cloud properties CLP /pub/himawari/L2/CLP/{VER}/{YYYYMM}/{DD}/{hh}/ Daytime only 02401_02401

Both products can be requested in one task: product: ["NC", "CLP"].

The cloud product is daytime-only

Cloud retrieval needs visible bands, so nighttime hours publish nothing. Missing hour folders are a normal result, not an error, and are logged at debug level.

The two products no longer share a grid

The cloud product has always been published on 02401_02401. Since the 2026-01-07 level-1 footprint change the two differ, which is why grid_tag and cloud_grid_tag are configured independently.


Parameters Reference

Parameter Type Default Description
start_date str \| date required First day to fetch, YYYY-MM-DD
end_date str \| date required Last day to fetch, inclusive
product list[str] required ["NC"], ["CLP"], or both
grid_tag str \| None None Level-1 grid tag (e.g. "02801_02401"). Quote it in YAML so it is not read as a number. Resolved from the archive when omitted
cloud_grid_tag str "02401_02401" Cloud-product grid tag, independent of grid_tag
allow_grid_fallback bool True Probe the first requested day's listing to resolve grid_tag when it is not given
cloud_version str "010" Cloud-product algorithm version directory
satellite str \| None None Restrict to one satellite token ("H08" / "H09"). Read from each filename when omitted
time_step_minutes int 10 Cadence to request. Must be positive; 60 fetches one granule per hour
max_workers int 4 Concurrent download threads, one FTP connection each. Capped at 8
session_max_hours float 11.0 Recycle a connection after this long, below JAXA's 12-hour session limit
username str \| None None P-Tree username. Resolved from the credential store when omitted
password str \| None None P-Tree password. Resolved from the credential store when omitted
overwrite_cache bool False Re-download granules that already exist and verify

Grid tags must be quoted in YAML

02401_02401 is a string, not a number. An unquoted value can be read as an octal literal and rejected.


Authentication Setup

Register for a free account at the P-Tree registration page. JAXA emails the FTP credentials. Then:

# Save to credentials.yaml
gathering auth login ahi -u "your_ptree_user" -p "your_ptree_password"

# Or set in environment
export AHI_USERNAME="your_ptree_user"
export AHI_PASSWORD="your_ptree_password"

P-Tree data is provided for non-profit research and education, and redistribution to third parties is not permitted. See the P-Tree Terms of Use.

Register your own account, do not share one

Those terms are the reason this source exists: it replaced a notebook that carried one shared P-Tree login in a code cell. Each person registers their own account, and no credential ever belongs in a repository, a notebook or a task file committed to version control.

Several accounts

When a team holds more than one P-Tree account, configure them as a credential pool and the gatherer picks one identity per run and keeps it across retries and worker threads. With JAXA limiting a host to 30 simultaneous connections, spreading a long backfill across accounts is the supported way to use more of them. See Credential Pools.


Python API Usage

from gathering import Pipeline, Task

pipeline = Pipeline(
    tasks=[
        # Radiance only, hourly, over a single day
        Task.ahi(
            start_date="2026-09-01",
            end_date="2026-09-01",
            product=["NC"],
            grid_tag="02801_02401",
            time_step_minutes=60,
        ),
        # Radiance and cloud properties together
        Task.ahi(
            start_date="2026-09-01",
            end_date="2026-09-03",
            product=["NC", "CLP"],
            grid_tag="02801_02401",
            max_workers=4,
        ),
    ]
)

result = pipeline.run()

CLI Usage

gathering ahi \
  --start_date 2026-09-01 \
  --end_date 2026-09-01 \
  --product NC \
  --grid_tag 02801_02401 \
  --time_step_minutes 60

The gatherer is also registered under the aliases jaxa_ptree and himawari.


YAML Configuration

tasks:
  - source: ahi
    start_date: "2026-09-01"
    end_date: "2026-09-03"
    product: ["NC", "CLP"]
    grid_tag: "02801_02401"        # quoted: it is a string, not a number
    cloud_grid_tag: "02401_02401"
    time_step_minutes: 10
    max_workers: 4

Download Directory Structure

Granules are written to a flat day layout, one directory per product and day, with the original JAXA filename preserved. The cloud product's remote version and hour levels are flattened away.

/workspace/.cache/gathering/AHI/
├── NC/
│   └── 2026/
│       └── 09/
│           └── 01/
│               ├── NC_H09_20260901_0000_R21_FLDK.02801_02401.nc
│               └── NC_H09_20260901_0010_R21_FLDK.02801_02401.nc
└── CLP/
    └── 2026/
        └── 09/
            └── 01/
                ├── NC_H09_20260901_0000_L2CLP010_FLDK.02401_02401.nc
                └── NC_H09_20260901_0010_L2CLP010_FLDK.02401_02401.nc

Behaviour Worth Knowing

The satellite is read from each filename

Himawari-9 has been the primary satellite since December 2022, but Himawari-8 took over again between 2025-10-11 and 2025-11-26 during a Himawari-9 anomaly. The gatherer therefore reads the H08/H09 token from each remote filename instead of deriving it from the requested date. Set satellite explicitly only to restrict a fetch to one platform.

One grid variant per archive

During the dual-publication window both grid tags were served for the same timestamp. Writing both into one archive breaks downstream readers that resolve a granule by globbing its day folder, and the failure appears at read time, where deleting the code cannot repair the archive. The gatherer resolves one grid tag per run, freezes it, and refuses to write a granule whose day folder already holds a different variant.

Resume is per granule

A re-run lists each requested day and downloads only the granules that are missing or fail integrity verification. A day folder holding some granules is not treated as complete, so a run interrupted part-way through a day is resumed rather than skipped.

Only R21 radiance files are matched

An unrelated product shares the radiance day folders on a different grid. The gatherer matches the R21 token explicitly, so those files are never ingested.