PRO write_xcat_fitzpatrick1999,file,R_V,npts ; ################################################################################# ; ; Write extinction law according to Fitzpatrick (1999) parametrization ; in IPAC format xcat ; ; AUTHORS : ; Mathieu Compiegne & Vincent Guillet ; ; ################################################################################# ; To read xcat file : ; ------------------- ;st=read_xcat(file) ;help,st,/str one_ps = {instru:'',filter:'',wave:0.,spec:0.,error:0.,unit:''} st = replicate(one_ps,npts) NHsurEBV=5.8d21 x=fltarr(npts) x = 0.5 + (indgen(npts))/((npts-1)/9.5) ext=fltarr(npts) unc=fltarr(npts) fitz99_ext, R_V, NHsurEBV, x, ext, unc st.instru = 'EXTINCTION' st.filter = 'Fitzpatrick1999' st.wave = 1./x st.spec = ext st.error = unc st.unit = 'cm2/H' ; Write out IPAC file write_xcat,st,file ; Plot result window,0 ploterror,x,ext,x*0.,unc,psym=4 oplot,x,ext END