The index program
The metadata-index console script generates the supplemental index table
and its PDS3 label for every volume in a tree, by reading each data product’s
PDS3 label. Under the hood it calls
process_index().
Synopsis
metadata-index HOST_ID [options] volume_tree metadata_tree output_tree
Positional arguments
Argument |
Description |
|---|---|
|
Path to the top of the tree containing the volume data files, specifically the PDS3 labels that are read for each row. |
|
Path to the top of the tree containing the metadata files, specifically
the project-supplied corrected index files ( |
|
Path to the top of the tree in which to write the new supplemental index files and labels. |
All path arguments are expanded for environment variables.
Options
Selection
Option |
Description |
|---|---|
|
Process only these volume IDs (e.g. |
|
Glob pattern that further restricts which data files are processed within each volume. |
Output / type
Option |
Description |
|---|---|
|
Type of index file to create, e.g. |
|
Generate labels only for index tables that already exist; do not recompute the tables themselves. |
Miscellaneous
Option |
Description |
|---|---|
|
Show the help message and exit. |
Example
Generate supplemental index tables for every Galileo SSI volume, then for one volume only:
metadata-index GO_0xxx "$RMS_VOLUMES/GO_0xxx/" "$RMS_METADATA/GO_0xxx/" \
"$RMS_METADATA_TEST/GO_0xxx/"
metadata-index GO_0xxx "$RMS_VOLUMES/GO_0xxx/" "$RMS_METADATA/GO_0xxx/" \
"$RMS_METADATA_TEST/GO_0xxx/" --volumes GO_0017
Results
For each processed volume <volume>, the program writes
<volume>_supplemental_index.tab and <volume>_supplemental_index.lbl into
the corresponding volume directory of the output tree, and a processing log
named <volume>_index-log.txt. Columns that never received a non-null value
across the run are reported as a warning at the end of the log.