24 from lsst.daf.butler.cli.opt
import (repo_argument, config_file_option, options_file_option)
25 from lsst.daf.butler.cli.utils
import (
29 typeStrAcceptsMultiple,
31 from lsst.obs.base.cli.opt
import instrument_argument
32 from ...
import script
35 @click.command(cls=ButlerCommand, short_help=
"Define a discrete skymap from calibrated exposures.")
36 @repo_argument(required=
True)
37 @instrument_argument(required=
True)
38 @config_file_option(help=
"Path to a pex_config override to be included after the Instrument config overrides"
40 @options_file_option()
41 @click.option(
"--collections",
42 help=(
"The collections to be searched (in order) when reading datasets. "
43 "This includes the seed skymap if --append is specified."),
45 callback=split_commas,
46 metavar=typeStrAcceptsMultiple,
48 @click.option(
"--out-collection",
49 help=(
"The collection to write the skymap to."),
50 type=str, default=
"skymaps", show_default=
True)
51 @click.option(
"--skymap-id",
52 help=(
"The identifier of the skymap to write."),
53 type=str, default=
"discrete", show_default=
True)
55 """Define a discrete skymap from calibrated exposures in the butler registry."""
56 cli_handle_exception(script.makeDiscreteSkyMap, *args, **kwargs)