Returns the wavelength [m] array of the spectrum instance.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | Spectrum instance |
Wavelength [m]
pure function getWavelength(self) result(lambda)
!! Returns the wavelength [m] array of the spectrum instance.
class(spectrum_type),intent(in) :: self !! Spectrum instance
real(kind=rk),dimension(:),allocatable :: lambda !! Wavelength [m]
lambda = twopi / self % k
endfunction getWavelength