Commit 91a8f7ba2c31e63e6594aad046073752aa38c0fa
1 parent
04aa7dcd
Exists in
master
added plot_all keyword
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/idl/dustem_fit_intensity_example.pro
... | ... | @@ -5,6 +5,7 @@ PRO dustem_fit_intensity_example,model=model $ |
5 | 5 | ,help=help $ |
6 | 6 | ,wait=wait $ |
7 | 7 | ,noobj=noobj $ |
8 | + ,plot_all=plot_all $ | |
8 | 9 | ,verbose=verbose |
9 | 10 | |
10 | 11 | ;+ |
... | ... | @@ -57,8 +58,9 @@ PRO dustem_fit_intensity_example,model=model $ |
57 | 58 | ; help = if set, print this help |
58 | 59 | ; wait = if set, wait this many seconds between each step of |
59 | 60 | ; the code (for illustration purposes) |
60 | -; verbose = if set, subroutines will run in verbose mode | |
61 | +; verbose = if set, subroutines will run in verbose mode | |
61 | 62 | ; noobj = if set, runs with no object graphics |
63 | +; plot_all = if set, will show all intermediate plotting outputs (default OFF) | |
62 | 64 | ; |
63 | 65 | ; COMMON BLOCKS: |
64 | 66 | ; None |
... | ... | @@ -104,6 +106,8 @@ if exists ne 1 then $ |
104 | 106 | ;; ;=================================== |
105 | 107 | ;; ;=== PARSE OTHER INPUTS AND SET SOME BASIC RUN PARAMETERS |
106 | 108 | ;; ;=================================== |
109 | +do_all_plots=0 | |
110 | +if keyword_set(plot_all) then do_all_plots=1 | |
107 | 111 | use_verbose=0 |
108 | 112 | if keyword_set(verbose) then use_verbose=1 |
109 | 113 | use_Nitermax=5 ; maximum number of iterations for the fit |
... | ... | @@ -268,7 +272,7 @@ fpd=[] & fiv=[] |
268 | 272 | ;;=================================== |
269 | 273 | ;;=== INITIALISE DUSTEM |
270 | 274 | ;;=================================== |
271 | -dustem_init,model=use_model,polarization=use_polarization | |
275 | +dustem_init,model=use_model,polarization=use_polarization,show=do_all_plots | |
272 | 276 | !dustem_nocatch=1 |
273 | 277 | !dustem_verbose=use_verbose |
274 | 278 | IF keyword_set(noobj) THEN !dustem_noobj=1 | ... | ... |