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"
"are applied.")
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",
help="The identifier of the skymap to write.",
type=str, default="discrete", show_default=True)
48 @click.option("--old-skymap-id",
help=("The identifier of the previous skymap to append to, if config.doAppend is True."),
49 type=str, default=
None)
50 @options_file_option()
51 def make_discrete_skymap(*args, **kwargs):
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()
61 def register_skymap(*args, **kwargs):
62 """Make a SkyMap and add it to a repository."""
63 script.registerSkymap.registerSkymap(*args, **kwargs)
66 @click.command(cls=ButlerCommand,
short_help="Add subfilters for chaotic modeling.")
67 @repo_argument(required=True)
68 @num_subfilters_argument()
69 @band_names_argument()
70 @options_file_option()
71 def register_dcr_subfilters(**kwargs):
72 """Construct a set of subfilters for chromatic modeling and add them to a
74 print(script.registerDcrSubfilters.registerDcrSubfilters(**kwargs))