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.

opsdbstr or database connection

Name of the opsim sqlite database.

colmapdict or None, optional

A dictionary with a mapping of column names. Default will use OpsimV4 column names.

runNamestr, optional

The name of the simulated survey. Default is “opsim”.

binNightsint, optional

Number of nights to count in each bin. Default = 1, count number of visits in each night.

constraintstr 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.

footprintConstraintnp.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.

extraInfoLabelstr or None, optional

Additional info_label to add before any below (i.e. “WFD”). Default is None.

metric_bundleDictdict of rubin_sim.maf.MetricBundle