Commit 8a78e3bda67ce64504fc4bd85c6e915bedc8308f
1 parent
008ab3a3
Exists in
master
changed default behaviour when CC method is unknown
Showing
1 changed file
with
7 additions
and
3 deletions
Show diff stats
src/idl/dustem_cc.pro
... | ... | @@ -214,9 +214,13 @@ FOR i=0L,Nbands-1 DO BEGIN |
214 | 214 | cc[i]=num/(spec0*den*(st.central_wavelengths[ii])^beta) |
215 | 215 | END |
216 | 216 | ELSE:BEGIN |
217 | - message,strupcase(fluxconvs[i])+' not recognized',/info | |
218 | - cc[i]=1. | |
219 | - ;stop | |
217 | + message,strupcase(fluxconvs[i])+' not recognized, assuming NUINU=CSTE',/info | |
218 | + ;cc[i]=1. ; changed default behaviour in version 4.3 | |
219 | + beta=-1. | |
220 | + spec_int=interpol(spec2,wavein2,*(st.use_wavelengths(ii))) | |
221 | + num=integral(*(st.use_wavelengths(ii)),spec_int*(*(st.use_transmissions(ii)))/(*(st.use_wavelengths(ii)))^2.,st.use_wmin(ii),st.use_wmax(ii),/double) | |
222 | + den=integral(*(st.use_wavelengths(ii)),((*(st.use_transmissions(ii)))/((*(st.use_wavelengths(ii)))^(2+beta))),st.use_wmin(ii),st.use_wmax(ii),/double) | |
223 | + cc[i]=num/(spec0*den*(st.central_wavelengths[ii])^beta) | |
220 | 224 | END |
221 | 225 | ENDCASE |
222 | 226 | !dustem_previous_cc=ptr_new(cc) | ... | ... |