<div dir="ltr"><div><div><div>Hi David,<br><br></div><div>Is the file name "bin"?<br></div><div><br></div>If the path is correct you might want to compare file size and dimensions. If its a single-precision binary file, you should have 4 bytes per variable per grid point and your file size should be (4 bytes) * (1 variable) * (90 x grid points) * (44 y grid points) * (1 z grid point) = 15840 bytes.<br></div><br></div>Cheers,<br><div><div><br>Ted<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 January 2015 at 13:35, David Stanfel <span dir="ltr"><<a href="mailto:dstanfel@ualberta.ca" target="_blank">dstanfel@ualberta.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello users,<div><br></div><div>I am trying to display a simple .ctl file and I am having some issues. Grads opens the file fine but then gives the following error when trying to display the variable:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d t</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Low Level I/O Error: Read error on data file </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Data file name = /Users/ninjawarrior343/University/Research_Job/grads-2.1.a2/bin </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Error reading 360 bytes at location 0 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Data Request Error: Error for variable 't'</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Error ocurred at column 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">DISPLAY error: Invalid expression </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Expression = t</p></div><div><br></div><div>Here is the .ctl file:</div><div><br></div><div><div>DSET /Users/ninjawarrior343/University/Research_Job/grads-2.1.a2/bin</div><div>UNDEF 1.e-10</div><div>TITLE 6 Months Sample Model Output</div><div>*</div><div>XDEF 90 LINEAR 0.0 4.0 </div><div>*</div><div>YDEF 44 LINEAR -90.0 4.0</div><div>*</div><div>ZDEF 1 LEVELS 1</div><div>*</div><div>TDEF 1 LINEAR MAY1995 1MO</div><div>*</div><div>VARS 1</div><div><br></div><div>t 1 0 t</div><div><br></div><div>ENDVARS</div></div><div><br></div><div>Any help is appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>David</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></div>