Commit e475799b4bfa9488a46fa124db2b34757d7e560b
1 parent
79417f9a
Exists in
master
switched logic of restart to norestart
Showing
1 changed file
with
11 additions
and
12 deletions
Show diff stats
src/idl/dustem_cc_print.pro
1 | -PRO dustem_cc_print,filters,restart=restart,help=help | |
1 | +PRO dustem_cc_print,filters,norestart=norestart,help=help | |
2 | 2 | |
3 | 3 | ;+ |
4 | 4 | ; NAME: |
... | ... | @@ -34,8 +34,7 @@ PRO dustem_cc_print,filters,restart=restart,help=help |
34 | 34 | ; |
35 | 35 | ; ACCEPTED KEY-WORDS: |
36 | 36 | ; help = If set, print this help |
37 | -; restart = If set, reinitialise DustEMWrap and use a new | |
38 | -; wavelength vector for integration. | |
37 | +; norestart = If set, do not reinitialise DustEMWrap | |
39 | 38 | ; |
40 | 39 | ; COMMON BLOCKS: |
41 | 40 | ; None |
... | ... | @@ -53,8 +52,8 @@ PRO dustem_cc_print,filters,restart=restart,help=help |
53 | 52 | ; PROCEDURES AND SUBROUTINES USED: |
54 | 53 | ; |
55 | 54 | ; EXAMPLES |
56 | -; dustem_cc_print,['MIRI1','MIRI6'],/restart | |
57 | -; dustem_cc_print,['IRAS1','IRAC2'] | |
55 | +; dustem_cc_print,['MIRI1','MIRI6'] | |
56 | +; dustem_cc_print,['IRAS1','IRAC2'],/norestart | |
58 | 57 | ; |
59 | 58 | ; MODIFICATION HISTORY: |
60 | 59 | ; Written by JPB Apr-2011 |
... | ... | @@ -66,8 +65,14 @@ IF keyword_set(help) THEN BEGIN |
66 | 65 | goto,the_end |
67 | 66 | ENDIF |
68 | 67 | |
68 | +;== Check if user gave us filters | |
69 | + if not keyword_set(filters) then begin | |
70 | + message,'You must provide a list of filters',/info | |
71 | + stop | |
72 | + end | |
73 | + | |
69 | 74 | ;== Initialize DustemWrap if restart requested |
70 | - if keyword_set(restart) then begin | |
75 | + if not keyword_set(norestart) then begin | |
71 | 76 | dustem_init |
72 | 77 | Nwav=50000 & wavmin=0.1 & wavmax=500. |
73 | 78 | wavs=findgen(Nwav)/(Nwav-1)*(wavmax-wavmin)+wavmin |
... | ... | @@ -78,12 +83,6 @@ ENDIF |
78 | 83 | wavs=st.sed.wav |
79 | 84 | end |
80 | 85 | |
81 | -;== Check if user gave us filters | |
82 | - if not keyword_set(filters) then begin | |
83 | - message,'You must provide a list of filters',/info | |
84 | - stop | |
85 | - end | |
86 | - | |
87 | 86 | Nfilt=n_elements(filters) |
88 | 87 | wavref=dustem_filter2wav(filters) |
89 | 88 | ... | ... |