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:
AhiGatherernow 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.tmpfiles and a run that never finished. A stalled operation now raisesTimeoutError, 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-Afterheader (with automatic fallback topage_num) insearch_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/,L2CLP010FLDK) retrieval over FTP (ftp.ptree.jaxa.jp), remapped onto the fixedAHI/NC/YYYY/MM/DD/andAHI/CLP/YYYY/MM/DD/archive layout the downstream grasp-universe reader requires. Registered asahi(aliasesjaxa_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 withverify_file_integritynetCDF validation and resume support (re-runs skip already-cached, verified files). - Download & Cache Size Tracking: Thread-safe
TransferTrackermeasuring 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._requestto interceptChunkedEncodingError,ProtocolError(Response ended prematurely), timeouts, and transient connection drops with exponential backoff (up to 5 attempts). - Safe Stream Downloads: In
EumdacGatherer._download_eumdac_entryand_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_cacheparameter support toEarthCAREParametersand EarthCARE pipeline tasks. - Accurate Pipeline Cache Reporting: Pipeline sets
from_cache=Trueonly when 100% of requested provider assets are verified cache hits.
Fixed¶
- Gatherer Base Cache Name Contract: Preserved
self.caching_namereturn inGatherer._write_cachefor single-file gatherers and runner tasks. - CMR Cache Truthfulness: Added cache hit state tracking in
CMRGathererwhen 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.shfor 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://ands3a://URLs across all entry points (gathering s3://...,gathering run s3://...,run_from_yaml(),Pipeline.from_yaml(), andTask.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 s3supporting.envandcredentials.yamlstorage. - GitLab CI Docker Publishing: Automated Docker container image build and publishing on Git tags to
docker.grasp-cloud.com/gathering:<tag>, also tagged with:latestand bare version tags withoutv. - Container S3 Entrypoint:
docker-entrypoint.shautomatically detects and routes remotes3://URLs provided as CLI arguments or viaCONFIG_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()): AddedTask.run(**kwargs) -> PipelineResultingathering.pipelineto execute single tasks directly without manualPipelinewrapping. - AERONET CLI Multi-Product Support: Added
nargs="+"to--productand--data_typeingathering 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 therunsubcommand.
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.mdand 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 canonicalstation: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 newstation/year/monthhierarchy 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-levelgathering. - Packaged Built-in Examples: Embedded all 27 YAML, Python, and env configurations directly inside the package (
gathering/examples/), accessible out-of-the-box viagathering examples list,gathering examples show, andgathering examples copy. - Built-in Example Execution: Direct execution of packaged examples via
gathering run example:<name>orrun_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 (MCD19A2MAIAC 1km Land AOD,MCD43BRDF and Surface Albedo 500m / 0.05° CMG) via NASA CMR. - Shared CMR Architecture (
CMRGatherer): Abstract base class ingathering.sources.cmr_baseproviding 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
Gridmodel integration, auto-resolving coordinates fromaeronet_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_examplefromgathering. - 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% andimport gatheringby ~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
uvfor linting, testing, and automated publishing tohttps://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_gridDispatcher: Reducedparse_gridfrom ~115 lines down to ~50 lines by extractinggrid_from_bboxand 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
ConfigDictand@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 runtimeNameError: name 'datetime' is not definedingathering/pipeline.py:6when resolving type hints onTaskbuilders. - NASA CMR Caching Bug: Fixed unconditional
return Falseoverride inModisGathererandPaceGathererthat bypassed cache checking. - Duplicate Service Entry in
credentials.py: Removed duplicatecdseservice 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.innow includes the whole suite (conftest.py), plusCHANGELOG.mdandexamples/. - 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
authcommands.