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