Commit 85637eef0ae08b4f55b2f74559a39f3172e7e77f

Authored by Jean-Philippe Bernard
1 parent 0c7104bf
Exists in master

first commit

Showing 1 changed file with 26 additions and 0 deletions   Show diff stats
src/idl/dustem_old2new_sed_format.pro 0 → 100644
... ... @@ -0,0 +1,26 @@
  1 +PRO dustem_old2new_sed_format
  2 +
  3 +dustem_init
  4 +
  5 +dir=!dustem_wrap_soft_dir+'/Data/SEDs/'
  6 +file=dir+'Gal_composite_spectrum.xcat'
  7 +
  8 +str='cp '+file+' '+file+'.old'
  9 +spawn,str
  10 +
  11 +old_sed=read_xcat(file,/silent,comments=old_comments)
  12 +Nsed=n_elements(old_sed)
  13 +
  14 +new_sed=dustem_initialize_sed(Nsed,comments=new_comments,help=help)
  15 +comments=['Written by dustem_old2new_sed_format.pro on '+systime(0),old_comments,new_comments]
  16 +
  17 +
  18 +new_sed.instru=old_sed.instru
  19 +new_sed.filter=old_sed.filter
  20 +new_sed.wave=old_sed.wave
  21 +new_sed.StokesI=old_sed.spec
  22 +new_sed.sigmaII=(old_sed.error)^2
  23 +
  24 +write_xcat,new_sed,file,comments=comments
  25 +
  26 +END
... ...