| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | wl | |||
| character(len=30), | intent(out) | :: | ion | |||
| integer, | intent(out) | :: | mass | |||
| double precision, | intent(out) | :: | logTe | |||
| double precision, | intent(out) | :: | line_center | |||
| double precision, | intent(out) | :: | spatial_px | |||
| double precision, | intent(out) | :: | spectral_px | |||
| double precision, | intent(out) | :: | sigma_PSF | |||
| double precision, | intent(out) | :: | width_slit |
subroutine get_line_info(wl,ion,mass,logTe,line_center,spatial_px,& spectral_px,sigma_PSF,width_slit) ! get information of the spectral line ! wl: wavelength ! mass: ion mass, unit -- proton mass ! logTe: peak temperature of emission line in logarithm ! line_center: center wavelength of emission line, unit -- Angstrom (0.1 nm) ! spatial_px: pixel size in space of instrument (for image), unit -- arcsec ! spectral_px: pixel size in wagelength of instrument (for spectrum), unit -- Angstrom ! sigma_PSF: width of point spread function core (for instrument), unit -- pixel ! width_slit: width of slit for spectrograph, unit -- arcsec use mod_global_parameters integer, intent(in) :: wl integer, intent(out) :: mass character(len=30), intent(out) :: ion double precision, intent(out) :: logTe,line_center,spatial_px,& spectral_px double precision, intent(out) :: sigma_PSF,width_slit select case(wl) case(304) ion='He II' mass=4 logTe=4.7d0 line_center=303.8d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=0.895d0 width_slit=0.6d0 case(171) ion='Fe IX' mass=56 logTe=5.8d0 line_center=171.1d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=1.019d0 width_slit=0.6d0 case(193) ion='Fe XXIV' mass=56 logTe=7.3d0 line_center=193.5d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=0.813d0 width_slit=0.6d0 case(211) ion='Fe XIV' mass=56 logTe=6.3d0 line_center=211.3d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=0.913d0 width_slit=0.6d0 case(335) ion='Fe XVI' mass=56 logTe=6.4d0 line_center=335.4d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=1.019d0 width_slit=0.6d0 case(94) ion='Fe XVIII' mass=56 logTe=6.8d0 line_center=93.9d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=1.025d0 width_slit=0.6d0 case(131) ion='Fe XXI' mass=56 logTe=7.0d0 line_center=131.0d0 spatial_px=0.6d0 spectral_px=0.02d0 sigma_PSF=0.984d0 width_slit=0.6d0 case(1354) ion='Fe XXI' mass=56 logTe=7.0d0 line_center=1354.1d0 spatial_px=0.1663d0 spectral_px=12.98d-3 sigma_PSF=1.d0 width_slit=0.33d0 case(263) ion='Fe XVI' mass=56 logTe=6.4d0 line_center=262.976d0 spatial_px=1.d0 spectral_px=22.d-3 sigma_PSF=1.d0 width_slit=2.d0 case(264) ion='Fe XXIII' mass=56 logTe=7.1d0 line_center=263.765d0 spatial_px=1.d0 spectral_px=22.d-3 sigma_PSF=1.d0 width_slit=2.d0 case(192) ion='Fe XXIV' mass=56 logTe=7.2d0 line_center=192.028d0 spatial_px=1.d0 spectral_px=22.d-3 sigma_PSF=1.d0 width_slit=2.d0 case(255) ion='Fe XXIV' mass=56 logTe=7.2d0 line_center=255.113d0 spatial_px=1.d0 spectral_px=22.d-3 sigma_PSF=1.d0 width_slit=2.d0 case default call mpistop("No information about this line") end select spatial_px=spatial_px/instrument_resolution_factor end subroutine get_line_info