Hai,<br><br>Thank you all for the reply. I got the problem solved.<br><br>I changed the descriptor file as given below.<br><br>*****************************************************<br>DSET ^<a href="http://evapr_oaflux_1958.nc">evapr_oaflux_1958.nc</a><br>
XDEF lon 360 linear 0.5 1.0<br>YDEF lat 180 linear -89.5 1.0<br>*****************************************************<br>Now I can open and display the variables.<br><br>*******************************************************<br>
ga-&gt; xdfopen evapr_oaflux_1958.ctl<br>Scanning Descriptor File:  evapr_oaflux_1958.ctl<br>SDF file <a href="http://evapr_oaflux_1958.nc">evapr_oaflux_1958.nc</a> is open as file 1<br>LON set to 0 360 <br>LAT set to -89.5 89.5 <br>
LEV set to 0 0 <br>Time values set: 1:1:31:10 1:1:31:10 <br>E set to 1 1 <br>*******************************************************<br>I am attaching the NetCDF file. <br><br>Thanking You,<br>sudev<br><br><div class="gmail_quote">
On Thu, Dec 16, 2010 at 10:21 PM, Jennifer Adams <span dir="ltr">&lt;<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">GrADS can only manage one grid per descriptor file. You must write multiple descriptors to describe all the variables in a netcdf file if they do not all share the same coordinate axes. <div><br></div><div>As for the problem described in the original post, you need an extra keyword in your XDEF entry when using xdfopen, and that is the name of a coordinate variable. E.g. </div>
<div><br></div><div>xdef lon 360 linear 0.5 1</div><div><br>The keyword (&#39;lon&#39; in my example) can be any coordinate name, as long as you are providing a complete axis definition. Please look at the docs for xdfopen and descriptors for self-describing files. </div>
<div><br></div><div>--Jennifer</div><div> <br><div><div><div><div></div><div class="h5"><br><div><div>On Dec 16, 2010, at 7:20 AM, Edward wrote:</div><br><blockquote type="cite">hi,<br><br>it seems common to encounter this problem. Does anyone has simple way to do within Grads?  Can Grads solve this problem? or does anybody know how to describe two grid in ctl (that&#39;s common for model results based on C-grid)?<br>
 <br>Dawn<br><br><div class="gmail_quote">On Thu, Dec 16, 2010 at 12:51 PM, Muhammad Rahiz <span dir="ltr">&lt;<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk" target="_blank">muhammad.rahiz@ouce.ox.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br> <br> I have this error recently. For my file, there were two problems.<br> 1 - each variable in my netcdf file has two grid descriptions.<br>
 2 - missing &#39;axis&#39; attribute for the coordinate variables.<br> <br> I can&#39;t remember what I did but I think I changed the grid description and regridded the data, both in CDO. If you could attach the sample nc file, I may be able to test it.<br>
<font color="#888888"> <br> <br> -- <br> Muhammad Rahiz<br> Researcher &amp; DPhil Candidate (Climate Systems &amp; Policy)<br> School of Geography &amp; the Environment<br> University of Oxford</font><div><div></div><div>
<br> <br> On Thu, 16 Dec 2010, sudev das M P wrote:<br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hai All,<br> <br> I have a NetCDF data file &quot;<a href="http://evapr_oaflux_1958.nc" target="_blank">evapr_oaflux_1958.nc</a>&quot;.<br>
 <br> I got it from the following link:<br> <a href="http://dss.ucar.edu/dsszone/ds260.1/index.html?g=2#MONTHLY-TURBULENCE" target="_blank">http://dss.ucar.edu/dsszone/ds260.1/index.html?g=2#MONTHLY-TURBULENCE</a><br> <br>
 While I  am trying to open this file in GrADS I am getting following message.<br> <br> *****************************************************************<br> ga-&gt; sdfopen <a href="http://evapr_oaflux_1958.nc" target="_blank">evapr_oaflux_1958.nc</a><br>
 Scanning self-describing file:  <a href="http://evapr_oaflux_1958.nc" target="_blank">evapr_oaflux_1958.nc</a><br> gadsdf: SDF file has no discernable X coordinate.<br> *****************************************************************<br>
 Since it is showing &quot;SDF file has no discernable X coordinate&quot;, I made a descriptor file<br> <br> and tried to open it using &quot;xdfopen&quot; command.<br> <br> *****************************************************<br>
 DSET ^<a href="http://evapr_oaflux_1958.nc" target="_blank">evapr_oaflux_1958.nc</a><br> XDEF 360 linear 0.5 1.0<br> ******************************************************<br> <br> This time too I got an error message.<br>
 <br> ************************************************************<br> ga-&gt; xdfopen evapr_oaflux_1958.ctl<br> Scanning Descriptor File:  evapr_oaflux_1958.ctl<br> gadxdf error: Missing or invalid dimension size.<br>   --&gt; The invalid description file record is:<br>
   --&gt; xdef 360 linear 0.5 1.0<br>   The data file was not opened.<br> *************************************************************<br> <br> Please tell me how to fix this problem. Hope someone will<br> <br> give me a reply.<br>
 <br> Thanking You,<br> Sudev.<br> <br> <br> <br> </blockquote> </div></div><br>_______________________________________________<br> gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">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>gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote>
</div><br></div></div><font color="#888888"><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></div></span> </div><br></font></div></div></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>