Commit 3b1e2e39f7fd5f959c607c500e6b67110dd2b346
1 parent
11c71cbb
Exists in
master
replaced V2.0 by value in dustem_version ssytem variable
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
src/idl/dustemwrap_plot.pro
... | ... | @@ -74,7 +74,8 @@ print,'!dustem_inter chi^2:',!dustem_iter.act,(*!dustem_fit).rchi2,(*!dustem_fit |
74 | 74 | dd=(*(*!dustem_data).sed).values |
75 | 75 | ss=(*(*!dustem_data).sed).sigma |
76 | 76 | recomputed_chi2_sed = total((dd-dustem_sed)^2/ss^2) |
77 | -recomputed_rchi2_sed = recomputed_chi2_sed / n_elements((*(*!dustem_data).sed).values) | |
77 | +dof= n_elements((*(*!dustem_data).sed).values) - n_elements(*(*!dustem_fit).PARAM_DESCS) | |
78 | +recomputed_rchi2_sed = recomputed_chi2_sed / dof | |
78 | 79 | |
79 | 80 | print,'recomputed chi^2:',!dustem_iter.act,recomputed_rchi2_sed,recomputed_chi2_sed |
80 | 81 | mouchard=*!iteration_mouchard |
... | ... | @@ -90,7 +91,7 @@ mouchard=[mouchard,new_mouchard] |
90 | 91 | |
91 | 92 | print,new_mouchard |
92 | 93 | |
93 | -;stop | |
94 | +stop | |
94 | 95 | |
95 | 96 | |
96 | 97 | ;LIST OF TESTS THAT NEED TO BE RAN SO THAT THE PLOTTING OF THE MODEL SPECTRA OCCURS |
... | ... | @@ -224,7 +225,7 @@ if test_m then begin |
224 | 225 | |
225 | 226 | if iswinsed then begin ;This is when the cgwindow does not exist already |
226 | 227 | |
227 | - if !run_pol then cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP v2.0 (EMISSION)' else cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP v2.0 (EMISSION)';, wback='grey';,wobject=winobj_m | |
228 | + if !run_pol then cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (EMISSION)' else cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (EMISSION)';, wback='grey';,wobject=winobj_m | |
228 | 229 | winid_m = cgquery(dimensions=dim_m,/current) ;this has to be changed because the dimensions of this array change with the data sets present (extinction/emission). |
229 | 230 | !dustemcgwin_id.sed = winid_m |
230 | 231 | |
... | ... | @@ -624,7 +625,7 @@ if test_x then begin |
624 | 625 | |
625 | 626 | if iswinext then begin |
626 | 627 | |
627 | - if !run_pol then cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP v2.0 (EXTINCTION)' else cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP v2.0 (EXTINCTION)';, wback='grey';,wobject=winobj_m | |
628 | + if !run_pol then cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (EXTINCTION)' else cgwindow,wxsize=main_wxsize,wysize=main_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (EXTINCTION)';, wback='grey';,wobject=winobj_m | |
628 | 629 | winid_x = cgquery(dimensions=dim_x,/current) ;this has to be changed because the dimensions of this array change with the data sets present (extinction/emission). |
629 | 630 | !dustemcgwin_id.ext = winid_x |
630 | 631 | |
... | ... | @@ -1028,7 +1029,7 @@ IF ~iswinprms THEN BEGIN;(NEXT RUNS) |
1028 | 1029 | cgwindow,'dustemcgwin_dataset', st, res, errors, p_dim,dataset='PARAMETERS', /refresh, winid=winid_prms,/replacecmd,cmdindex=cmdind_prms, _extra=_extra |
1029 | 1030 | cgcontrol, winid_prms ,execute=1 |
1030 | 1031 | ENDIF ELSE BEGIN ;(FIRST RUN) |
1031 | - cgwindow,wxpos=param_wxpos,wypos=param_wypos,wxsize=param_wxsize,wysize=param_wysize,wtitle='DUSTEMWRAP v2.0 (PARAMETERS)' ; keeping the same y dimension of the emission/extinction plot? | |
1032 | + cgwindow,wxpos=param_wxpos,wypos=param_wypos,wxsize=param_wxsize,wysize=param_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (PARAMETERS)' ; keeping the same y dimension of the emission/extinction plot? | |
1032 | 1033 | ; cgwindow,wxsize=350,wysize=200,wtitle='DUSTEMWRAP v2.0 (PARAMETERS)' ; keeping the same y dimension of the emission/extinction plot? |
1033 | 1034 | winid_prms = cgquery(dimensions=dim_prms,/current) ;we don't need the dimension of the window so far/ I don't know why I needed it before |
1034 | 1035 | cgcontrol, winid_prms, execute=0 |
... | ... | @@ -1052,7 +1053,7 @@ IF (tag_names(*!dustem_plugin))(0) NE 'NONE' THEN BEGIN |
1052 | 1053 | cgwindow,'dustemcgwin_dataset', st, res, errors, p_dim,dataset='PLUGINS', /refresh, winid=winid_plgns,/replacecmd,cmdindex=cmdind_plgns, _extra=_extra |
1053 | 1054 | cgcontrol, winid_plgns ,execute=1 |
1054 | 1055 | ENDIF ELSE BEGIN ;(FIRST RUN) |
1055 | - cgwindow,wxpos=plugin_wxpos,wypos=plugin_wypos,wxsize=plugin_wxsize,wysize=plugin_wysize,wtitle='DUSTEMWRAP v2.0 (PLUGINS)' ; keeping the same y dimension of the emission/extinction plot? | |
1056 | + cgwindow,wxpos=plugin_wxpos,wypos=plugin_wypos,wxsize=plugin_wxsize,wysize=plugin_wysize,wtitle='DUSTEMWRAP '+!dustem_version.version+' (PLUGINS)' ; keeping the same y dimension of the emission/extinction plot? | |
1056 | 1057 | ;cgwindow,wxsize=350,wysize=200,wtitle='DUSTEMWRAP v2.0 (PLUGINS)' ; keeping the same y dimension of the emission/extinction plot? |
1057 | 1058 | winid_plgns = cgquery(dimensions=dim_plgns,/current) ;we don't need the dimension of the window so far/ I don't know why I needed it before |
1058 | 1059 | cgcontrol, winid_plgns, execute=0 | ... | ... |