Commit 8ddee2dbae5ccde0ea83beb962de5e6ab9cbdf52

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

coping for the fact that there can be no observed SED

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/idl/dustem_write_fits_table.pro
@@ -55,7 +55,11 @@ IF keyword_set(help) THEN BEGIN @@ -55,7 +55,11 @@ IF keyword_set(help) THEN BEGIN
55 ENDIF 55 ENDIF
56 56
57 ;===== run dustem to get predicted spectrum and sed 57 ;===== run dustem to get predicted spectrum and sed
58 -dustem_predicted_sed=dustem_compute_sed(*(*!dustem_fit).current_param_values,out_st=dustem_spectra_st) 58 +IF ptr_valid((*!dustem_data).sed) THEN BEGIN
  59 + stop
  60 + dustem_predicted_sed=dustem_compute_sed(*(*!dustem_fit).current_param_values,out_st=dustem_spectra_st)
  61 +ENDIF ELSE BEGIN
  62 +ENDELSE
59 63
60 IF !run_pol THEN BEGIN 64 IF !run_pol THEN BEGIN
61 ;This is needed to compute Q,U of both SED and spectra 65 ;This is needed to compute Q,U of both SED and spectra