<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Right, xdfopen. Try the following (note this was made from ncdump
of the file, and it approximates to constant latitude and
longitude):<br>
-----------<br>
DSET
<a class="moz-txt-link-freetext" href="http://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc">http://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc</a><br>
TITLE Example data file from CO-OPS<br>
UNDEF -99999<br>
XDEF nx 53 LINEAR -87.9721 0.0601<br>
YDEF ny 102 LINEAR 41.5845 0.0450<br>
ZDEF sigma 20 LEVELS 0.0000 0.0227 0.0454 0.0681 0.0908 0.1135
0.1362<br>
0.1589 0.1816 0.2043 0.2270 0.2724 0.3405 0.4313 0.5448 0.6810
0.7945<br>
0.8853 0.9534 1.0000<br>
TDEF time 1 LINEAR 00Z15SEP2014 24HR<br>
VARS 11<br>
lon=>long 0 x,y Longitude<br>
lat=>lati 0 x,y Latitude<br>
mask=>mask 0 x,y Land Mask<br>
depth=>bathy 0 x,y Bathymetry<br>
sigma=>sigma 20 z Sigma vertical coordinate<br>
zeta=>zeta 0 x,y,t Free surface<br>
air_u=>air_u 0 x,y,t Easward Air Velocity<br>
air_v=>air_v 0 x,y,t Northward Air Velocity<br>
u=>u 20 x,y,z,t Eastward Water Velocity<br>
v=>v 20 x,y,z,t Northward Water Velocity<br>
temp=>temp 20 x,y,z,t Temperature<br>
ENDVARS<br>
-----------<br>
<br>
<div class="moz-cite-prefix">On 9/16/14 11:20 AM, Philbrick, Herb
wrote:<br>
</div>
<blockquote
cite="mid:B27BA3C2D22CAC4CA575A384FBB996CE3AC6672B@BHW-MBX-01"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks, Jim.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I probably will
need more details. But, first I’ll take a stab at a
GrADS-like CTL file. I presume xdfopen would be the GrADS
command.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Herb
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>
[<a class="moz-txt-link-freetext" href="mailto:gradsusr-bounces@gradsusr.org">mailto:gradsusr-bounces@gradsusr.org</a>]
<b>On Behalf Of </b>James T. Potemra<br>
<b>Sent:</b> Tuesday, September 16, 2014 3:45 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] cannot load CO-OPS Great
Lake NetCDF datasets<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Herb,<br>
<br>
You'll need to generate a data descriptor file for this. Note
that this model output<br>
is on a rectilinear grid (lat/lon) and sigma-coordinate
(vertical), so even with a
<br>
descriptor file you will need to make some approximations. On
the plus side you<br>
should be able to use the template option to get time-series
if needed.<br>
<br>
Jim<br>
<br>
Let me know if you need more details.<o:p></o:p></p>
<div>
<p class="MsoNormal">On 9/16/14 9:27 AM, Philbrick, Herb
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I would like to access CO-OPS Great Lakes
Operational Forecast System, GLOFS, datasets using GrADS.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have never worked with netcdf files. <o:p></o:p></p>
<p class="MsoNormal">Nor have I worked with a THREDDS server.<o:p></o:p></p>
<p class="MsoNormal">I often access NOMADS through its OpenDAP
server using GrADS on my PC. The GrADS command is like<o:p></o:p></p>
<p class="MsoNormal"> <span
style="font-size:8.0pt;font-family:"Courier
New"">
Sdfopen <a moz-do-not-send="true"
href="http://nomads.ncep.noaa.gov:9090/dods/rap/rap20140915/rap_00z">http://nomads.ncep.noaa.gov:9090/dods/rap/rap20140915/rap_00z</a></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have tried the following in GrADS
(grads.exe – opendap enabled (see the PS))<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> Sdfopen
<a moz-do-not-send="true"
href="http://opendap.co-ops.nos.noaa.gov/thredds/wms/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc">http://opendap.co-ops.nos.noaa.gov/thredds/wms/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc</a></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">GrADS returns the following message in
the GrADS console:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">Scanning self-describing file:
<a moz-do-not-send="true"
href="http://opendap.co-ops.nos.noaa.gov/thredds/dodsC">http://opendap.co-ops.nos.noaa.gov/thredds/dodsC</a></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t20z.nc</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">nc_open failure:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">No such file or directory</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New""><a moz-do-not-send="true"
href="http://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc">http://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/LMOFS/MODELS/201409/glofs.lmofs.fields.nowcast.20140915.t19z.nc</a>
does not exist or is not a netCDF file.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">Couldn't ingest SDF metadata.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">If this was an HDF-SDS file, try gradshdf.</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I downloaded the nc file to my PC
c:\grads19\win32\ sub-directory.
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">ga-> sdfopen
glofs.lmofs.fields.nowcast.20140915.t19z.nc</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">Scanning self-describing file:
glofs.lmofs.fields.nowcast.20140915.t19z.nc</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">SDF file has no discernable X coordinate.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.25in"><span
style="font-size:8.0pt;font-family:"Courier
New"">ga-></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">ncdump on the <u>downloaded</u> file DID
obtain sensible information for header, variables values,
etc.<o:p></o:p></p>
<p class="MsoNormal">The <u>downloaded</u> file can be loaded
into Excel using the NetCDF add-in.<o:p></o:p></p>
<p class="MsoNormal"> Hence, the downloaded
file sure seems to be good.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The folks at CO-OPS do not use GrADS and
could not furnish advice.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Can you give me the proper command or
settings to use to access LMOFS datasets?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thanks
in advance,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Herb
Philbrick
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">PS
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">I
am using Grads19 because, ultimately, I output grib-1
files.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">ga-> q config</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Config: v1.9.0-rc1 32-bit little-endian
readline sdf/xdf netcdf dap dap-stn lats</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">athena printim</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Grid Analysis and Display System (GrADS)
Version 1.9.0-rc1</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Copyright (c) 1988-2005 by Brian Doty and IGES</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Center for Ocean-Land-Atmosphere Studies (COLA)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Institute for Global Environment and Society
(IGES)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">This program is distributed WITHOUT ANY
WARRANTY</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">See file COPYRIGHT for more information.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">Built Fri Jan 25 02:30:31 EST 2008 for
i686-pc-cygwin</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">This version of GrADS has been configured with
the following options:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o This is a 32-bit LITTLE ENDIAN machine
version.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o Command line editing (readline) ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o CIRES/CDC (<a moz-do-not-send="true"
href="http://www.cdc.noaa.gov">http://www.cdc.noaa.gov</a>)
SDF/XDF interface ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> Use sdfopen/xdfopen to read NetCDF files.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o DTYPE netcdf is ENABLED; DTYPE hdfsds is
DISABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o OPeNDAP (a.k.a. DODS) gridded data
interface ENABLED. (<a moz-do-not-send="true"
href="http://opendap.org">http://opendap.org</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> This version is configured to access
gridded data on OPeNDAP servers</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> via the sdfopen or xdfopen commands, or
using DTYPE netcdf.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o OPeNDAP (a.k.a. DODS) station data
interface (gadap) ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> This version is configured to access
station data on OPeNDAP servers</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> via the open command.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o PCMDI (<a moz-do-not-send="true"
href="http://www-pcmdi.llnl.gov">http://www-pcmdi.llnl.gov</a>)
LATS interface ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> This version is configured to write GRIB
and NetCDF files.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o DAO (<a moz-do-not-send="true"
href="http://dao.gsfc.nasa.gov">http://dao.gsfc.nasa.gov</a>)
Athena Widget GUI ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o NRL/DAO/PCMDI XA or ImageMagick Image
Output DISABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> o printim command for direct png/gif output
ENABLED.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> (via the GD Library --
<a moz-do-not-send="true" href="http://www.boutell.com/gd">http://www.boutell.com/gd</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Courier
New"">For additional information please consult
<a moz-do-not-send="true"
href="http://grads.iges.org/grads/">http://grads.iges.org/grads/</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">ga-></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gradsusr mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</body>
</html>