GDL GNUDataLanguage reading IDL .sav files

GDL needs CMSvlib installed to read/write IDL .sav files.

Enable GDL to read/write .sav files

  1. install CMSvlib
    mkdir ~/cmsvlib
    
    wget -P ~/cmsvlib http://cow.physics.wisc.edu/~craigm/idl/down/cmsvlib.tar.gz
    
    cd ~/cmsvlib
    tar xf cmsvlib.tar.gz
    
  2. add line to ~/.bashrc
    export GDL_STARTUP=$HOME/.gdl/gdl-startup.pro"
    
  3. copy and paste into  ~/.gdl/gdl-startup.pro
    !PATH=!PATH+':'+Expand_Path('+~/cmsvlib/')
    
  4. reopen Terminal

Load IDL .sav file

restore,'myfile.sav'

check that GDL has loaded the correct paths

in GDL type

print,!PATH

Leave a Comment