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:
- 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.
- extraSql
str
or None, optional Additional constraint to add to any sql constraints (e.g. ‘propId=1’ or ‘fieldID=522’). Default None, for no additional constraints.
- extraInfoLabel
str
or None, optional Additional info_label to add before any below (i.e. “WFD”). Default is None.
- subgroup
str
or None, optional Use this for the ‘subgroup’ in the display_dict, instead of info_label. Default is None.
- colmap
- Returns:
- metric_bundleDict