<div dir="ltr"><div>Thanks for your answer Glynn,</div><div><br></div><div>You are totally right, Now i know my script is downloading an ascii file instead a binary file, thats the reason why r.in.bin doesn´t work,</div><div><br></div><div>i´m sorry, I didn't realize about that before.</div><div><br></div><div>thanks!!!!!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-08 0:45 GMT-03:00 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Diana Brito wrote:<br>
<br>
> I'm trying to import the 3b42rt TRMM product by using r.in.bin.<br>
><br>
> I've used the follow lines,<br>
><br>
> r.inr.in.bin --o  -f -h input=2001-1-1.bin output=2001-1-1 north=-16<br>
> south=-57 east=50 west=76 cols=104 rows=197<br>
><br>
> but, always i got the follow error message:<br>
><br>
> ADVERTENCIA: File Size 519968 ... Total Bytes 81952<br>
<br>
</span>r.in.bin reads raw binary input. E.g. the above command expects the<br>
file to contain 197*104*4 = 81952 bytes (197 rows by 104 columns by 4<br>
bytes per value).<br>
<br>
According to this:<br>
<br>
<a href="http://www.eol.ucar.edu/projects/name/documentation/3B42RT_README" target="_blank">http://www.eol.ucar.edu/projects/name/documentation/3B42RT_README</a><br>
<br>
The original 3B42RT data consists of a 2880-byte header followed by 3<br>
arrays of 480 rows by 1440 columns, the first two being 2 bytes per<br>
value (for a total of 480*1440*2 = 1382400 bytes each) and the third<br>
being 1 byte per value (for a total of 480*1440 = 691200 bytes).<br>
<br>
But given the URL you're using:<br>
<br>
> url = "....prod_id=3B42RT_daily&action=ASCII+Output"<br>
<br>
I wouldn't be surprised if the data is being converted to ASCII, in<br>
which case r.in.bin would be entirely the wrong tool to import it.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Diana Marcela Brito Hoyos<div>Bióloga</div><div><br></div><div><font size="1">"</font><i style="font-size:12.8000001907349px"><font size="1">El bosque sería muy triste si solo cantaran los pájaros que mejor lo hacen"</font></i></div></div></div></div></div>
</div>