_eqv_sb_per_pixel_to_per_angle#
- jdaviz.core.custom_units_and_equivs._eqv_sb_per_pixel_to_per_angle(flux_unit, scale_factor=1)[source]#
Returns an equivalency between
flux_unit
per square pixel andflux_unit
per solid angle to be able to compare and convert between units like Jy/pix**2 and Jy/sr. The scale factor is assumed to be in steradians, to follow the convention of the PIXAR_SR keyword. Note: To allow conversions between units likeph / (Hz s cm2 sr)
and MJy / pix2, which would require this equivalency as well as u.spectral_density, these CAN’T be combined when converting like: equivalencies=u.spectral_density(1 * u.m) + _eqv_sb_per_pixel_to_per_angle(u.Jy) So additional logic is needed to compare units that need both equivalencies (one solution being creating this equivalency for each equivalent flux-type.)