getRefFluxField#
- lsst.meas.algorithms.getRefFluxField(schema, filterName)#
Get the name of a flux field from a schema.
Parameters#
- schema
lsst.afw.table.Schema Reference catalog schema.
- filterName
str Name of camera filter.
Returns#
- fluxFieldName
str Name of flux field.
Notes#
Return the alias of
anyFilterMapsToThis, if present else, return*filterName*_camFluxif present, else, return*filterName*_fluxif present (camera filter name matches reference filter name), else raise an exception.Raises#
- RuntimeError
Raised if an appropriate field is not found.
- schema