LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
Functions | Variables
cmd.commands Namespace Reference

Functions

def convert (*args, **kwargs)
 
def define_visits (*args, **kwargs)
 
def ingest_raws (*args, **kwargs)
 
def register_instrument (*args, **kwargs)
 
def write_curated_calibrations (*args, **kwargs)
 
def make_discrete_skymap (*args, **kwargs)
 

Variables

string fits_re = r"\.fit[s]?\b"
 
 short_help
 
 required
 
 help
 
 multiple
 
 True
 
 callback
 
 split_commas
 
 metavar
 

Function Documentation

◆ convert()

def cmd.commands.convert ( args,
**  kwargs 
)
Convert a Butler gen 2 repository into a gen 3 repository.

Definition at line 62 of file commands.py.

62 def convert(*args, **kwargs):
63  """Convert a Butler gen 2 repository into a gen 3 repository."""
64  cli_handle_exception(script.convert, *args, **kwargs)
65 
66 
67 @click.command(short_help="Define visits from exposures.")
68 @repo_argument(required=True)
69 @instrument_argument(required=True)
70 @config_file_option(help="Path to a pex_config override to be included after the Instrument config overrides "
71  "are applied.")
72 @click.option("--collections",
73  help="The collections to be searched (in order) when reading datasets.",
74  multiple=True,
75  callback=split_commas,
76  metavar=typeStrAcceptsMultiple)
77 @processes_option()
78 @options_file_option()

◆ define_visits()

def cmd.commands.define_visits ( args,
**  kwargs 
)
Define visits from exposures in the butler registry.

Definition at line 79 of file commands.py.

79 def define_visits(*args, **kwargs):
80  """Define visits from exposures in the butler registry."""
81  cli_handle_exception(script.defineVisits, *args, **kwargs)
82 
83 
84 @click.command(short_help="Ingest raw frames.")
85 @repo_argument(required=True)
86 @locations_argument(help="LOCATIONS specifies files to ingest and/or locations to search for files.",
87  required=True)
88 @regex_option(default=fits_re,
89  help="Regex string used to find files in directories listed in LOCATIONS. "
90  "Searches for fits files by default.")
91 @config_option(metavar="TEXT=TEXT", multiple=True)
92 @config_file_option(type=click.Path(exists=True, writable=False, file_okay=True, dir_okay=False))
93 @run_option(required=False)
94 @transfer_option()
95 @processes_option()
96 @click.option("--ingest-task", default="lsst.obs.base.RawIngestTask", help="The fully qualified class name "
97  "of the ingest task to use.")
98 @options_file_option()

◆ ingest_raws()

def cmd.commands.ingest_raws ( args,
**  kwargs 
)
Ingest raw frames into from a directory into the butler registry

Definition at line 99 of file commands.py.

99 def ingest_raws(*args, **kwargs):
100  """Ingest raw frames into from a directory into the butler registry"""
101  cli_handle_exception(script.ingestRaws, *args, **kwargs)
102 
103 
104 @click.command(short_help="Add an instrument to the repository")
105 @repo_argument(required=True)
106 @instrument_argument(required=True, nargs=-1, help="The fully-qualified name of an Instrument subclass.")

◆ make_discrete_skymap()

def cmd.commands.make_discrete_skymap ( args,
**  kwargs 
)
Define a discrete skymap from calibrated exposures in the butler registry.

Definition at line 49 of file commands.py.

49 def make_discrete_skymap(*args, **kwargs):
50  """Define a discrete skymap from calibrated exposures in the butler registry."""
51  cli_handle_exception(script.makeDiscreteSkyMap, *args, **kwargs)

◆ register_instrument()

def cmd.commands.register_instrument ( args,
**  kwargs 
)
Add an instrument to the data repository.

Definition at line 107 of file commands.py.

107 def register_instrument(*args, **kwargs):
108  """Add an instrument to the data repository.
109  """
110  cli_handle_exception(script.registerInstrument, *args, **kwargs)
111 
112 
113 @click.command(short_help="Add an instrument's curated calibrations.")
114 @repo_argument(required=True)
115 @instrument_argument(required=True)
116 @click.option("--collection", required=False,
117  help="Name of the calibration collection that associates datasets with validity ranges.")
118 @click.option("--suffix", required=False,
119  help=("Name suffix to append (with an automatic delimiter) to all RUN collection names "
120  "as well as the calibration collection name if it is not provided via --collection."))
121 @options_file_option()

◆ write_curated_calibrations()

def cmd.commands.write_curated_calibrations ( args,
**  kwargs 
)
Add an instrument's curated calibrations to the data repository.

Definition at line 122 of file commands.py.

122 def write_curated_calibrations(*args, **kwargs):
123  """Add an instrument's curated calibrations to the data repository.
124  """
125  cli_handle_exception(script.writeCuratedCalibrations, *args, **kwargs)

Variable Documentation

◆ callback

cmd.commands.callback

Definition at line 55 of file commands.py.

◆ fits_re

string cmd.commands.fits_re = r"\.fit[s]?\b"

Definition at line 40 of file commands.py.

◆ help

cmd.commands.help

Definition at line 45 of file commands.py.

◆ metavar

cmd.commands.metavar

Definition at line 55 of file commands.py.

◆ multiple

cmd.commands.multiple

Definition at line 55 of file commands.py.

◆ required

cmd.commands.required

Definition at line 44 of file commands.py.

◆ short_help

cmd.commands.short_help

Definition at line 43 of file commands.py.

◆ split_commas

cmd.commands.split_commas

Definition at line 55 of file commands.py.

◆ True

cmd.commands.True

Definition at line 55 of file commands.py.

cmd.commands.make_discrete_skymap
def make_discrete_skymap(*args, **kwargs)
Definition: commands.py:49
cmd.commands.register_instrument
def register_instrument(*args, **kwargs)
Definition: commands.py:107
cmd.commands.define_visits
def define_visits(*args, **kwargs)
Definition: commands.py:79
cmd.commands.write_curated_calibrations
def write_curated_calibrations(*args, **kwargs)
Definition: commands.py:122
cmd.commands.convert
def convert(*args, **kwargs)
Definition: commands.py:62
cmd.commands.ingest_raws
def ingest_raws(*args, **kwargs)
Definition: commands.py:99
opt.arguments.instrument_argument
instrument_argument
Definition: arguments.py:25