Diana Brito wrote: > I'm trying to import the 3b42rt TRMM product by using r.in.bin. > > I've used the follow lines, > > r.inr.in.bin --o -f -h input=2001-1-1.bin output=2001-1-1 north=-16 > south=-57 east=50 west=76 cols=104 rows=197 > > but, always i got the follow error message: > > ADVERTENCIA: File Size 519968 ... Total Bytes 81952
r.in.bin reads raw binary input. E.g. the above command expects the file to contain 197*104*4 = 81952 bytes (197 rows by 104 columns by 4 bytes per value). According to this: http://www.eol.ucar.edu/projects/name/documentation/3B42RT_README The original 3B42RT data consists of a 2880-byte header followed by 3 arrays of 480 rows by 1440 columns, the first two being 2 bytes per value (for a total of 480*1440*2 = 1382400 bytes each) and the third being 1 byte per value (for a total of 480*1440 = 691200 bytes). But given the URL you're using: > url = "....prod_id=3B42RT_daily&action=ASCII+Output" I wouldn't be surprised if the data is being converted to ASCII, in which case r.in.bin would be entirely the wrong tool to import it. -- Glynn Clements <[email protected]> _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
