The Import Pipeline
opus_import is the program that turns the PDS holdings into the OPUS database. It
reads the index tables of PDS3 volumes and PDS4 bundles – never a data file – computes
one row per observation for every obs_ table, and writes the auxiliary tables the web
application needs to describe what it has written. Every table
The OPUS Database describes is created and filled here.
It is a program rather than a library: nothing outside the distribution imports it, and
it is run as opus_import, or equivalently as python -m opus_import.
This chapter is the whole of it. How an Import Works is the theory of operation and the page to read first; the rest are the command-line surface, the configuration data that says which bundles exist and what each one is, the steps a run executes in order, the class hierarchy that computes the values, the database layer underneath, the fixture that tests the pipeline end to end without any holdings, and what to do to teach it a bundle set it does not know.