<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Luis,<div><br></div><div>the 5th argument is the data resolution, i.e. the incremental value, so if your x grid is 2 degrees, then your line should look like this</div><div><br></div><div><blockquote type="cite">xdef 97 linear -84.120000 2.00</blockquote></div><div><br></div><div><br></div><div>Your y increment is set to 2 degrees, so I am assuming your data resolution is 2x2 degrees.</div><div><br></div><div>Here is the documentation: </div><div><br></div><div><p><b>XDEF</b> <i>xnum mapping
<additional arguments></i> </p>
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#TOP" class="item9">back
to top</a>
<p> This entry defines the grid point values for the X dimension,
or longitude. The first argument, <i>xnum</i>, specifies the number of
grid points in the X direction. <i>xnum</i> must be an integer >= 1. <i>mapping</i>
defines the method by which longitudes are assigned to X grid points.
There are two options for <i>mapping</i>:
</p><ul>
LINEAR Linear mapping <br>
LEVELS Longitudes specified individually
</ul><p> The LINEAR mapping method requires two additional arguments: <i>start</i>
and <i>increment</i>. <i>start</i> is a floating point value that indicates
the longitude at grid point X=1. Negative values indicate western longitudes.
<i>increment</i> is the spacing between grid point values, given as a
positive floating point value.
</p><p> The LEVELS mapping method requires one additional argument, <i>value-list</i>,
which explicitly specifies the longitude value for each grid point. <i>value-list</i>
should contain <i>xnum</i> floating point values. It may continue into
the next record in the descriptor file, but note that records may not
have more than 255 characters. There must be at least 2 levels in <i>value-list</i>;
otherwise use the LINEAR method.
</p><p> Here are some examples:
</p><ul>
<table class="plaintext" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="6%">XDEF</td>
<td width="4%" align="right">144</td>
<td width="11%" align="center">LINEAR</td>
<td width="79%">0.0 2.5</td>
</tr>
<tr>
<td>XDEF</td>
<td align="right">72</td>
<td align="center">LINEAR</td>
<td>0.0 5.0 </td>
</tr>
<tr>
<td>XDEF</td>
<td align="right">12</td>
<td align="center"> LEVELS</td>
<td>0 30 60 90 120 150 180 210 240 270 300 330 </td>
</tr>
<tr>
<td>XDEF</td>
<td align="right">12</td>
<td align="center"> LEVELS</td>
<td>15 45 75 105 135 165 195 225 255 285 315 345</td></tr></tbody></table></ul><div><br></div></div><div><br></div><div><span class="Apple-style-span" style="font-size: 14px; ">Regards,</span></div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div><div><div><div><br></div><div>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div>Director of Meteorological Operations</div><div>CustomWeather, Inc.</div><div>San Francisco, California, USA</div><div><br></div><div>"Taking the World by Storm!"</div><div><br></div><div><a href="http://www.customweather.com">http://www.customweather.com</a></div><div><a href="http://www.myforecast.com">http://www.myforecast.com</a></div><div><a href="http://www.1stweather.com">http://www.1stweather.com</a></div><div><br></div><div>cell: 415-794-0411</div><div>work: 415-777-3566</div><div>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a></div></div></div></div></div></span>
</div>
<br><div><div>On Nov 17, 2009, at 11/17/09 - 2:07 PM, luis blacutt wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Grads users<br>I'm doing my first ctl file, it will have two variables, so far I have the following commands:<br><br>dset /home/lucho/Desktop/GlueNC/bolbia.pag%x1%mc.%.nc<br>options template<br>undef 9.999E+20<br>
title baseline 60-90<br>*produced by LFA<br>dtype netcdf<br>options yrev<br>ydef 82 linear -33.640000 2.0000<br>xdef 97 linear -84.120000 -41.880000<br>tdef 1 linear 00Z01jul1961 1mo<br>zdef 1 linear 1 1<br>vars 2<br>total_precipita 0 216,1,0 **<br>
temperature_at_ 0 216,1,0 **<br>ENDVARS<br><br>When I try to run it, it gives me the following error message<br><br>Scanning description file: baseline.ctl<br>Open Error: Missing or invalid dimension increment value<br>
--> The invalid description file record is: <br> --> xdef 97 linear -84.120000 -41.880000<br> The data file was not opened. <br><br>MyI checked by creating a grib file and those are the right numbers, the domain is for Southamerica. What am I missing?<br>
Regards<br>Luis<br>
</blockquote></div><br></div></body></html>