diff --git a/src/idl/dustem_write_fits_table.pro b/src/idl/dustem_write_fits_table.pro index c20ea81..8049cfe 100755 --- a/src/idl/dustem_write_fits_table.pro +++ b/src/idl/dustem_write_fits_table.pro @@ -55,7 +55,11 @@ IF keyword_set(help) THEN BEGIN ENDIF ;===== run dustem to get predicted spectrum and sed -dustem_predicted_sed=dustem_compute_sed(*(*!dustem_fit).current_param_values,out_st=dustem_spectra_st) +IF ptr_valid((*!dustem_data).sed) THEN BEGIN + stop + dustem_predicted_sed=dustem_compute_sed(*(*!dustem_fit).current_param_values,out_st=dustem_spectra_st) +ENDIF ELSE BEGIN +ENDELSE IF !run_pol THEN BEGIN ;This is needed to compute Q,U of both SED and spectra -- libgit2 0.21.2