24 from lsst.daf.butler.cli.opt
import (
31 from lsst.daf.butler.cli.utils
import ButlerCommand
32 from lsst.obs.base.cli.opt
import instrument_argument
33 from ...
import script
36 @click.command(cls=ButlerCommand, short_help=
"Define a discrete skymap from calibrated exposures.")
37 @repo_argument(required=
True)
38 @instrument_argument(required=
True)
39 @config_file_option(help=
"Path to a pex_config override to be included after the Instrument config overrides"
41 @collections_option(help=
"The collections to be searched (in order) when reading datasets. "
42 "This includes the seed skymap if --append is specified.",
44 @click.option(
"--skymap-id",
45 help=
"The identifier of the skymap to write.",
46 type=str, default=
"discrete", show_default=
True)
47 @click.option(
"--old-skymap-id",
48 help=(
"The identifier of the previous skymap to append to, if config.doAppend is True."),
49 type=str, default=
None)
50 @options_file_option()
52 """Define a discrete skymap from calibrated exposures in the butler registry."""
53 script.makeDiscreteSkyMap(*args, **kwargs)
56 @click.command(cls=ButlerCommand)
57 @repo_argument(required=
True)
59 @config_file_option(help=
"Path to a config file overrides file.")
60 @options_file_option()
62 """Make a SkyMap and add it to a repository."""
63 script.registerSkymap.registerSkymap(*args, **kwargs)