Commit b08a262621eeacb89e1c7ed2082f3d77342c6ff6
1 parent
9aceb888
Exists in
master
correcting number of iterations. This proc needs a bit of cleaning
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/idl/dustem_fit_polarization_example.pro
... | ... | @@ -173,9 +173,10 @@ dustem_set_data,sed,sed |
173 | 173 | dustem_init_params,use_model,pd,iv,fpd=fpd,fiv=fiv,ulimed=ulimed,llimed=llimed,ulims=ulims,llims=llims,pol=use_polarization |
174 | 174 | |
175 | 175 | ;=== RUN fit |
176 | +;number of iterations has already been specified in the beginning of the code. | |
176 | 177 | tol=1.e-16 |
177 | 178 | xtol=1.e-16 |
178 | -use_Nitermax=1; an initialization | |
179 | +use_Nitermax=5; an initialization | |
179 | 180 | IF keyword_set(Nitermax) THEN use_Nitermax=Nitermax |
180 | 181 | |
181 | 182 | xrange=[1.,2.e4] |
... | ... | @@ -232,6 +233,9 @@ IF keyword_set(fits_save_and_restore) THEN BEGIN |
232 | 233 | dustem_read_fits_table,filename=fits_save_and_restore,dustem_st=dustem_spectra_st |
233 | 234 | ;==== plot result taken from the saved fits table |
234 | 235 | res=*(*!dustem_fit).CURRENT_PARAM_VALUES |
236 | + | |
237 | + ;If the user prefers non-OOP plotting then they will have to set !dustem_noobj=1 since dustem_init is called in reads_fits_table. | |
238 | + | |
235 | 239 | IF !dustem_noobj THEN BEGIN |
236 | 240 | dustemwrap_plot_noobj,res,st=dustem_spectra_st,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=title+' (From saved FITS file)' |
237 | 241 | ENDIF ELSE BEGIN | ... | ... |