nvisitsPerSubset¶
- rubin_sim.maf.batches.nvisitsPerSubset(colmap=None, runName='opsim', binNights=1, constraint=None, footprintConstraint=None, extraInfoLabel=None)¶
Look at the distribution of a given sql constraint or footprint constraint’s visits, total number and distribution over time (# per night), if possible.
- Parameters:
- opsdb
str
or database connection Name of the opsim sqlite database.
- colmap
dict
or None, optional A dictionary with a mapping of column names. Default will use OpsimV4 column names.
- runName
str
, optional The name of the simulated survey. Default is “opsim”.
- binNights
int
, optional Number of nights to count in each bin. Default = 1, count number of visits in each night.
- constraint
str
or None, optional SQL constraint to add to all metrics. This would be the way to select only a given “Note” out of a simulation.
- footprintConstraint
np.ndarray
or None, optional Footprint to look for visits within (and then identify via WFDlabelStacker). The footprint = a full length heapix array, filled with 0/1 values.
- extraInfoLabel
str
or None, optional Additional info_label to add before any below (i.e. “WFD”). Default is None.
- opsdb
- Returns:
- metric_bundleDict
dict
ofrubin_sim.maf.MetricBundle
- metric_bundleDict