[GRASS-dev] Re: [GRASS-user] low radiance values after i.atcor and i.topo.corr

Glynn Clements glynn at gclements.plus.com
Mon Jun 23 17:54:36 EDT 2008


Markus Neteler wrote:

> > I initially suspected that the test should have been against zero, but
> > in retrospect, it may have been completely absent (i.e. the change was
> > made on the assumption that zero represented null when it actually
> > represented zero).
> >
> > Ultimatly, you would need to look at a pre-5.x version (or to actually
> > understand the code) in order to determine what it should be doing.
> 
> here is the 4.3 code:
> grass4.3src/src/imagery/i.smap/cmd/shapiro/write_img.c

>         for (col = 0; col < ncols; col++)
>         {
>                 class = (int)img[row][col];
>                 files->cellbuf[col] = (CELL)S->ClassSig[class].classnum;
>         }

Yep; the test should never have been added (zero doesn't signify
null), so I have removed it.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list