[gradsusr] how to access DODS server data using GrADS

Howard Staines metris at xtra.co.nz
Mon Jun 3 18:02:46 EDT 2013


Hi Malleswararao 

 

It is easy to open a DODS data file using the sdfopen command.

 

In a script perhaps 

'sdfopen http://nomads.ncep.noaa.gov:990/dods/gfs_hd20130603/gfs_hd_12z'

 

Which would put you straight into the data directory and access the current
GFS 0.5 degree forecast data.

 

What you would do with the script is put the base url as a variable ie/

Baseurl = 'nomads.ncep.noaa.gov:9090/dods/gfs_hd'

 

Pass the date arguments to the script

 

How I do it 

Run myscript_that_uses_GFS_data.gs 2013-06-03 12z 1

 

Date = subwrd(args, 1)

Hour= subwrd(args, 2)

Valid= subwrd(args, 3)                   this is to fire up the script on a
specific time step I just normally do 1

 

So the 

 

'sdfopen http://' baseurl  'gfs_hd' date '/gfs_hd_' hour 'z'

 

Which should work 

 

Regards Howard 

Metris Limited

New Zealand

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130604/a17003cb/attachment-0003.html 


More information about the gradsusr mailing list