Blame view

src/idl/dustem_compute_polext.pro 870 Bytes
b74c4452   Ilyes Choubani   Treating extincti...
1
FUNCTION dustem_compute_polext ,p_dim,sti,POLEXT_spec,_extra=extra,out_st=out_st,dustem_qext,dustem_uext,Q_ext,U_ext 
e7938fa3   Ilyes Choubani   Corrected02: Impl...
2
3
4
5
6
7
8

;CREATED AS A CONSEQUENCE OF THE INCLUSION OF THE PLUGINS


;written to homogonize DustEM

IF not keyword_set(sti) THEN BEGIN
dc72d0b6   Ilyes Choubani   initial procedure...
9
  dustem_activate_plugins,p_dim/(*(*!dustem_fit).param_init_values)
e7938fa3   Ilyes Choubani   Corrected02: Impl...
10
  sti=dustem_run(p_dim)
e7938fa3   Ilyes Choubani   Corrected02: Impl...
11
12
ENDIF

e7938fa3   Ilyes Choubani   Corrected02: Impl...
13

b74c4452   Ilyes Choubani   Treating extincti...
14
15
16
17
18
19
20
21
22
23
24
POLEXT_spec = sti.polext.ext_tot * (*!dustem_HCD)/1.0e21  ; 



;ADDING PLUGIN TO SPECTRUM----------------
scopes=tag_names((*!dustem_plugin))
IF scopes[0] NE 'NONE' THEN BEGIN
;IF ptr_valid(!dustem_plugin) THEN BEGIN
  for i=0L,n_tags(*!dustem_plugin)-1 do begin
    if total(strsplit((*(*!dustem_plugin).(i).scope),'+',/extract) eq 'ADD_EXT') then POLEXT_spec+=(*(*!dustem_plugin).(i).spec)[*,0]
  endfor
dc72d0b6   Ilyes Choubani   initial procedure...
25
ENDIF
e7938fa3   Ilyes Choubani   Corrected02: Impl...
26

b74c4452   Ilyes Choubani   Treating extincti...
27
dustem_polext = interpol(POLEXT_spec,sti.polext.wav,(*!dustem_data.polext).wav) 
e7938fa3   Ilyes Choubani   Corrected02: Impl...
28
29
30
31
32


return, dustem_polext


759a527d   Ilyes Choubani   general update
33

e7938fa3   Ilyes Choubani   Corrected02: Impl...
34
END