Skip to content

Changelog

All notable changes to this project are documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.


[Unreleased]

[2026.11.0] - 2026-11-05

Fixed

  • AHI (JAXA P-Tree) FTP Stalls: AhiGatherer now opens its FTP connections with a socket timeout (FTP_TIMEOUT_SECONDS = 120). Previously a control or data connection that went silent blocked its worker forever, leaving partial .tmp files and a run that never finished. A stalled operation now raises TimeoutError, which goes through the existing transient-error retry (drop the connection, back off, reconnect).

[2026.9.8] - 2026-09-29

Fixed

  • NASA CMR Granule Search Pagination: Implemented cursor-based pagination loop using the CMR-Search-After header (with automatic fallback to page_num) in search_cmr_granules(). Resolves an issue where PACE and MODIS granule queries were strictly capped at 200 items (the initial page size). Dynamically adapts page size up to 2000 items while respecting user-specified limits and avoids duplicate entries.

[2026.9.7] - 2026-09-23

Added

  • JAXA P-Tree AHI Gatherer (AhiGatherer): Himawari-8/9 radiance (NC/, _R21_ FLDK) and cloud product (CLP/, L2CLP010 FLDK) retrieval over FTP (ftp.ptree.jaxa.jp), remapped onto the fixed AHI/NC/YYYY/MM/DD/ and AHI/CLP/YYYY/MM/DD/ archive layout the downstream grasp-universe reader requires. Registered as ahi (aliases jaxa_ptree, himawari); static elevation (AHI/AUX/) is explicitly out of scope.
  • Independent, configurable radiance/cloud grid tags with a listing-based fallback probe (never a hard-coded calendar cutover date).
  • A three-layer single-grid-variant guard (type, run-freeze, pre-write) preventing Archive.resolve() collisions from two grid variants of the same granule.
  • Verbatim satellite-token (H0[0-9]) preservation read from each remote filename, never derived from the requested date.
  • Bounded multi-threaded downloads (max_workers, hard-capped well under JAXA's documented 30-connections-per-host limit) with per-thread FTP connections, automatic session recycling near JAXA's 12h session cap, and exponential-backoff retry with a whole-run abort on persistent throttling (FTP 421).
  • Atomic .tmp → .replace() writes with verify_file_integrity netCDF validation and resume support (re-runs skip already-cached, verified files).
  • Download & Cache Size Tracking: Thread-safe TransferTracker measuring and logging total data volume transferred and cached across single gatherers, pipeline runs, and multi-task runner executions. Emits formatted summary logs at task and pipeline completion showing total downloaded GB and cache size in GB.

[2026.9.6] - 2026-09-17

Added

  • EUMDAC Automatic Request & Stream Resilience: Wrapped eumdac.request._request to intercept ChunkedEncodingError, ProtocolError (Response ended prematurely), timeouts, and transient connection drops with exponential backoff (up to 5 attempts).
  • Safe Stream Downloads: In EumdacGatherer._download_eumdac_entry and _download_eumdac_archive, increased download retries from 3 to 5 with exponential backoff and guaranteed temporary file cleanup.
  • Orchestration Documentation: Added detailed presentation guide on satellite data processing and gathering architecture in docs/gathering-satellite-orchestration-presentation.md.

Fixed

  • EUMETSAT Data Store Search Interruptions: Prevented premature search aborts on long-running multi-day EUMETSAT FCI / SEVIRI queries when servers close connections prematurely. The failed page is retried specifically with a clean TCP session without resetting generator state or losing progress.

[2026.9.5] - 2026-09-16

Added

  • File-Level Cache Validation: Enforce requested asset-level cache integrity across all sources (ACTRIS Cloudnet, EUMDAC, CDSE, NASA CMR MODIS/PACE, EarthCARE, Pandonia, and ARES), removing coarse directory-level short-circuiting.
  • Authoritative Provider Inventory Checking: Multi-file sources query authoritative provider inventories and validate each requested target individually against size, magic bytes, and checksums.
  • Deterministic Return Ordering: All gatherers return complete lists of verified local file paths preserving provider inventory order.
  • EarthCARE Overwrite Support: Added overwrite_cache parameter support to EarthCAREParameters and EarthCARE pipeline tasks.
  • Accurate Pipeline Cache Reporting: Pipeline sets from_cache=True only when 100% of requested provider assets are verified cache hits.

Fixed

  • Gatherer Base Cache Name Contract: Preserved self.caching_name return in Gatherer._write_cache for single-file gatherers and runner tasks.
  • CMR Cache Truthfulness: Added cache hit state tracking in CMRGatherer when all granules are verified locally.

[2026.9.4] - 2026-09-12

Added

  • Satellite Credential Pools: Added validated per-source credential pools with random selection and stable credential identity across retries and worker requests.
  • Kubernetes Credential Pool Management: Added scripts/gathering-credentials.sh for safe validation and upsert of provider credential pools into Kubernetes Secrets.

[2026.9.3] - 2026-09-05

Added

  • S3 YAML Configuration Support: Direct execution of pipeline configurations from Amazon S3, MinIO, Ceph, and S3-compatible endpoints via s3:// and s3a:// URLs across all entry points (gathering s3://..., gathering run s3://..., run_from_yaml(), Pipeline.from_yaml(), and Task.from_yaml()).
  • 6-Tier S3 Credential & Endpoint Hierarchy: Flexible resolution supporting explicit arguments, environment variables (AWS_*, S3_*), local .env, credentials.yaml (service: s3), AWS SDK default provider chain, and anonymous unsigned access (botocore.UNSIGNED).
  • S3 CLI Connection Flags: Added --s3-endpoint-url, --s3-region, --s3-access-key-id, --s3-secret-access-key, --s3-session-token, --s3-no-sign-request / --s3-anon, and --s3-profile.
  • S3 Credential Management: Added interactive and non-interactive gathering auth login s3 supporting .env and credentials.yaml storage.
  • GitLab CI Docker Publishing: Automated Docker container image build and publishing on Git tags to docker.grasp-cloud.com/gathering:<tag>, also tagged with :latest and bare version tags without v.
  • Container S3 Entrypoint: docker-entrypoint.sh automatically detects and routes remote s3:// URLs provided as CLI arguments or via CONFIG_FILE.

[2026.9.2] - 2026-09-04

Added

  • ACTRIS Folder Hierarchy (station/year/month): Both ACTRIS Ares (ActrisAresGatherer) and ACTRIS Cloudnet (ActrisCloudnetGatherer) organize downloaded files in <cache_dir>/actris_ares/<station>/<year>/<month>/ and <cache_dir>/actris_cloudnet/<station>/<year>/<month>/, matching Pandonia.
  • Task Direct Execution (Task.run()): Added Task.run(**kwargs) -> PipelineResult in gathering.pipeline to execute single tasks directly without manual Pipeline wrapping.
  • AERONET CLI Multi-Product Support: Added nargs="+" to --product and --data_type in gathering aeronet, allowing multiple product requests in a single command.
  • Smart YAML Configuration Shorthand: CLI accepts YAML configuration paths with global flags (e.g. gathering -v config.yaml), automatically normalizing to the run subcommand.

Fixed

  • ACTRIS Ares Documentation & Examples: Replaced erroneous EBAS in-situ particle parameters (--matrix pm10, --format nasa_ames) with valid EARLINET Lidar REST API parameters (--product optical, --station gra, --ewls, --file_types, --levels).
  • Parallel vs Sequential Concurrency Documentation: Documented explicitly in docs/sources/index.md and source guides that satellite missions (cdse, eumdac, earthcare, modis, pace) support multi-file concurrency (max_workers), while ground-based networks (pandonia, aeronet, actris_ares, actris_cloudnet) operate sequentially per task.
  • Packaged Examples Deprecation Warnings: Replaced deprecated site: with canonical station: in all packaged examples and documentation.

[2026.9.1] - 2026-09-04

Changed

  • Pandonia Folder Structure (station/year/month): Files downloaded from the Pandonia Global Network (PandoniaGatherer) are now organized in a structured <cache_dir>/pandonia/<station>/<year>/<month>/<filename> hierarchy extracted from file timestamps.
  • Cache Backward Compatibility: Existing flat cached files in <cache_dir>/pandonia/ are automatically migrated into the new station/year/month hierarchy without redownloading.

[2026.9.0] - 2026-09-04

Added

  • Adoption of Calendar Versioning (CalVer): Switched package and release versioning scheme to YYYY.M.MICRO (2026.9.0), where the third digit is reserved for minor changes and bug fixes.
  • Dedicated Bounding Box Grid Constructor (grid_from_bbox / Grid.from_bbox): Dedicated helper function constructing spatial grids from [min_lon, min_lat, max_lon, max_lat] with latitude-cosine scaling for longitudinal pixel dimensions in equirectangular coordinates. Re-exported from top-level gathering.
  • Packaged Built-in Examples: Embedded all 27 YAML, Python, and env configurations directly inside the package (gathering/examples/), accessible out-of-the-box via gathering examples list, gathering examples show, and gathering examples copy.
  • Built-in Example Execution: Direct execution of packaged examples via gathering run example:<name> or run_from_yaml("example:<name>") without requiring local files or private repository access.
  • DIVA Platform Default Storage: Automatic detection of the DIVA platform environment (/workspace), preconfiguring the default download directory at /workspace/.cache/gathering/ without requiring manual workspace setup.
  • Per-Granule Folder Hierarchy: Multi-file satellite products (EUMETSAT MTG FCI/MSG, Copernicus CDSE Sentinel-2/3) organize extracted and raw files inside individual granule folders under the date tree (.../YYYY/MM/DD/<granule_id>/).
  • NASA PACE Gatherer (PaceGatherer): Full support for Ocean Color Instrument (OCI), SPEXone polarimeter, and HARP2 hyper-angular polarimeter via NASA Common Metadata Repository (CMR) API with spatial ROI, temporal filtering, and multi-threaded parallel downloads.
  • NASA MODIS Gatherer (ModisGatherer): Comprehensive support for Terra (MOD*), Aqua (MYD*), and Combined joint retrieval products (MCD19A2 MAIAC 1km Land AOD, MCD43 BRDF and Surface Albedo 500m / 0.05° CMG) via NASA CMR.
  • Shared CMR Architecture (CMRGatherer): Abstract base class in gathering.sources.cmr_base providing query normalization (CMRCacheQuery), granule filtering, and UTC date-partition aware caching (<cache_dir>/modis/<sat>/<prod>/YYYY/MM/DD/).
  • Copernicus CDSE Gatherer (CDSEGatherer): Sentinel-2 MSI (Level 2A/1C with cloud cover filters), Sentinel-3 OLCI & SLSTR, and Sentinel-5P TROPOMI trace gases via OData API and direct S3 bucket URIs.
  • EUMETSAT Data Store (EumdacGatherer): MTG FCI (with intelligent geostationary ROI swath chunk calculation), MSG SEVIRI Full-Disk, Metop IASI/AVHRR, and MTG LI/IRS.
  • ESA EarthCARE Gatherer (EarthCAREGatherer): ATLID Lidar, CPR Radar, and MSI Multi-Spectral Imager via ESA MAAP STAC API.
  • Ground-Based Networks: NASA AERONET (AOD & Almucantar inversions), Pandonia Global Network (PGN trace gases), ACTRIS ARES (in-situ optical & lidar), ACTRIS Cloudnet (cloud/aerosol profiling).
  • Intra-Gatherer Concurrent Downloads (max_workers): Multi-threaded parallel asset downloading within individual gatherers (ThreadPoolExecutor) alongside task-level pipeline concurrency.
  • Spatial ROI & AERONET Site Resolution: Full Grid model integration, auto-resolving coordinates from aeronet_locations_v3.txt, STAC bounding boxes, CMR bounding boxes, and WKT polygons.
  • Top-Level Package Re-Exports: Direct root imports for ModisGatherer, PaceGatherer, CDSEGatherer, EumdacGatherer, EarthCAREGatherer, AeronetGatherer, ActrisAresGatherer, ActrisCloudnetGatherer, PandoniaGatherer, Grid, Task, Pipeline, grid_from_bbox, list_examples, get_example_path, copy_example, read_example from gathering.
  • Zero-Cost Lazy Package & CLI Loading (PEP 562): Deferred imports and proxy classes (_LazyGridMeta) ensuring CLI and module startup does not eagerly load heavy scientific dependencies (xarray, pandas, folium, jinja2, pystac), speeding up CLI startup by >60% and import gathering by ~5.6x.
  • File Integrity & Automated Cache Repair: Magic-byte checking (NetCDF-3, NetCDF-4/HDF5, HDF4, Gzip, Zip, Bzip2), HTML error detection (disguised 401/404/500 pages), and MD5/SHA-256 verification.
  • Private PyPI Registry & GitLab CI/CD: Complete CI/CD workflow with Astral uv for linting, testing, and automated publishing to https://registry.grasp-cloud.com/repository/grasp-pypi/.
  • MkDocs Documentation Suite & YAML Gallery: Complete documentation site in English with 22+ verified YAML configuration examples, built-in CLI commands, and no external private repository dependencies.

Changed

  • Refactored parse_grid Dispatcher: Reduced parse_grid from ~115 lines down to ~50 lines by extracting grid_from_bbox and eliminating duplicate spherical geodesy math and redundant AERONET site coordinate lookups.
  • Structured Logging Migration: Full migration to Loguru structured f-strings (logger.info(f"...")) across all gatherer modules, eliminating %-style format strings and supporting thread-safe {extra[gatherer]} context injection.
  • Pydantic v2 Full Alignment: Upgraded parameter models to Pydantic v2 ConfigDict and @model_validator(mode="before") across all satellite and ground gatherers.
  • Test Suite Expansion: Full test coverage expanded to 226 tests running 100% offline in ~2s with 0 socket calls and 0 flake.

Fixed

  • Pipeline Task Annotation NameError: Fixed runtime NameError: name 'datetime' is not defined in gathering/pipeline.py:6 when resolving type hints on Task builders.
  • NASA CMR Caching Bug: Fixed unconditional return False override in ModisGatherer and PaceGatherer that bypassed cache checking.
  • Duplicate Service Entry in credentials.py: Removed duplicate cdse service dictionary entry that caused key collision.
  • CLI Startup Latency: Eliminated eager module evaluation during CLI argument parsing.
  • Inaccessible Repository Links: Removed dead GitLab URLs from documentation pages and MkDocs configuration.

[0.4.2] - 2026-08-23

Fixed

  • The sdist shipped an unrunnable test suite: MANIFEST.in now includes the whole suite (conftest.py), plus CHANGELOG.md and examples/.
  • The test suite depended on live APIs: An autouse fixture now pre-populates station validation lists, allowing offline testing with all sockets blocked.

[0.4.1] - 2026-08-23

Fixed

  • ACTRIS Ares query string limit: Requests for large file lists are now batched properly to avoid HTTP 400 URI length limits.

[0.4.0] - 2026-08-23

Added

  • Standardized cross-source parameter naming for ground-based sources (station, product, start_date, end_date).
  • Unified credential resolution hierarchy and CLI auth commands.