Blame view

src/idl/dustem_sed_plot.pro 1.68 KB
4750086c   Ilyes Choubani   nouvelle philosph...
1
PRO dustem_sed_plot,p_min,_extra=_extra,function_name=function_name,pol=pol,legend_xpos=legend_xpos,legend_ypos=legend_ypos,ps=ps,title=title
427f1205   Jean-Michel Glorian   version 4.2 merged
2
3
4

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
;stop
  ;== JPB: st used to come out from here
  ;even when not set. Had to replavce by out_st ...
452c334e   Ilyes Choubani   Implementation Of...
8
9
10
11
  
  ;dustem_sed=dustem_compute_sed(p_min,st=st,cont=cont,freefree=freefree,synchrotron=synchrotron,out_st=out_st)
  dustem_sed=dustem_compute_sed(p_min,st=st,out_st=out_st)
  
6730c3f8   Jean-Philippe Bernard   modified to be co...
12
  st=out_st
452c334e   Ilyes Choubani   Implementation Of...
13
  ;dustem_plot_fit_sed,st,dustem_sed,cont,freefree,synchrotron,_extra=_extra,legend_xpos=legend_xpos,legend_ypos=legend_ypos
4750086c   Ilyes Choubani   nouvelle philosph...
14
15
16
17
  
  IF keyword_set(ps) THEN dustem_plot_fit_sed,st,dustem_sed,_extra=_extra,legend_xpos=legend_xpos,legend_ypos=legend_ypos,ps=ps,tit=tit,use_model=use_model ELSE dustem_plot_fit_sed,st,dustem_sed,_extra=_extra,legend_xpos=legend_xpos,legend_ypos=legend_ypos,tit=tit,use_model=use_model
  
  ;I do not understand the reason begind the stop below - either way polarization is handled by other procedures
b5ccb706   Jean-Philippe Bernard   improved to fit p...
18
  IF keyword_set(pol) THEN BEGIN
7d2d66e7   Ilyes Choubani   replacing polsed,...
19
    ;stop
b5ccb706   Jean-Philippe Bernard   improved to fit p...
20
21
22
    ;dustem_polsed=dustem_compute_polsed(p_min,st=pst,cont=cont,freefree=freefree,synchrotron=synchrotron,out_st=out_st)
    dustem_plot_polar,st,ps=ps,_Extra=extra,help=help,UV=UV,SED=SED,Pfrac=Pfrac,print_ratio=print_ratio,win=win,cont=cont,xr=xr,yr=yr,donotclose=donotclose,aligned=aligned,noerrbars=noerrbars,multi=multi,almabands=almabands,nsmooth=nsmooth
  ENDIF
427f1205   Jean-Michel Glorian   version 4.2 merged
23
24
25
ENDIF ELSE BEGIN
  CASE function_name OF
    'dustem_greybody_mpfit':BEGIN
6730c3f8   Jean-Philippe Bernard   modified to be co...
26
       dustem_sed=dustem_compute_gb_sed_fast(p_min,waves=ww,spec=spec)
427f1205   Jean-Michel Glorian   version 4.2 merged
27
28
29
30
31
32
33
;       stop
       dustem_gb_plot_fit_sed,ww,spec,dustem_sed,_extra=extra
    END
  ENDCASE
ENDELSE

END