metadataBasics

rubin_sim.maf.batches.metadataBasics(value, colmap=None, runName='opsim', valueName=None, groupName=None, extraSql=None, extraInfoLabel=None, slicer=None)

Calculate basic metrics on visit metadata ‘value’ (e.g. airmass, normalized airmass, seeing..). Calculates this around the sky (HealpixSlicer), makes histograms of all visits (OneDSlicer), and calculates statistics on all visits (UniSlicer) for the quantity in all visits and per filter.

Currently have a hack for HA & normairmass.

Parameters:
valuestr

The column name for the quantity to evaluate. (column name in the database or created by a stacker).

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

valueNamestr, optional

The name of the value to be reported in the results_db and added to the metric. This is intended to help standardize metric comparison between sim versions. value = name as it is in the database (seeingFwhmGeom, etc). valueName = name to be recorded (‘seeingGeom’, etc.). Default is None, which will match ‘value’.

groupNamestr, optional

The group name for this quantity in the display_dict. Default is the same as ‘valueName’, capitalized.

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_labels to add before any below (i.e. “WFD”). Default is None.

slicerrubin_sim.maf.slicers.BaseSlicer, optional

Optionally use a different slicer than an nside=64 healpix slicer.

Returns:
metric_bundleDict