How esgf/esg-publisher works
ESGF Publisher scans and describes scientific datasets, applies project-specific metadata rules, then publishes or updates records across ESGF indexing and catalog services. The current Python package contains the scanning and publication framework, project handlers, and Solr, STAC, and Globus integrations; the tree also retains a separate legacy publisher and GUI. The principal workflow is represented through the generic publisher, with meaningful backend and utility branches. Some relationships are based on SOURCE INDEX references rather than complete excerpts, so uncertain orchestration links are omitted.
Main entry points: generic_pub.py Generic publisher · generic_netcdf.py NetCDF publisher · publisher.py Publisher CLI · index_pub.py Solr publication
Components 21
Publisher entry
- Publisher CLI
src/python/esgcet/cli/publisher.py - Generic publisher
src/python/esgcet/project/generic_pub.py
Dataset preparation
- Project handlers
src/python/esgcet/project - NetCDF publisher
src/python/esgcet/project/generic_netcdf.py - Dataset scanner
src/python/esgcet/scan/mk_dataset.py - Format handlers
src/python/esgcet/scan - Kerchunk generation
src/python/esgcet/kerchunk/kerchunk_generator.py - Kerchunk map model
src/python/esgcet/kerchunk/mapfile_model.py
Publication backends
- Solr publication
src/python/esgcet/solr/index_pub.py - Solr REST client
src/python/esgcet/solr/pub_client.py - STAC conversion
src/python/esgcet/stac/stac_converter.py - STAC transaction client
src/python/esgcet/stac/stac_client.py - Globus Search
src/python/esgcet/globus/update_globus.py
Publisher support
- Mapfile tools
src/python/esgcet/util/mapfile.py - PID and citation
src/python/esgcet/util/pid_cite_pub.py - Publisher settings
src/python/esgcet/util/settings.py - Logging
src/python/esgcet/util/logger.py
Other components
- Operator
- Solr service
- STAC service
- Globus Search service
Connections 20
- Operator → Publisher CLI: invokes
- Publisher CLI → Generic publisher: runs
- Generic publisher → Project handlers: selects
src/python/esgcet/__init__.py - Generic publisher → NetCDF publisher: uses
src/python/esgcet/project/generic_pub.py - NetCDF publisher → Dataset scanner: scans datasets
src/python/esgcet/project/generic_netcdf.py - NetCDF publisher → Format handlers: uses
src/python/esgcet/project/generic_netcdf.py - NetCDF publisher → Kerchunk map model: uses
src/python/esgcet/project/generic_netcdf.py - NetCDF publisher → Kerchunk generation: generates references
src/python/esgcet/project/generic_netcdf.py - Generic publisher → Mapfile tools: reads
src/python/esgcet/project/generic_pub.py - Generic publisher → Solr publication: publishes
src/python/esgcet/project/generic_pub.py - Generic publisher → STAC conversion: converts records
src/python/esgcet/project/generic_pub.py - Generic publisher → STAC transaction client: publishes records
src/python/esgcet/project/generic_pub.py - Generic publisher → Globus Search: updates records
src/python/esgcet/project/generic_pub.py - Generic publisher → PID and citation: publishes citations
src/python/esgcet/project/generic_pub.py - Solr publication → Solr REST client: uses
- Solr REST client → Solr service: posts records
src/python/esgcet/solr/pub_client.py - STAC transaction client → STAC service: sends transactions
src/python/esgcet/stac/stac_client.py - Globus Search → Globus Search service: updates index
- Generic publisher → Publisher settings: reads
src/python/esgcet/project/generic_pub.py - Generic publisher → Logging: uses
src/python/esgcet/project/generic_pub.py