Commit fabcd2dd58a48367350fb4b1680567bf03c29167
1 parent
37926d83
Exists in
master
code now conforms to user tutorials
Showing
1 changed file
with
48 additions
and
25 deletions
Show diff stats
src/idl/dustem_myisrf_example.pro
... | ... | @@ -95,7 +95,7 @@ END |
95 | 95 | IF keyword_set(model) THEN BEGIN |
96 | 96 | use_model=strupcase(model) |
97 | 97 | ENDIF ELSE BEGIN |
98 | - use_model='DL07' ;Default is last dustem model | |
98 | + use_model='DBP90' ;default dust model for this example | |
99 | 99 | ENDELSE |
100 | 100 | |
101 | 101 | |
... | ... | @@ -112,6 +112,29 @@ dustem_define_la_common |
112 | 112 | ;=== Refer to the DustEM and DustEMWrap userguides for an explanation |
113 | 113 | ; of the different grain types |
114 | 114 | |
115 | +;=== AN EXAMPLE FOR DBP90 | |
116 | +;=== Here we fit the PAH abundance of the model, and the amplitude | |
117 | +;=== of a user-supplied ISRF. A synchrotron component is included | |
118 | +;=== The other grain parameters are fixed to their default values. | |
119 | +;=== The free parameters are all lower-bounded at zero. | |
120 | +;=== Note that if '(*!dustem_params).G0' is not set explicitly as a fixed parameter, then | |
121 | +;=== the ISRF used by DustEM will include a standard Mathis field with | |
122 | +;=== amplitude, G0=1. | |
123 | +use_model='DBP90' ; you should specify this above, or in the command line | |
124 | +pd = [ $ | |
125 | + '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction | |
126 | + 'dustem_plugin_modify_isrf_1', $ ; Amplitude of user-defined ISRF | |
127 | + 'dustem_plugin_synchrotron_2'] ;Synchrotron amplitude at 10 mm | |
128 | +iv = [5.4e-4,0.1, 0.01] | |
129 | +Npar=n_elements(pd) | |
130 | +ulimed=replicate(0,Npar) | |
131 | +llimed=replicate(1,Npar) | |
132 | +llims=replicate(1.e-15,Npar) | |
133 | +; To suppress the | |
134 | +;fpd=['(*!dustem_params).G0'] | |
135 | +;fiv=[1.e-10] | |
136 | + | |
137 | + | |
115 | 138 | ;; ;=== AN EXAMPLE FOR DL07 (or DL01 or WD01_RV5P5B) |
116 | 139 | ;; ;=== Here we fit the PAH abundances of the model, and the amplitude |
117 | 140 | ;; ;=== of a user-supplied ISRF. A synchrotron component is included |
... | ... | @@ -119,36 +142,36 @@ dustem_define_la_common |
119 | 142 | ;; ;=== The free parameters are all lower-bounded at zero. |
120 | 143 | ;; use_model='DL07' ; you should specify this above, or in the command line |
121 | 144 | pd = [ $ |
122 | - '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction | |
145 | + '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction | |
123 | 146 | '(*!dustem_params).grains(1).mdust_o_mh',$ ;PAH1 mass fraction |
124 | 147 | 'dustem_plugin_modify_isrf_1', $ ; Ampitude of user-defined ISRF |
125 | 148 | 'dustem_plugin_synchrotron_2'] ;Synchrotron amplitude at 10 mm |
126 | -iv = [5.4e-4, 5.4e-4,0.1, 0.01] | |
149 | +iv = [5.4e-4, 5.4e-4, 0.1, 0.01] | |
127 | 150 | Npar=n_elements(pd) |
128 | 151 | ulimed=replicate(0,Npar) |
129 | 152 | llimed=replicate(1,Npar) |
130 | 153 | llims=replicate(1.e-15,Npar) |
131 | -; fpd=['(*!dustem_params).G0', $ | |
132 | -; '(*!dustem_params).gas.G0'] | |
133 | -; fiv=[1.e-10,1.e-10] | |
134 | - | |
135 | -;; ;=== AN EXAMPLE FOR DBP90 | |
136 | -;; ;=== Here we fit the PAH abundances of the model, and the amplitude | |
137 | -;; ;=== of a user-supplied ISRF. A synchrotron component is included | |
138 | -;; ;=== The other grain parameters are fixed to their default values. | |
139 | -;; ;=== The free parameters are all lower-bounded at zero. | |
140 | -;; use_model='DBP90' ; you should specify this above, or in the command line | |
141 | -;; pd = [ $ | |
142 | -;; '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction | |
143 | -;; 'dustem_plugin_modify_isrf_1', $ ; Ampitude of user-defined ISRF | |
144 | -;; 'dustem_plugin_synchrotron_2'] ;Synchrotron amplitude at 10 mm | |
145 | -;; iv = [5.4e-4,0.1, 0.01] | |
146 | -;; Npar=n_elements(pd) | |
147 | -;; ulimed=replicate(0,Npar) | |
148 | -;; llimed=replicate(1,Npar) | |
149 | -;; llims=replicate(1.e-15,Npar) | |
150 | -;; ; fpd=['(*!dustem_params).G0'] | |
151 | -;; ; fiv=[1.e-10] | |
154 | +fpd=['(*!dustem_params).G0'] | |
155 | + '(*!dustem_params).gas.G0'] | |
156 | + fiv=[1.,1.] | |
157 | + | |
158 | +;=== AN EXAMPLE FOR DBP90 | |
159 | +;=== Here we fit the PAH abundances of the model, and the amplitude | |
160 | +;=== of a user-supplied ISRF. A synchrotron component is included | |
161 | +;=== The other grain parameters are fixed to their default values. | |
162 | +;=== The free parameters are all lower-bounded at zero. | |
163 | +use_model='DBP90' ; you should specify this above, or in the command line | |
164 | +pd = [ $ | |
165 | + '(*!dustem_params).grains(0).mdust_o_mh',$ ;PAH0 mass fraction | |
166 | + 'dustem_plugin_modify_isrf_1', $ ; Ampitude of user-defined ISRF | |
167 | + 'dustem_plugin_synchrotron_2'] ;Synchrotron amplitude at 10 mm | |
168 | +iv = [5.4e-4,0.1, 0.01] | |
169 | +Npar=n_elements(pd) | |
170 | +ulimed=replicate(0,Npar) | |
171 | +llimed=replicate(1,Npar) | |
172 | +llims=replicate(1.e-15,Npar) | |
173 | +fpd=['(*!dustem_params).G0'] | |
174 | +fiv=[1.] | |
152 | 175 | |
153 | 176 | |
154 | 177 | if keyword_set(wait) then begin |
... | ... | @@ -171,7 +194,7 @@ st_model=dustem_read_all(dir_in) |
171 | 194 | if not keyword_set(isrf_file) then begin |
172 | 195 | mywaves=[] |
173 | 196 | my_isrf_file='./myisrf_3bb_8000K.dat' |
174 | - myisrf=dustem_create_rfield([8000,8000,8000],wdil=[1.d-11,1.d-11,1.d-11],isrf=0,fname=my_isrf_file,x=mywaves) | |
197 | + myisrf=dustem_create_rfield([8000,8000,8000],wdil=[1.d-11,1.d-11,1.d-11],isrf=1,fname=my_isrf_file,x=mywaves) | |
175 | 198 | ;myisrf=dustem_create_rfield([3500,4000,5500,6500,8000],wdil=[1.d-13,1.d-13,1.d-13,1.d-13,1.d-13],isrf=1,fname='./myisrf_mathis_5bb.dat',x=mywaves) |
176 | 199 | ;myisrf=dustem_create_rfield([3500,4000,5500,6500,8000],wdil=[1.d-13,1.d-13,1.d-13,1.d-13,1.d-13],isrf=2,fname='./myisrf_habing_5bb.dat',x=mywaves) |
177 | 200 | ;myisrf=dustem_create_rfield([3500,4000,5500,6500,8000],wdil=[1.d-13,1.d-13,1.d-13,1.d-13,1.d-13],isrf=0,fname='./myisrf_5bb.dat',x=mywaves) | ... | ... |