dustem_extsed_plot.pro 1.13 KB
PRO dustem_extsed_plot,p_min,_extra=_extra,function_name=function_name,pol=pol,legend_xpos=legend_xpos,legend_ypos=legend_ypos

IF not keyword_set(function_name) THEN BEGIN
  ;Run dustem with as an interface to mpfitfun
;stop
  ;== JPB: st used to come out from here
  ;even when not set. Had to replace by out_st ...
  dustem_sed=dustem_compute_sed(p_min,st=st,cont=cont,freefree=freefree,synchrotron=synchrotron,out_st=out_st)
  st=out_st
  dustem_plot_fit_extsed,st,dustem_sed,_extra=_extra
  IF keyword_set(pol) THEN BEGIN
    stop
    ;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
ENDIF ELSE BEGIN
  CASE function_name OF
    'dustem_greybody_mpfit':BEGIN
       dustem_sed=dustem_compute_gb_sed_fast(p_min,waves=ww,spec=spec)
;       stop
       dustem_gb_plot_fit_sed,ww,spec,dustem_sed,_extra=extra
    END
  ENDCASE
ENDELSE

END