<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Noelia,<br>
<br>
I think this is the same problem you posted before. If you change
the units on latitude and longitude, sdfopen should work.<br>
The units should be "degrees_north" and "degrees_east".<br>
<br>
Jim<br>
<br>
<div class="moz-cite-prefix">On 4/29/14, 1:49 AM, Noelia otero
wrote:<br>
</div>
<blockquote
cite="mid:CAG7o=Lu8q=VKeskbBJZPcv6RRkZRoNnLbhxO7DBLc_OebJ9Row@mail.gmail.com"
type="cite">
<div dir="ltr">Hi ,
<div><br>
</div>
<div>I am having some problems to create and open a descriptor
file. I have already read post about that, but I can't find
the problem.</div>
<div><br>
</div>
<div>This is the information from ncdump -h :</div>
<div><br>
</div>
<div>
<div>dimensions:</div>
<div><span class="" style="white-space:pre"> </span>longitude
= 144 ;</div>
<div><span class="" style="white-space:pre"> </span>latitude
= 73 ;</div>
<div><span class="" style="white-space:pre"> </span>Time = 1
;</div>
<div>variables:</div>
<div><span class="" style="white-space:pre"> </span>double
longitude(longitude) ;</div>
<div><span class="" style="white-space:pre"> </span>longitude:units
= "degreesE" ;</div>
<div><span class="" style="white-space:pre"> </span>double
latitude(latitude) ;</div>
<div><span class="" style="white-space:pre"> </span>latitude:units
= "degreesN" ;</div>
<div><span class="" style="white-space:pre"> </span>double
Time(Time) ;</div>
<div><span class="" style="white-space:pre"> </span>Time:units
= "month" ;</div>
<div><span class="" style="white-space:pre"> </span>float
north(Time, latitude, longitude) ;</div>
<div><span class="" style="white-space:pre"> </span>north:units
= "days" ;</div>
<div><span class="" style="white-space:pre"> </span>north:missing_value
= -999.f ;</div>
<div><span class="" style="white-space:pre"> </span>north:long_name
= "NorthType" ;</div>
<div>}</div>
</div>
<div><br>
</div>
<div>I tried to open the file with sdfopen, and I got the error:</div>
<div>
<div>Scanning self-describing file: <a moz-do-not-send="true"
href="http://file1.nc">file1.nc</a></div>
<div>gadsdf: SDF file has no discernable X coordinate.</div>
</div>
<div><br>
</div>
<div>then, I created the data descriptor like:</div>
<div>
<div>DSET <a moz-do-not-send="true" href="http://file1.nc">file1.nc</a></div>
<div>UNDEF -999</div>
<div>TITLE cwt</div>
<div>XDEF 144 LINEAR 0.0 2.5</div>
<div>YDEF 73 LINEAR -90 2.5</div>
<div>TDEF 1 LINEAR jan 1961 1Mo</div>
<div>OPTIONS yrev</div>
<div><br>
</div>
<div>VARS 1</div>
<div>north 0 99 north</div>
<div>ENDVARS</div>
</div>
<div>
<br>
</div>
<div>and the problem is still happening.. , now the message is:</div>
<div>
<div>Scanning Descriptor File: file1.ctl</div>
<div>gadxdf error: Missing or invalid dimension size.</div>
<div> --> The invalid description file record is: </div>
<div> --> xdef 144 linear 0.0 2.5</div>
<div> The data file was not opened.</div>
</div>
<div><br>
</div>
<div>anyone could give an idea?? I don't know how fix it.</div>
<div><br>
</div>
<div>Thanks in advance</div>
<div>
<br>
</div>
<div>Cheers,</div>
<div>Noelia.</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</body>
</html>