Using OpenGrADS

  • For me, only for calculation of stream function and velocity potential...
  • Official site: http://opengrads.org

Contents

Installation

All examples are for grads-1.9 on Linux-PC, located at ~/GrADS.

  1. Save the original grads directory at somewhere else (just in case).
  2. Get appropriate executables from here, and copy the contents in bin directory to ~/GrADS/bin (overwrite them).
  3. Get appropriate extensions from here, and copy the contents in bin directory to ~/GrADS/bin (there should be no file with same name).
  4. Set environmental variables as follows:
    GAUDXT=$HOME/GrADS/bin/gex/udxt
    LD_LIBRARY_PATH=$HOME/GrADS/bin/gex:$LD_LIBRARY_PATH

Drawing stream function

$ gradsnc 
   # be sure the opengrads command is executed
> open pgb.ctl 
   # example
> d fish_psi(ugrdprs,vgrdprs)
It's usual to shift the field to its global average being a zero.
> a=fish_psi(ugrdprs,vgrdprs)
> d a-aave(a,global)