getRefFluxField¶
- lsst.meas.algorithms.getRefFluxField(schema, filterName=None)¶
Get the name of a flux field from a schema.
return the alias of “anyFilterMapsToThis”, if present else if filterName is specified:
- else:
return “camFlux”, if present, else throw RuntimeError
- Parameters:
- schema
lsst.afw.table.Schema
Reference catalog schema.
- filterName
str
, optional Name of camera filter. If not specified,
defaultFilter
needs to be set in the refcat loader config.
- schema
- Returns:
- fluxFieldName
str
Name of flux field.
- fluxFieldName
- Raises:
- RuntimeError
If an appropriate field is not found.