<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Use these entries in your descriptor instead:&nbsp;</div><div><br></div><div>XDEF time 1 levels -98</div><div>YDEF time 1 levels 35&nbsp;</div><div><br></div><div>It doesn't matter what dimension name you use if you provide all the axis metadata in your descriptor file.&nbsp;</div><div>--Jennifer</div><br><div><div>On Aug 29, 2010, at 9:39 PM, Thomas W. Collow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Jim<br><br>Thanks for the response. &nbsp;Actually there is no lat and lon dimension specified in the header. &nbsp;&nbsp;The only dimensions are depth and time. &nbsp;Here is some of the ncdump output. &nbsp;I don't know if what I'm trying to do is possible with only the two provided dimensions. &nbsp;<br><br> ncdump -c file.cdf<br>netcdf file {<br>dimensions:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time = UNLIMITED ; // (24 currently)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;depth = 8 ;<br>variables:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int base_time ;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base_time:string = "31-Jul-2010,18:07:00 GMT" ;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base_time:long_name = "Base time in Epoch" ;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base_time:units = "seconds since 1970-1-1 0:00:00 0:00" ;<br><br>and so on (there are several variables including the two I'm interested in, watcont_W and watcont_E)<br><br>Thanks for your help<br><br>Tom<br><br><br><br>-----Original Message-----<br><br><blockquote type="cite">Date: Sat Aug 28 15:51:15 EDT 2010<br></blockquote><blockquote type="cite">From: "James T. Potemra" &lt;<a href="mailto:jimp@hawaii.edu">jimp@hawaii.edu</a>&gt;<br></blockquote><blockquote type="cite">Subject: Re: [gradsusr] xdfopen cdf file dimension problem/question<br></blockquote><blockquote type="cite">To: "GrADS Users Forum" &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tom:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Make sure that the dimensions in your netcdf file are actually "lon" and <br></blockquote><blockquote type="cite">"lat". &nbsp;If not (e.g., they are latitude and longitude) you'll need to <br></blockquote><blockquote type="cite">put that in the CTL file as XDEF/YDEF. &nbsp;Maybe providing the output from <br></blockquote><blockquote type="cite">"ncdump" on your cdf file would help see what's going on.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Jim<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thomas W. Collow wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">Hello, I am having an issue with displaying a .cdf file using GrADS. &nbsp;To keep it simple I will refer to the file as ?file.cdf.? The file is a time series of soil water content at different depths.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The header of the file contains only two dimensions, depth and time. &nbsp;I want to read this file using GrADS. &nbsp;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This is what happens when I use sdfopen:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt;sdfopen &nbsp;file.cdf<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Scanning self-describing file file.cdf<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SDF file has no discernable X coordinate.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My next approach is to use xdfopen and create a control file using information in the header and to specify the latitude and longitude. &nbsp;&nbsp;Here is my control file, call it ?control?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">DSET file.cdf<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TITLE Data<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">UNDEF -9999<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">XDEF lon 01 levels -98 <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">YDEF lat 01 levels 35 <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TDEF time 24 18:07Z31jul2010 1hr<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ZDEF depth 8 levels 5 15 25 35 60 85 125 175<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">VARS 2<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">watcont_W=&gt;smw 8 99 water content west<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">watcont_E=&gt;sme 8 99 water content east<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ENDVARS<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Now I do xdfopen control and get this error<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ga-&gt; xdfopen control<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Scanning Descriptor File: &nbsp;control<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Alleged lon dimension (from YDEF) is not an SDF dimension. &nbsp;Cannot continue.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Lon dimension name is:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">lat<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Alleged lat dimension (from XDEF) is not an SDF dimension. &nbsp;Cannot continue.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Lat dimension name is:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">lon<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SDF file file.cdf was not successfully opened &amp; parsed.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am trying to specify a specific latitude and longitude since I know what it is. &nbsp;It is just not a dimension in the cdf file header. &nbsp;Any suggestions on how I can fix this problem or is this file not able to be read by GrADS?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Tom<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">gradsusr mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">gradsusr mailing list<br></blockquote><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; 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">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></body></html>