GDL GNUDataLanguage reading IDL .sav files

Your version of GDL may not come with the CMSvlib installed necessary to read/write .sav files from IDL.

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 a .sav file from GDL

Either of these commands are used from GDL

cmrestore, 'myfile.sav'

or

restore,'myfile.sav'

check that GDL has loaded the correct paths

in GDL type

print,!PATH