spectral_density#
- astropy.units.spectral_density(wav, factor=None)[source]#
Returns a list of equivalence pairs that handle spectral density with regard to wavelength and frequency.
- Parameters:
- wav
Quantity
Quantity
associated with values being converted (e.g., wavelength or frequency).- factornumpy:array_like
If
wav
is a |Unit| instead of a |Quantity| thenfactor
is the valuewav
will be multiplied with to convert it to a |Quantity|.Deprecated since version 7.0:
factor
is deprecated. Pass inwav
as a |Quantity|, not as a |Unit|.
- wav