energy_flux_to_photon_flux¶
- nyx.core.units.energy_flux_to_photon_flux(wvls, energy_flux)[source]¶
Convert energy flux to photon flux, per steradian or not.
- Parameters:
wvls (array-like) – Wavelengths in nm.
energy_flux (astropy Quantity) – Energy flux, e.g. W/m^2/nm or W/m^2/nm/sr.
- Returns:
Photon flux in
FLUXorRADIANCEunits.- Return type: