[GRASS-dev] what is the meaning of: "Error reading raster data for row 239 of <MASK>"

Moritz Lennert mlennert at club.worldonline.be
Tue Jul 7 09:09:45 PDT 2015


On 2015-07-07 09:45, Moritz Lennert wrote:
> On Sat, 4 Jul 2015 18:50:44 +0100, Glynn Clements
> <glynn at gclements.plus.com> wrote:
>> Moritz Lennert wrote:
>>
>>> The error comes from here:
>>>
>>> raster/get_row.c:142:	G_fatal_error(_("Error reading raster data 
>>> for
> row
>>> %d of <%s>"),
>>>
>>> which is part of the 'read_data_compressed' function.
>>>
>>> read(fcb->data_fd, cmp, readamount) returns 0, while readamount is 
>>> 18.
>>>
>>> I'm not familiar enough with the raster lib to understand what this
>>> implies.
>>
>> The odd thing is that a MASK raster is read using the same functions
>> which are used for reading any other raster.
>>
>> Is the MASK raster itself fine? If you rename it to something other
>> than MASK, can it be read by r.* commands without error?
>
> I've tried r.info, r.stats, r.report, r.univar, r.neighbors, 
> r.series,
> r.mapcalc and all of them work fine on the result of 'g.rename
> MASK,mymask'.

Same for displaying the map in the wxgui.

I don't know how to debug this...

Moritz


More information about the grass-dev mailing list