Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ci_hsc_gen3, obs_base
-
Story Points:6
-
Epic Link:
-
Sprint:DB_S20_02
-
Team:Data Access and Database
-
Urgent?:No
Description
There is a script in ci_hsc_gen3 that does the desired steps but doesn't allow for the customization the generic script would need: https://github.com/lsst/ci_hsc_gen3/blob/master/bin.src/ingestRaws.py
the ingest task is here: https://github.com/lsst/obs_base/blob/master/python/lsst/obs/base/ingest.py#L160
For the command-line script, we'll want to create (and apply overrides to) a RawIngestConfig instance, use that to construct a RawIngestTask instance, and then call RawIngestTask.run. This will be a common pattern for a lot of commands, and we have a history of -c <override> and -C <config-file> options (in CmdLineTask and pipetask) to apply the config overrides in a consistent way; Jim Bosch can find the code in pipe_base or ctrl_mpexec that we could build on.
note, Jim Bosch's Gen3 middleware CLI tools paper contains an entry for ingest: (is this the same as ingest-raws?)
ingest
butler ingest REPO` `FILES` `[-j NCORES] [--create-repo] [--register INSTR] [--sync] [--output-run COLLECTION] <PEXCFG>
Ingest raw data into a repository.