Using GrADS to retrieve HYCOM data

James T. Potemra jimp at HAWAII.EDU
Wed May 6 13:30:48 EDT 2009


Hi Mark:

I think something is up with your version of GrADS.  Here's what I get
from grads-v2.0.a5.oga.4

              Welcome to the OpenGrADS Bundle Distribution
              --------------------------------------------

For additional information enter "opengrads --help".

Starting
"/usr/local/grads-2.0.a5.oga.4/Contents/Linux/Versions/2.0.a5.oga.4/x86_64/grads
-HC 1  -l -g 1000x800 " ...


Grid Analysis and Display System (GrADS) Version 2.0.a5.oga.4
Copyright (c) 1988-2008 by Brian Doty and the
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information

Config: v2.0.a5.oga.4 little-endian readline printim grib2 netcdf
hdf4-sds opendap-grids,stn athena geotiff
Issue 'q config' command for more information.
Loading User Defined Extensions table
</usr/local/grads-2.0.a5.oga.4/Contents/Linux/Versions/2.0.a5.oga.4/x86_64/gex/udxt>
... ok.
GX Package Initialization: Size = 11 8.5
Command line history in /export/lii/jimp/.grads.log
*sdfopen
http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
<mhtml:%7BAFB7F805-B3C0-4E25-B941-0C69528BC204%7Dmid://00009160/%21x-usc:http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc>*
Scanning self-describing file:
http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
SDF file
http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
is open as file 1
LON set to 74.16 434.08
LAT set to -78.64 46.8781
LEV set to 0 0
Time values set: 2009:5:5:0 2009:5:5:0
E set to 1 1
ga-> q file
File 1 : HYCOM GLBa0.08
  Descriptor:
http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
  Binary:
http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
  Type = Gridded
  Xsize = 4500  Ysize = 2170  Zsize = 1  Tsize = 1  Esize = 1
  Number of Variables = 8
     date  0  t  date
     mld  0  t,y,x   MLT (0.20 degC)   [90.6H]
     mlp  0  t,y,x   MLT (0.03 kg/m3)  [90.6H]
     qtot  0  t,y,x   surf. heat flux   [90.6H]
     emp  0  t,y,x   surf. water flux  [90.6H]
     surface_tempera  0  t,y,x   surf. temp. trend [90.6H]
     surface_salinit  0  t,y,x   surf. saln. trend [90.6H]
     ssh  0  t,y,x   sea surf. height  [90.6H]
ga->


Jim

Mark Hess wrote:
> Think I still must be doing something wrong and/or missing a few
> important concepts.  Here's what I get:
>
> ga-> sdfopen
> http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
> <mhtml:%7BAFB7F805-B3C0-4E25-B941-0C69528BC204%7Dmid://00009160/%21x-usc:http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc>
> Scanning self-describing file:
> http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
> <mhtml:%7BAFB7F805-B3C0-4E25-B941-0C69528BC204%7Dmid://00009160/%21x-usc:http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc>
> gaopnc error: nc_open failed to open file
> http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc
> <mhtml:%7BAFB7F805-B3C0-4E25-B941-0C69528BC204%7Dmid://00009160/%21x-usc:http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc>
> read_metadata: gaopnc failed
> gadsdf: Couldn't ingest SDF metadata.
>
> Perhaps I need to work on creating a .ctl file?  Any help with that is
> appreciated.
>
> Thanks,
>
> Mark
>
>
>     ----- Original Message -----
>     *From:* James T. Potemra <mailto:jimp at HAWAII.EDU>
>     *To:* GRADSUSR at LIST.CINECA.IT <mailto:GRADSUSR at LIST.CINECA.IT>
>     *Sent:* Tuesday, May 05, 2009 5:29 PM
>     *Subject:* Re: Using GrADS to retrieve HYCOM data
>
>     Hi Mark:
>
>     Your variable constraints look more like Matlab syntax to me.  If you
>     simply use sdfopen http://...... .nc (truncate
>     everythins from the ? to the end) it should work.  You'll then have
>     access to the entire data file and can just
>     'set x 1500 2300', 'set y 1750 2169', and so on, then 'd mld'
>
>     Jim
>
>     Mark Hess wrote:
>     > Can anyone tell me what I am doing wrong here?  At this point
>     I'm just
>     > trying to get a file off of the HYCOM server.  I used the server
>     >
>     http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc.html
>     to
>     > generate the URL string below, but am obviously missing something
>     > quite basic (I'm an inexperienced GrADS user and brand new to
>     > OPeNDAP). Will I need to create a custom .ctl file to access and
>     > display these data or am I simply using the sdfopen command
>     incorrectly?
>     >
>     > I am running GrADS version 2.0.a3.  My command and result are below.
>     >
>     > ga-> sdfopen
>     >
>     http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld[0:1:0][1750:1:2169][1500:1:2300
>     <http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld%5B0:1:0%5D%5B1750:1:2169%5D%5B1500:1:2300>]
>     >
>     > Scanning self-describing file:
>     >
>     http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld[0:1:0][1750:1:2169][1500:1:2300
>     <http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld%5B0:1:0%5D%5B1750:1:2169%5D%5B1500:1:2300>]
>     > gaopnc error: nc_open failed to open file
>     >
>     http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld[0:1:0][1750:1:2169][1500:1:2300
>     <http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/2d/rarchv.2009_125_00_2d.nc?mld%5B0:1:0%5D%5B1750:1:2169%5D%5B1500:1:2300>]
>     > read_metadata: gaopnc failed
>     > gadsdf: Couldn't ingest SDF metadata.
>     > ga->
>     > Mark
>     >
>     >     ----- Original Message -----
>     >     *From:* Dan Martin <mailto:Dan_Martin at BUOYWEATHER.COM>
>     >     *To:* GRADSUSR at LIST.CINECA.IT
>     <mailto:GRADSUSR at LIST.CINECA.IT> <mailto:GRADSUSR at LIST.CINECA.IT>
>     >     *Sent:* Thursday, April 30, 2009 7:40 PM
>     >     *Subject:* Re: Using GrADS to retrieve HYCOM data
>     >
>     >     The full HYCOM data is on a curvilinear grid that I haven't been
>     >     able to
>     >     make work in grads. They set up a linear grid for grads users by
>     >     cutting
>     >     off pre-gridded section above 48 degrees north.
>     >
>     >
>     http://hycom.coaps.fsu.edu/opendap/nph-dods/datasets/hycom/global/GLBa0.08_rect/data/
>     >
>     >     The update schedule is a bit irregular and the server is not
>     alway up,
>     >     but nice data when it is there.
>     >
>     >     If anyone has the curvilinear grid version working in grads,
>     any tips
>     >     would be nice.
>     >
>     >     Dan
>     >
>     >     Mark Hess wrote:
>     >     > Has anyone out there used GrADS to retrieve and display data
>     >     from the
>     >     > HYCOM OPeNDAP near real-time data server
>     >     >
>     http://hycom.coaps.fsu.edu/thredds/dodsC/glb_nrt_analysis.html?
>     >     >
>     >     > I am hoping to use GrADS to retrieve mixed layer depth
>     data from
>     >     this
>     >     > server, but not real clear on the http/OPeNDAP string I
>     would use to
>     >     > download the file (whether it be ASCII or binary).  If you
>     have done
>     >     > this and could send a sample script or command showing the
>     http
>     >     > line that would be much appreciated.
>     >     >
>     >     > Thanks,
>     >     >
>     >     > Mark
>     >     >
>     >
>



More information about the gradsusr mailing list