Commit 21467256071bd463c3068ec68f59586e002725a6
1 parent
378717b3
Exists in
master
fixed for polarization
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
src/idl/dustem_fit_intensity_example.pro
... | ... | @@ -382,6 +382,7 @@ IF keyword_set(fits_save_and_restore) THEN BEGIN |
382 | 382 | dustem_write_fits_table,filename=fits_save_and_restore,help=help |
383 | 383 | ;=== At this point, you could erase all dustem system variables, or exit idl... all the |
384 | 384 | ;=== information needed to recover the results and remake the plots has been saved in the FITS table |
385 | + ;stop | |
385 | 386 | dustem_read_fits_table,filename=fits_save_and_restore,dustem_spectra_st=dustem_spectra_st |
386 | 387 | ;==== plot result taken from the saved fits table |
387 | 388 | res=*(*!dustem_fit).CURRENT_PARAM_VALUES | ... | ... |
src/idl/dustem_read_fits_table.pro
... | ... | @@ -61,7 +61,7 @@ str_predicted_SED=mrdfits(file,unit_predicted_sed,header_predicted_SED) |
61 | 61 | ;str_predicted_spectrum_tot=mrdfits(file,3,header_predicted_spectrum_tot) |
62 | 62 | |
63 | 63 | used_model=strtrim(sxpar(header_predicted_SED,'MODEL'),2) |
64 | -used_pol=strtrim(sxpar(header_predicted_SED,'POL'),2) | |
64 | +used_pol=long(strtrim(sxpar(header_predicted_SED,'POL'),2)) | |
65 | 65 | IF used_model NE 'DEFAULT' THEN BEGIN |
66 | 66 | dustem_init,model=used_model,pol=used_pol |
67 | 67 | ENDIF ELSE BEGIN |
... | ... | @@ -134,6 +134,7 @@ ENDFOR |
134 | 134 | |
135 | 135 | ;=== Below is only to get the same output form as dustem_compute_sed |
136 | 136 | ;Note: If the same model is used, the outputs should be the same as what is in the fits file .... |
137 | +;stop | |
137 | 138 | dustem_predicted_sed=dustem_compute_sed(*(*!dustem_fit).current_param_values,out_st=dustem_spectra_st) |
138 | 139 | |
139 | 140 | ;==== get the predicted emission spectra from extension 4 | ... | ... |