Commit 6baf9f1f3ea0166c06463ed5f1946cd3af9c729a
1 parent
17bf6b3a
Exists in
master
fixed a few issues with plugin
Showing
7 changed files
with
27 additions
and
26 deletions
Show diff stats
src/idl/dustem_get_wavelengths.pro
src/idl/dustem_nir_continuum.pro
src/idl/dustem_plugin_continuum.pro
... | ... | @@ -44,12 +44,22 @@ IF keyword_set(help) THEN BEGIN |
44 | 44 | goto,the_end |
45 | 45 | ENDIF |
46 | 46 | |
47 | +IF keyword_set(scope) THEN BEGIN | |
48 | + scope='ADD_SED' | |
49 | + output=0 | |
50 | + goto, the_end | |
51 | +ENDIF | |
52 | + | |
53 | +IF keyword_set(paramtag) THEN BEGIN | |
54 | + paramtag=[textoidl('T_{BB}')+' [K]','Amp'] | |
55 | + output=0 | |
56 | + goto, the_end | |
57 | +ENDIF | |
58 | + | |
47 | 59 | |
48 | 60 | ;default values of input parameters |
49 | 61 | temp=1000. |
50 | 62 | ampl=1.d-2 |
51 | -scope='ADD_SED' | |
52 | -paramtag=[textoidl('T_{BB}')+' [K]','Amp'] | |
53 | 63 | paramdefault=[temp,ampl] |
54 | 64 | |
55 | 65 | IF keyword_set(key) THEN BEGIN |
... | ... | @@ -61,12 +71,6 @@ IF keyword_set(key) THEN BEGIN |
61 | 71 | |
62 | 72 | ENDIF |
63 | 73 | |
64 | -; IF !dustem_which EQ 'DESERT' THEN BEGIN | |
65 | -; lambir=((*!dustem_params).gemissiv.lambir) | |
66 | -; ENDIF ELSE BEGIN | |
67 | -; lambir=((*!dustem_params).lambda.lambda) | |
68 | -; ENDELSE | |
69 | - | |
70 | 74 | lambir=dustem_get_wavelengths() |
71 | 75 | |
72 | 76 | ;=== normalize spectrum to the requested amplitude. | ... | ... |
src/idl/dustem_plugin_modify_isrf.pro
... | ... | @@ -56,12 +56,14 @@ IF keyword_set(help) THEN BEGIN |
56 | 56 | goto,the_end |
57 | 57 | ENDIF |
58 | 58 | |
59 | -IF keyword_set(scope) THEN BEGIN | |
59 | +IF keyword_set(scope) THEN BEGIN | |
60 | + scope='REPLACE_ISRF' | |
60 | 61 | out=0 |
61 | 62 | goto, the_end |
62 | 63 | ENDIF |
63 | 64 | |
64 | 65 | IF keyword_set(paramtag) THEN BEGIN |
66 | + paramtag=['Amplitude'] | |
65 | 67 | out=0 |
66 | 68 | goto, the_end |
67 | 69 | ENDIF |
... | ... | @@ -79,15 +81,7 @@ IF isa(!dustem_isrf_file) THEN user_ISRF = dustem_read_isrf(*!dustem_isrf_file) |
79 | 81 | |
80 | 82 | out=amp*User_ISRF.isrf |
81 | 83 | |
82 | -;print,amp | |
83 | -;stop | |
84 | - | |
85 | 84 | the_end: |
86 | -;scope='USER_ISRF' | |
87 | -scope='REPLACE_ISRF' | |
88 | - | |
89 | -;paramtag will only matter if G0 is fitted through the plugin. | |
90 | -paramtag=['Amplitude'] | |
91 | 85 | |
92 | 86 | RETURN, out |
93 | 87 | END | ... | ... |
src/idl/dustem_plugin_stellar_population.pro
src/idl/dustem_stellarpopisrf_example.pro
... | ... | @@ -135,8 +135,8 @@ iv = true_vals+[1.] ; distance we use as an initial guess |
135 | 135 | |
136 | 136 | fpd=['dustem_plugin_stellar_population_'+strtrim(ind2+1,2) , $ ;number of O7V star (FIXED) |
137 | 137 | '(*!dustem_params).G0'] ; Mathis field (FIXED TO ~ZERO) |
138 | -;fiv=[1.,1.e-12] | |
139 | -fiv=[1.,1.] | |
138 | +fiv=[1.,1.e-12] | |
139 | +;fiv=[1.,1.] | |
140 | 140 | |
141 | 141 | Npar=n_elements(pd) |
142 | 142 | ulimed=replicate(0,Npar) & ulimed[0]=0 | ... | ... |
src/idl/dustem_write_isrf_release.pro
... | ... | @@ -59,6 +59,11 @@ ENDIF |
59 | 59 | ;IF PLUGINS AREN'T SET. WRITE THE DEFAULT DUSTEM ISRF.DAT FILE |
60 | 60 | Nplugins=n_elements(*!dustem_plugin) |
61 | 61 | scopes = strarr(Nplugins) |
62 | +Ncomments=3 ;default number of comments in the .DAT file (minus the ISRF used) | |
63 | +c=strarr(Ncomments) | |
64 | +c[*]='#' | |
65 | +c[0]='# DUSTEM_WRAP: Interstellar radiation field ' | |
66 | + | |
62 | 67 | IF (*!dustem_plugin)[0].name EQ 'NONE' THEN GOTO,write_isrf_file |
63 | 68 | |
64 | 69 | ;IF PLUGINS ARE SET, LOOP OVER THEIR SCOPES. |
... | ... | @@ -69,11 +74,6 @@ FOR i=0L, Nplugins-1 DO BEGIN |
69 | 74 | ;ENDIF ELSE goto, the_after |
70 | 75 | ENDFOR |
71 | 76 | |
72 | -Ncomments=3 ;default number of comments in the .DAT file (minus the ISRF used) | |
73 | -c=strarr(Ncomments) | |
74 | -c[*]='#' | |
75 | -c[0]='# DUSTEM_WRAP: Interstellar radiation field ' | |
76 | - | |
77 | 77 | ;Testing for the two current ISRF plugin scopes |
78 | 78 | ind_replace_isrf = where(scopes EQ 'REPLACE_ISRF',count_replace_isrf) |
79 | 79 | ind_add_isrf = where(scopes EQ 'ADD_ISRF',count_add_isrf) | ... | ... |