I ran into the same problem last week. I temporarily solved the problem by
modifying the source-code of r.in.sunrast, in a sence that it only
works with an odd number of bytes in one row. When I have an even number,
I will have to modify the code again. Maybe in grass4.1 the bug is solved.Ronald Wiemer
Archis centre of expertise
Amersfoort
The Netherlands
The problem arises from the fact that ALL sun rasterfiles have null
padding to extend odd number of bytes in one row to an even number.
The 4.0 version of r.in.sunrast does not know this, but the problem
has been fixed in 4.1
Bob Courtney
Atlantic Geoscience Centre