From 8ddee2dbae5ccde0ea83beb962de5e6ab9cbdf52 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernard Date: Thu, 3 Nov 2022 10:24:05 +0100 Subject: [PATCH] coping for the fact that there can be no observed SED --- src/idl/dustem_write_fits_table.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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