24from lsst.daf.butler.cli.opt
import (
31from lsst.daf.butler.cli.utils
import ButlerCommand
32from lsst.pipe.base.cli.opt
import instrument_argument
35 num_subfilters_argument,
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=
"URI 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)
55def make_discrete_skymap(*args, **kwargs):
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="URI to a config file overrides file.")
65def register_skymap(*args, **kwargs):
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)
73@num_subfilters_argument()
76def register_dcr_subfilters(**kwargs):
77 """Construct a set of subfilters for chromatic modeling and add them to a
79 print(script.registerDcrSubfilters.registerDcrSubfilters(**kwargs))