subroutine get_whitelight_image(qunit,fl)
use mod_global_parameters
integer, intent(in) :: qunit
type(te_fluid), intent(in) :: fl
character(20) :: datatype
double precision :: LASCO_rsl
if (mype==0) print *,&
'###################################################'
if (whitelight_instrument=='LASCO/C1') then
LASCO_rsl=5.6d0/instrument_resolution_factor
if (mype==0) print *,&
'Systhesizing white light image (observed by LASCO/C1).'
else if (whitelight_instrument=='LASCO/C2') then
LASCO_rsl=11.4d0/instrument_resolution_factor
if (mype==0) print *,&
'Systhesizing white light image (observed by LASCO/C2).'
else if (whitelight_instrument=='LASCO/C3') then
LASCO_rsl=56.d0/instrument_resolution_factor
if (mype==0) print *,&
'Systhesizing white light image (observed by LASCO/C3).'
else
call MPISTOP('Whitelight synthesis: instrument is not supported!')
endif
if (mype==0) write(*,'(a,f5.1,a,f5.1,a,f5.1,a,f5.1,a)') ' Pixel: ',&
LASCO_rsl*0.725,' Mm x ',LASCO_rsl*0.725, ' Mm (', LASCO_rsl,&
' arcsec x ', LASCO_rsl, ' arcsec) '
if (mype==0) print *, 'Unit of white light flux: average Sun brightness'
datatype='image_whitelight'
if (mype==0) then
if (activate_unit_arcsec) then
print *, 'Unit of length: arcsec (~725 km)'
else
if (SI_unit) then
if (mype==0) write(*,'(a,f8.1,a)') ' Unit of length: ',&
unit_length/1.d6,' Mm'
else
if (mype==0) write(*,'(a,f8.1,a)') ' Unit of length: ',&
unit_length/1.d8,' Mm'
endif
endif
endif
if (coordinate==spherical) then
if (mype==0) write(*,'(a,f6.3,f8.3,f8.3,a)') &
' Mapping: R=0 of the simulation box is located at [X=0,Y=0] of the image'
call get_image(qunit,datatype,fl)
else
call MPISTOP("Whitelight synthesis: this coordinate is not supported!")
endif
if (mype==0) print *,&
'###################################################'
end subroutine get_whitelight_image