Blame view

src/idl/dustem_sed_plot.pro 646 Bytes
427f1205   Jean-Michel Glorian   version 4.2 merged
1
2
3
4
PRO dustem_sed_plot,p_min,_EXTRA=extra,function_name=function_name

IF not keyword_set(function_name) THEN BEGIN
  ;Run dustem with as an interface to mpfitfun
6730c3f8   Jean-Philippe Bernard   modified to be co...
5
6
7
8
9
;stop
  ;== JPB: st used to come out from here
  ;even when not set. Had to replavce by out_st ...
  dustem_sed=dustem_compute_sed(p_min,st=st,cont=cont,out_st=out_st)
  st=out_st
427f1205   Jean-Michel Glorian   version 4.2 merged
10
11
12
13
  dustem_plot_fit_sed,st,dustem_sed,cont,_extra=extra
ENDIF ELSE BEGIN
  CASE function_name OF
    'dustem_greybody_mpfit':BEGIN
6730c3f8   Jean-Philippe Bernard   modified to be co...
14
       dustem_sed=dustem_compute_gb_sed_fast(p_min,waves=ww,spec=spec)
427f1205   Jean-Michel Glorian   version 4.2 merged
15
16
17
18
19
20
21
;       stop
       dustem_gb_plot_fit_sed,ww,spec,dustem_sed,_extra=extra
    END
  ENDCASE
ENDELSE

END