<div dir="ltr">Dear Ricardo,<div>I&#39;ve checked the size of both the IR and VIS imagery files.</div><div>They are not in the same size. (313601 for IR vs 313643 for VIS)</div><div>However, I did display the VIS images successfully after adding the option entry you mentioned into the descriptor file.</div>
<div>Really appreciate your help.</div><div>Thanks a lot.</div><div>                                 Charles</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/18 Ricardo Hallak <span dir="ltr">&lt;<a href="mailto:ricardo.hallak@iag.usp.br" target="_blank">ricardo.hallak@iag.usp.br</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hi,<br><br>maybe your file has some problem in its last line of 560 bytes (corrupt data or lacking of data).<br>
However, the problem could be in your procedure in taking the header away.<br>Your .ctl says that the image has 560 x 560 pixels of 1 byte each = 313600 bytes.<br>Location 313040 + 560 bytes = 313600 bytes, which indicates that GrADS was looking for the last 560 bytes (in relation to what your .ctl says) when the problem was detected.<br>
If the .ctl works well with the IR image, it should work with the VIS images as well, which is something (kind of) strange if not.<br>Please, check if the VIS images have the same sizes that the IR images (313600 bytes in size, I guess) in the disc system. They should have.<br>
Other test to try:<br>Instead of taking away (manually I suppose) the header of files, you can use this optional entry for your control file:<br>THEADER lenght_of_header<br>Doing this way, the header will automatically be skipped by GrADS.<br>
<br>Hope this helps or gives you some other idea to solve the problem,<br>Ricardo<br><br><hr><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<b>De: </b>&quot;Charles Tai&quot; &lt;<a href="mailto:zhong2101@gmail.com" target="_blank">zhong2101@gmail.com</a>&gt;<br><b>Para: </b><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><b>Enviadas: </b>Sexta-feira, 15 de Novembro de 2013 2:47:39<br>
<b>Assunto: </b>[gradsusr] An error occurred while displaying satellite data<div><div class="h5"><br><br><div dir="ltr">Dear GrADS users,<div>I&#39;m trying to display satellite images of pgm format with GrADS.</div><div>
These are what I did for that:</div><div>1. Take away the header of pgm file to prevent of the geographic shifting.</div>
<div>2. Write a description file (as the attached file) for GrADS.</div><div>These procedures performed well in displaying IR images, but did not work for vis images.</div><div>Here are the error message I got from it:</div>

<div>---------------------------------------------------------------------</div><div>Low Level I/O Error:  Read error on data file </div><div>  Data file name = ./sat/MTS212%m2%d2%h2VIS.pgm </div><div>  Error reading 560 bytes at location 313040 </div>

<div>Data Request Error:  Error for variable &#39;mtsat&#39;</div><div>  Error ocurred at column 1</div><div>DISPLAY error:  Invalid expression </div><div>  Expression = mtsat</div><div>----------------------------------------------------------------------</div>

<div>Does anyone have similar experiences like this?</div><div>I would appreciate any help.  </div></div>
<br></div></div>_______________________________________________<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><br></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>