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
35 num_subfilters_argument,
37 from ...
import script
40 @click.command(cls=ButlerCommand, short_help=
"Define a discrete skymap from calibrated exposures.")
41 @repo_argument(required=
True)
42 @instrument_argument(required=
True)
43 @config_file_option(help=
"Path to a pex_config override to be included after the Instrument config overrides"
45 @collections_option(help=
"The collections to be searched (in order) when reading datasets. "
46 "This includes the seed skymap if --append is specified.",
48 @click.option(
"--skymap-id",
49 help=
"The identifier of the skymap to write.",
50 type=str, default=
"discrete", show_default=
True)
51 @click.option(
"--old-skymap-id",
52 help=(
"The identifier of the previous skymap to append to, if config.doAppend is True."),
53 type=str, default=
None)
54 @options_file_option()
56 """Define a discrete skymap from calibrated exposures in the butler registry."""
57 script.makeDiscreteSkyMap(*args, **kwargs)
60 @click.command(cls=ButlerCommand)
61 @repo_argument(required=
True)
63 @config_file_option(help=
"Path to a config file overrides file.")
64 @options_file_option()
66 """Make a SkyMap and add it to a repository."""
67 script.registerSkymap.registerSkymap(*args, **kwargs)
70 @click.command(cls=ButlerCommand,
71 short_help=
"Add subfilters for chaotic modeling.")
72 @repo_argument(required=
True)
75 @options_file_option()
77 """Construct a set of subfilters for chromatic modeling and add them to a
79 print(script.registerDcrSubfilters.registerDcrSubfilters(**kwargs))