Hi Deniz,<br><br>you don't nead a ctl-file to open a netcdf-file in grads. If your file follows the COARDS-standard, then you can open it with 'sdfopen <a href="http://ures.nc">ures.nc</a>'. If grads won't recognise it, you might want to try an older grads-version. We had some problems here with grads 2.0 and netcdf.<br>
<br>If grads still won't open your file, you can write a ctl-file and try to open that with the command 'xdfopen'. The ctl-file looks a bit different from standard ctl-files, look here:<br><a href="http://www.iges.org/grads/gadoc/gradcomdxdfopen.html">http://www.iges.org/grads/gadoc/gradcomdxdfopen.html</a><br>
<br>Then, you would need the output from ncdump in order to know what is inside the netcdf-file. Alternatively you can use the climate data operators (CDO) with the command "cdo sinfo <a href="http://ures.nc">ures.nc</a>".<br>
Or in matlab, if you have the mexnc-package installed, you read the information with <br>info=nc_info('<a href="http://ures.nc">ures.nc</a>')<br>Then you can access all details in info.<br><br>Finally, if it is only you who will use the data, it might be simpler to write binary output in matlab and use a standard ctl.<br>
<br>Kind regards from Stockholm,<br>Heiner<br><br><br><div class="gmail_quote">On Mon, Nov 8, 2010 at 10:11 AM, Deniz Demirhan Bari <span dir="ltr"><<a href="mailto:bari@iap-kborn.de">bari@iap-kborn.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US">Dear
Grads users, </span></p>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US">I
have calculated residual wind components in MATLAB and saved them in netCDF
file. Now I want to read them in grads but I cannot create a netcdf control
file.</span><span style="font-size: 11pt;" lang="EN-US"></span></p>
<pre><span lang="EN-US">I tried to get the output of ncdump but my computer doesn’t recognize ncdump although I installed it. </span><span lang="EN-US"></span></pre><pre><span lang="EN-US">I am using the latest version of Grads on a Suse Linux computer. </span><span lang="EN-US"></span></pre>
<pre><span lang="EN-US">My attempt to create a ctl file is below: </span><span lang="EN-US"></span></pre>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">*</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">DSET
^<a href="http://ures.nc" target="_blank">ures.nc</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">DTYPE
netCDF</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">XDEF
96 LINEAR 0.000000 3.750000</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">YDEF
48 LEVELS -87.159 -83.479 -79.777 -76.070 -72.362 -68.652</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
-64.942 -61.232 -57.521 -53.810 -50.099 -46.389</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
-42.678 -38.967 -35.256 -31.545 -27.833 -24.122</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
-20.411 -16.700 -12.989 -9.278 -5.567 -1.856</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
1.856 5.567 9.278 12.989 16.700 20.411</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
24.122 27.833 31.545 35.256 38.967 42.678</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
46.389 50.099 53.810 57.521 61.232 64.942</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">
68.652 72.362 76.070 79.777 83.479 87.159</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">ZDEF
114 LINEAR 1 1</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">TDEF
1 LINEAR 00:00Z00jan0000 1mn</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">OPTIONS
yrev</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">UNDEF
-9e+33</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">VARS
1</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">ures
114 1,100 ures</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">ENDVARS</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">* </span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">Thanks
in advance</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;" lang="EN-US">Deniz
DEMIRHAN BARI</span></p>
<p><span style="font-size: 10pt;">Leibniz-Institut
für Atmosphärenphysik e.V.<br>
an der Universität Rostock<br>
Schlossstraße 6<br>
18225 Kühlungsborn</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt;"> </span></p>
</div>
</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>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/~heiner/">www.misu.su.se/~heiner/</a><br>