Commit 707e83c5d5c40e06d008af9105a0bcea3677a1db

Authored by Ilyes Choubani
1 parent 8bb63b77
Exists in master

updating dustewrap_plot

Showing 1 changed file with 10 additions and 7 deletions   Show diff stats
src/idl/dustemwrap_plot.pro
... ... @@ -35,7 +35,7 @@ IF not keyword_set(st) THEN BEGIN
35 35 st=dustem_run(p_dim)
36 36 ENDIF
37 37  
38   -stop
  38 +;stop
39 39 ;If the interpolates arrays are not present (dustem_sed, etc...) run:
40 40 ;dustem_compute_sed etc to generate them.
41 41  
... ... @@ -92,7 +92,10 @@ iswinext = !dustemcgwin_id.ext EQ la_undef()
92 92 ;plotstrct = !p
93 93 degtorad = !pi/180 ;factor that the arctan will be devided by in order to have an axis in degrees. Talk to JP maybe he wants angle in radians.
94 94  
95   -dustem_psi_em = 0.5*atan(dustem_used,dustem_qsed)/degtorad
  95 +;This should probably be moved to 'dustem_mpfit_run'. !!!!!!!
  96 +;for now I am coding it like this.
  97 +
  98 +if !run_pol then dustem_psi_em = 0.5*atan(dustem_used,dustem_qsed)/degtorad
96 99  
97 100 ;if iswinsed then begin ;I believe the iswin test should be below the case condition because I am not copying all the first 'HUGE LOOP' but rather replacing the positional arrays.
98 101 if test_m then begin
... ... @@ -340,11 +343,11 @@ endif
340 343  
341 344  
342 345 ;Putting everything required for the plotting of the legends (column density,model chi2 and rchi2) and the two windows for the parameters and the plugins respectively
343   -
344   -; xxpos =
345   -; yypos =
346   -; ltit = 'Model: '+
347   -; xyouts,xxpos,yypos,ltit+!dustem_model,color=0,/normal,charsize=legend_charsize
  346 + ;p_sed = [0.05,0.67,0.475,0.90]
  347 +; xxpos = 0.03
  348 +; yypos = 0.95
  349 +; ltit = 'Model: '
  350 +; cgwindow,'xyouts',xxpos,/addcmd,windid=winid_m,yypos,ltit+!dustem_model,color=0,/normal,charsize=legend_charsize
348 351 ; xxpos =
349 352 ; yypos =
350 353 ; ltit = 'N_{H}:'+strmid(string(*!dustem_HCD,format='(1E10.2)'),2)+'(H/cm^2)'
... ...