Commit 01f481d4dda9e0c8007daa70a2b2491c5c95cd27

Authored by Jean-Philippe Bernard
1 parent e0d00de0
Exists in master

added dust polarization angle

Showing 1 changed file with 16 additions and 2 deletions   Show diff stats
src/idl/dustem_make_polarization_sed_example.pro
... ... @@ -126,6 +126,19 @@ pd = [ $
126 126 ]
127 127 p_truth=[1.,7.8000E-04,7.8000E-04,7.8000E-04,3., 1.e-2, 0.3, 45.]
128 128  
  129 +pd = [ $
  130 + '(*!dustem_params).G0', $ ;G0
  131 + '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction
  132 + '(*!dustem_params).grains(1).mdust_o_mh',$ ;PAH0 mass fraction
  133 + '(*!dustem_params).grains(2).mdust_o_mh', $ ;PAH1 mass fraction
  134 + 'dustem_plugin_modify_dust_pol_2', $ ;This will set the polarization angle
  135 + 'dustem_plugin_synchrotron_1', $ ;Synchrotron spectra index
  136 + 'dustem_plugin_synchrotron_2', $ ;Synchrotron amplitude at 10 mm
  137 + 'dustem_plugin_synchrotron_3', $ ;Synchrotron polarization fraction
  138 + 'dustem_plugin_synchrotron_4' $ ;Synchrotron polarization angle
  139 + ]
  140 +p_truth=[1.,7.8000E-04,7.8000E-04,7.8000E-04,10.,3., 1.e-2, 0.3, 45.]
  141 +
129 142  
130 143 ;iv=p_truth+[0.,8.e-4,8.e-4,8.e-4] ;shifted from solution
131 144 iv=p_truth
... ... @@ -193,9 +206,10 @@ message,'Wrote '+filename,/continue
193 206  
194 207 filename_final=!dustem_wrap_soft_dir+'/Data/EXAMPLE_OBSDATA/example_sed3.xcat'
195 208 str='cp '+filename+' '+filename_final
196   -spawn,str
  209 +message,'Do '+str+' to make change permanent',/continue
  210 +;spawn,str
197 211  
198   -message,'Wrote '+filename_final,/continue
  212 +;message,'Wrote '+filename_final,/continue
199 213  
200 214 the_end:
201 215  
... ...