nvisitsPerNight

rubin_sim.maf.batches.nvisitsPerNight(colmap=None, runName='opsim', binNights=1, extraSql=None, extraInfoLabel=None, subgroup=None)

Count the number of visits per night through the survey.

Parameters:
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.

extraSqlstr or None, optional

Additional constraint to add to any sql constraints (e.g. ‘propId=1’ or ‘fieldID=522’). Default None, for no additional constraints.

extraInfoLabelstr or None, optional

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

subgroupstr or None, optional

Use this for the ‘subgroup’ in the display_dict, instead of info_label. Default is None.

Returns:
metric_bundleDict