getPhysicalFilter

lsst.ip.isr.getPhysicalFilter(filterLabel, log)

Get the physical filter label associated with the given filterLabel.

If filterLabel is None or there is no physicalLabel attribute associated with the given filterLabel, the returned label will be “Unknown”.

Parameters:
filterLabellsst.afw.image.FilterLabel

The lsst.afw.image.FilterLabel object from which to derive the physical filter label.

loglogging.Logger

Logger to handle messages.

Returns:
physicalFilterstr

The value returned by the physicalLabel attribute of filterLabel if it exists, otherwise set to “Unknown”.