Another bug in classification functions

Angus Carr acarr at
Sun Nov 14 02:10:17 EST 1999

I think I have found another bug in the imagery classification programs.

This bug makes i.maxlik die.

in src/imagery/i.maxlik/cmd/main.c, line 85, the following line fails:
  if (G_put_c_raster_row (cellfd[band], cell[band]) < 0) 
with a message about that fd being opened for reading.
it should read 
  if (G_get_c_raster_row (cellfd[band], cell[band],row) < 0)
which reads in the data into an array of rows for manipulation through the

Angus Carr.

More information about the grass-user mailing list