filtersPerNight

rubin_sim.maf.batches.filtersPerNight(colmap=None, runName='opsim', nights=1, extraSql=None, extraInfoLabel=None)

Generate a set of metrics measuring the number and rate of filter changes over a given span of nights.

Parameters:
colmapdict, optional

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

run_namestr, optional

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

nightsint, optional

Size of night bin to use when calculating metrics. Default is 1.

extraSqlstr, optional

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

extraInfoLabelstr, optional

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

Returns:
metric_bundleDict