-Add to your control file DTYPE netcdf<br>-In your VAR entries you need to include the number of vertical levels at which the arrays are valid, and the list of dimensions by which each array is indexed.  For example, your epflux_vert array, according to the header information you specified, is indexed by t, z, y and is valid at17 levels, so the entry should look like<br>
epflux_vert=&gt;whatever 17 t,z,y &quot;description&quot;<br><br>Where you need to use the =&gt; to rename the array to something that conforms to Grads standards (underscores are not allowed).  It can be anything alphanumeric in which the first character is a letter.  The description can be whatever string you want.<br>
<br>See if that works.  See the appropriate section of this page (<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#VARS">http://www.iges.org/grads/gadoc/descriptorfile.html#VARS</a>) if you continue to have difficulties with the variable entries.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 3:49 PM, Eduardo Agosta Scarel <span dir="ltr">&lt;<a href="mailto:eduardo.agosta@gmail.com" target="_blank">eduardo.agosta@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello everybody!</div><div><br></div><div>I am trying to read netcdf data (EP flux) that has the header info pasted below. If I use the sdfopen directly it does not open, prompting the error message: SDF file has no discernible X coordinate.</div>

<div><br></div><div>I am using Grads for Windows. I tried to use xdfopen. Now the problem I have is that it cannot recongnize the XVAR dimension when using a simple description file as the one below.</div><div><br></div>
<div>
<div>DSET ^<a href="http://epflux_monthly_ncep.nc" target="_blank">epflux_monthly_ncep.nc</a></div><div>TITLE This is a sample </div><div>UNDEF 99999.0</div><div>XDEF 1 levels 0</div><div>YDEF 73 LINEAR -90.0 2.5</div><div>
TDEF 768 LINEAR 0Z01JAN1948 1DY</div>
<div>VARS 2</div><div>epflux_vert epflux_ver</div><div>epflux_horz epflux_horz</div><div>ENDVARS</div></div><div><br></div><div>Can someone help me with the description file to open using the xdopen command?</div><div><br>

</div><div>Thanks.</div><div><br></div><div>Eduardo.</div><div><br></div><div><br></div><div>-----------------</div><div>Header INFO</div><div>---------------</div><div><div><font size="3">NcFileName<span style="white-space:pre-wrap">        </span>^<a href="http://epflux_monthly_ncep.nc" target="_blank">epflux_monthly_ncep.nc</a><span style="white-space:pre-wrap">                                                </span></font></div>

<div><font size="3">NcFileType<span style="white-space:pre-wrap">        </span>Unknown<span style="white-space:pre-wrap">                                                </span></font></div><div><span style="white-space:pre-wrap"><font size="3">                                </font></span></div>

<div><font size="3">Global Attributes<span style="white-space:pre-wrap">                                                        </span></font></div><div><font size="3">Name<span style="white-space:pre-wrap">        </span>NcType<span style="white-space:pre-wrap">        </span>Value<span style="white-space:pre-wrap">                                        </span></font></div>

<div><font size="3">Conventions<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;COARDS&quot;<span style="white-space:pre-wrap">                                        </span></font></div>
<div><font size="3">description<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;EP flux vector from NCEP reanalysis (monthly mean)&quot;<span style="white-space:pre-wrap">                                        </span></font></div>

<div><font size="3">author<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Ingo Wohltmann, Alfred Wegener Institute&quot;<span style="white-space:pre-wrap">                                        </span></font></div>

<div><font size="3">date<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;16-Mar-2012 19:45:31&quot;<span style="white-space:pre-wrap">                                        </span></font></div>
<div><font size="3">history<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Version 1.0&quot;<span style="white-space:pre-wrap">                                        </span></font></div>
<div><span style="white-space:pre-wrap"><font size="3">                                                        </font></span></div><div><font size="3">Dimensions<span style="white-space:pre-wrap">                                                        </span></font></div><div><font size="3">Name<span style="white-space:pre-wrap">        </span>Excel Name<span style="white-space:pre-wrap">        </span>Value<span style="white-space:pre-wrap">                                        </span></font></div>

<div><font size="3">time<span style="white-space:pre-wrap">        </span>time<span style="white-space:pre-wrap">        </span>768<span style="white-space:pre-wrap">                                        </span></font></div>
<div><font size="3">levels<span style="white-space:pre-wrap">        </span>levels<span style="white-space:pre-wrap">        </span>17<span style="white-space:pre-wrap">                                        </span></font></div>
<div><font size="3">latitude<span style="white-space:pre-wrap">        </span>latitude<span style="white-space:pre-wrap">        </span>73<span style="white-space:pre-wrap">                                        </span></font></div>
<div><span style="white-space:pre-wrap"><font size="3">                                                        </font></span></div><div><font size="3">Variables<span style="white-space:pre-wrap">                                                        </span></font></div><div><font size="3">Name<span style="white-space:pre-wrap">        </span>Excel Name<span style="white-space:pre-wrap">        </span>NcType<span style="white-space:pre-wrap">        </span>Dimension<span style="white-space:pre-wrap">        </span>Attribute Name<span style="white-space:pre-wrap">        </span>Attribute NcType<span style="white-space:pre-wrap">        </span>Attribute Value<span style="white-space:pre-wrap">        </span>NcStorageType</font></div>

<div><font size="3">time<span style="white-space:pre-wrap">        </span>time<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>time<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;days since 1900-01-01 00:00:00&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Days since 1st January 1900 00:00 GMT&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">levels<span style="white-space:pre-wrap">        </span>levels<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>levels<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;hPa&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Pressure (hPa)&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">latitude<span style="white-space:pre-wrap">        </span>latitude<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>latitude<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;degrees_north&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Latitude (degrees north)&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">year<span style="white-space:pre-wrap">        </span>year<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>time<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;n/a&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Year of mean&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">month<span style="white-space:pre-wrap">        </span>month<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>time<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;n/a&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;Month of mean&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">epflux_vert<span style="white-space:pre-wrap">        </span>epflux_vert<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>time x levels x latitude<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;kg/s2&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;EP flux vertical component (kg/s2)&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><font size="3">epflux_horz<span style="white-space:pre-wrap">        </span>epflux_horz<span style="white-space:pre-wrap">        </span>NC_DOUBLE<span style="white-space:pre-wrap">        </span>time x levels x latitude<span style="white-space:pre-wrap">        </span>units<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;kg/s2&quot;<span style="white-space:pre-wrap">        </span>NC_DOUBLE</font></div>

<div><font size="3">-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>-<span style="white-space:pre-wrap">        </span>long_name<span style="white-space:pre-wrap">        </span>NC_CHAR<span style="white-space:pre-wrap">        </span>&quot;EP flux horizontal component (kg/s2)&quot;<span style="white-space:pre-wrap">        </span>-</font></div>

<div><span style="white-space:pre-wrap"><font size="3">                                                        </font></span></div><div><font size="3">Data<span style="white-space:pre-wrap">                                                        </span></font></div></div><div><br></div>

<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>