Re: [GRASS-dev] dealing with null values in rasters only within mask

2019-06-28 Thread Markus Metz
Hi Moritz, On Fri, Jun 28, 2019 at 11:56 AM Moritz Lennert < mlenn...@club.worldonline.be> wrote: > > On 28/06/19 11:10, Stefan Blumentrath wrote: > > Hi Moritz, > > > > Did you consider r.stats -N for checking for NULL values within the masked area, like: > > r.stats -N input=tile,MASK > > if

Re: [GRASS-dev] dealing with null values in rasters only within mask

2019-06-28 Thread Moritz Lennert
On 28/06/19 11:10, Stefan Blumentrath wrote: Hi Moritz, Did you consider r.stats -N for checking for NULL values within the masked area, like: r.stats -N input=tile,MASK if there is *|1 in the output you have NULL cells in the tile... Nice trick, didn't actually know about the -N flag...

Re: [GRASS-dev] dealing with null values in rasters only within mask

2019-06-28 Thread Ken Mankoff
Hi Moritz, More generally from Stefan's answer: 1) MASK is a raster that you can use is your r.mapcalc expressions 2) A two-step process where everything is filled, and then the parts outside the mask are re-nulled? -k. ___ grass-dev mailing list

Re: [GRASS-dev] dealing with null values in rasters only within mask

2019-06-28 Thread Stefan Blumentrath
Hi Moritz, Did you consider r.stats -N for checking for NULL values within the masked area, like: r.stats -N input=tile,MASK if there is *|1 in the output you have NULL cells in the tile... For filling NULLs with a given value you could do: r.mapcalc

[GRASS-dev] dealing with null values in rasters only within mask

2019-06-28 Thread Moritz Lennert
Hi to all, As a followup of some recent discussions concerning the handling of null values, I have a fundamental issue, and would like some feedback: I am working with irregular tiles of orthoimages. Each tile corresponds to the part of a large image mosaic that comes from a particular take.