Commit cbdd13934582c5ca72114f7e20ee8c0c6062040b
1 parent
b8019d76
Exists in
master
modified comments. I had understood things sideways.
Showing
1 changed file
with
13 additions
and
11 deletions
Show diff stats
src/idl/dustem_fit_intensity_example.pro
... | ... | @@ -334,11 +334,13 @@ end |
334 | 334 | |
335 | 335 | |
336 | 336 | ;IC: - |
337 | -;The final plot is automatically plotted for OOP plotting | |
337 | +;The final plot is automatically plotted | |
338 | 338 | ;and a (Final run) string is automatically added |
339 | -;to modify this go to dustemwrap_plot | |
340 | - | |
341 | -;It is not for noobj plotting so I'm commenting the ELSE condition. | |
339 | +;to modify this go to dustemwrap_plot and search for the string '(FINAL_RUN)' | |
340 | +;This is true for OOP plotting. | |
341 | +;However, even thought the last iteration for noobj plotting is plotted, the '(FINAL_RUN)' string isn't applied | |
342 | +;to modify this, got to dustemwrap_plot_noobj and search for the '(RUNNING)' string. | |
343 | +;an extra condition using !dustem_end (signaling end of fit) will have to be used. | |
342 | 344 | |
343 | 345 | ;=== MAKE THE FINAL PLOT |
344 | 346 | IF keyword_set(postscript) THEN BEGIN |
... | ... | @@ -349,9 +351,9 @@ IF keyword_set(postscript) THEN BEGIN |
349 | 351 | ENDIF |
350 | 352 | IF !dustem_noobj THEN BEGIN |
351 | 353 | dustemwrap_plot_noobj,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)' |
352 | - ENDIF ;ELSE BEGIN | |
353 | -; dustemwrap_plot,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)' | |
354 | -; ENDELSE | |
354 | + ENDIF ELSE BEGIN | |
355 | + dustemwrap_plot,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)' | |
356 | +ENDELSE | |
355 | 357 | |
356 | 358 | IF keyword_set(postscript) THEN BEGIN |
357 | 359 | set_plot,'X' |
... | ... | @@ -364,11 +366,11 @@ if keyword_set(wait) then begin |
364 | 366 | wait,wait |
365 | 367 | end |
366 | 368 | |
367 | -;IC: Last iteration for Object plotting is automatically plotted. | |
369 | +;IC: Last iteration is automatically plotted. | |
368 | 370 | ;I think modifications will have to be applied to dustemwrap_plot... |
369 | -;idea: create a system variable that signals if the fits file has been successfully saved and use it in the dustemwrap_plot routine | |
370 | -;to add the '(From saved FITS file)' string to the tite | |
371 | -;again this is only needed for OOP plotting. No object plotting (dustemwrap_plot_noobj) doesn't seem to have the need to be modfied | |
371 | +;idea: create a system variable that signals if the fits file has been successfully saved and use it in the dustemwrap_plot(obj/noobj) routine(s) | |
372 | +;to add the '(From saved FITS file)' string to the title | |
373 | +; | |
372 | 374 | IF keyword_set(fits_save_and_restore) THEN BEGIN |
373 | 375 | message,'Writing out results structure: '+fits_save_and_restore,/info |
374 | 376 | dustem_write_fits_table,filename=fits_save_and_restore,help=help | ... | ... |