Configuration
A run is configured from three sources. When more than one supplies the same setting, the earlier one wins:
Command-line flags passed to a host program (highest priority).
Host configuration defaults that the host entry script passes to the engine. These come from the host’s configuration files and become the argparse defaults, so any command-line flag overrides them.
Built-in engine defaults (lowest priority), such as a pixel sampling density of 8.
This chapter describes the configuration a host supplies. The command-line flags are documented per program in The index program, The geometry program, and The cumulative program. Authoring a new host’s configuration is covered in Extending the system.
Host configuration files
Each collection lives in a host directory under
src/metadata_tools/hosts/<HOST>/ and carries a small set of configuration
modules. When you run an existing host you do not edit these, but it helps to
know what they control.
host_config.pySettings shared by every stage:
template_name(the base name of the host’s label templates and tables, e.g.GO_0xxx_supplemental_index), spacecraft-clock formatting constants, andget_volume_id(), which extracts the volume ID from a path.index_config.pyIndex-stage settings:
glob(which data labels to include, e.g.C0*.LBL) and anykey__<NAME>functions that compute an index column from the PDS3 label instead of copying it verbatim.geometry_config.pyGeometry-stage settings, including:
SC— the NAIF spacecraft ID.glob/index_glob— patterns selecting data labels and the supplemental index file.selection— default table levels ("S"summary,"D"detailed).exclude— volumes to skip (e.g. the cumulative directory).MISSION_TABLEandEXCEPTIONS— the mapping from spacecraft-clock ranges to the primary body, secondaries, and other selected bodies, with regular-expression or predicate exceptions.The field-of-view expansion constants and the
meshgrids/meshgridfunctions that define pixel sampling.from_index,target_name, andcleanuphooks.
host_init.pyImported for its side effects: it initializes the
oopshost module (loading the SPICE data) so the geometry stage can compute backplanes.
How table and label names are formed
Output names are derived from the volume ID and the table kind, so you do not configure them directly:
Index:
<volume>_supplemental_index.tab/.lbl.Geometry summary:
<volume>_<kind>_summary.tabforsky,body, andring; the inventory is<volume>_inventory.csv.Geometry detailed:
<volume>_<kind>_detailed.tab.Cumulative: the same names with the cumulative directory’s volume ID.
Each .tab/.csv file is accompanied by a .lbl PDS3 label generated
from the host’s label template (or a shared template in the package’s global
templates/ directory). The set of columns in an index table is itself
defined by the supplemental label template; see
Extending the system.