is_flux_density

stcal.resample.utils.is_flux_density(bunit)[source]

Differentiate between surface brightness and flux density data units.

Parameters:

bunit (str or ~astropy.units.Unit) – Data units, e.g. ‘MJy’ (is flux density) or ‘MJy/sr’ (is not).

Returns:

True if the units are equivalent to flux density units.

Return type:

bool