create_equivalent_flux_units_list#

jdaviz.core.unit_conversion_utils.create_equivalent_flux_units_list(flux_unit)[source]#

Get all possible conversions for flux from flux_unit, to populate ‘flux’ dropdown menu in the unit conversion plugin.

If flux_unit is a spectral or photon density (i.e., convertable to units in SPEC_PHOTON_FLUX_DENSITY_UNITS), then the loaded unit and all of the units in SPEC_PHOTON_FLUX_DENSITY_UNITS.

If the loaded flux unit is count, dimensionless_unscaled, DN, e/s, then there will be no additional items available for unit conversion and the only item in the dropdown will be the native unit.