GrADS

How to use the OPeNDAP server in GrADS.

The following explains the steps of loading data served by OPeNDAP using GrADS.

Download and install GrADS (if needed):

Start GrADS using gradsdods which is included in version 1.8 and higher:

Load data using sdfopen and proceed as you normally would:
Note: * operator as comments.

    * Opens the DODS served data.
ga->  sdfopen http://apdrc.soest.hawaii.edu/dods/public_data/NLOM/nlom_ssh
ga-> 
ga-> 
ga-> 
ga-> 
ga-> 
ga-> 
ga-> 
ga-> 
ga-> 
 
 
q dims
q file
set lat 18 24
set lon 195 207
set time 03OCT04
set gxout shaded
d ssh
run cbarn.gs
draw title NLOM 1/16 degree Sea Surface Height [cm] October 3, 2004
* Returns datasets spatial and temporal information.
* Gives variable name(s).
* Specify the desired latitude range
* Specify the desired longitude range
* Specify the desired time
* Choose a shaded contour plot
* Plot sea surface height
* Draw colorbar
* Draw title


Or use script.gs as described below with GrADS command: gradsdods -lc script.gs

* Opens the DODS served data.
'sdfopen http://apdrc.soest.hawaii.edu/dods/public_data/NLOM/nlom_ssh'
* Returns datasets spatial and temporal information.
'q dims'
* Gives variable name(s).
'q file'
* Specify the desired latitude range
'set lat 18 24'
* Specify the desired longitude range
'set lon 195 207'
* Specify the desired time
'set time 03OCT04'
* Choose a shaded contour plot
'set gxout shaded'
* Plot sea surface height
'd ssh'
* Draw colorbar
'run cbarn.gs'
* Draw title
'draw title NLOM 1/16 degree Sea Surface Height [cm] October 3, 2004'