lsst.obs.base  19.0.0-62-g3425666
Functions
lsst.obs.base.script.convertGen2RepoToGen3 Namespace Reference

Functions

def build_argparser ()
 
def parse_args (parser)
 
def convert (gen2root, gen3root, instrumentClass, skymapName=None, skymapConfig=None, calibs=None, reruns=[], config=None, transferMode="auto")
 
def main ()
 

Function Documentation

◆ build_argparser()

def lsst.obs.base.script.convertGen2RepoToGen3.build_argparser ( )

Definition at line 36 of file convertGen2RepoToGen3.py.

◆ convert()

def lsst.obs.base.script.convertGen2RepoToGen3.convert (   gen2root,
  gen3root,
  instrumentClass,
  skymapName = None,
  skymapConfig = None,
  calibs = None,
  reruns = [],
  config = None,
  transferMode = "auto" 
)
Convert the gen 2 Butler repo living at gen2root into a gen 3 repo
living at gen3root.

Parameters
----------
gen2root : `str`
    Root path to the gen2 repo to be converted.
gen3root : `str`
    Root path to the gen3 output repo.
instrumentClass : `str`
    Full python path to the `lsst.obs.base.Instrument` class of the repo
    being converted.
skymapName : `str`, optional
    Name of the skymap to be converted in the repo.
skymapConfig : `str`, optional
    Path to the `lsst.skymap.BaseSkyMapConfig` of the gen2 skymap to be
    converted.
calibs : `str`, optional
    Path to the gen2 calibration repository to be converted.
    If a relative path, it is assumed to be relative to ``gen2root``.
reruns : `list` [`str`], optional
    List of reruns to convert. They will be placed in the
    ``shared/INSTRUMENT/RERUN`` collection.
config : `str`, optional
    Path to `lsst.obs.base.ConvertRepoConfig` configuration to load
    after all default/instrument configurations.
transferMode : `str`, optional
    Mode to use when transferring data into the gen3 repository.

Definition at line 77 of file convertGen2RepoToGen3.py.

◆ main()

def lsst.obs.base.script.convertGen2RepoToGen3.main ( )
To be run by the commandline script in `bin/`.

Definition at line 141 of file convertGen2RepoToGen3.py.

◆ parse_args()

def lsst.obs.base.script.convertGen2RepoToGen3.parse_args (   parser)

Definition at line 67 of file convertGen2RepoToGen3.py.