Hi,
I'd like to replace all values/categories "0" by real NULL values.
Furthermore I want to do that in a Python script. I tried to do it
with mapcalc in the script but then I loose the category labels:
grass.mapcalc("$out= if($in==0,null(),$in)",
out = "in",
On 02/03/12 15:09, Johannes Radinger wrote:
Hi,
I'd like to replace all values/categories "0" by real NULL values.
Furthermore I want to do that in a Python script. I tried to do it
with mapcalc in the script but then I loose the category labels:
grass.mapcalc("$out= if($in==0,null(),$in)",
> On 02/03/12 15:09, Johannes Radinger wrote:
> > Hi,
> >
> > I'd like to replace all values/categories "0" by real NULL values.
> > Furthermore I want to do that in a Python script. I tried to do it
> > with mapcalc in the script but then I loose the category labels:
> >
> >
> > grass.mapcalc("$o
On 02/03/12 15:56, Johannes Radinger wrote:
Just for my personal interest two questions: 1) What if I want to
replace the category "0" with NULL (not the values 0)
Category 0 = value 0.
Raster values in GRASS are called categorie values.
Or maybe I don't understand what you mean ?
2) What w
Hi,
Original-Nachricht
> Datum: Fri, 02 Mar 2012 20:22:30 +0100
> Von: Moritz Lennert
> An: Johannes Radinger
> CC: grass-user@lists.osgeo.org
> Betreff: Re: [GRASS-user] Replace 0 by NULL in categorial raster map
> On 02/03/12 15:56, Johannes Radinger wrot
On 05/03/12 15:56, Johannes Radinger wrote:
Hi,
Original-Nachricht
Datum: Fri, 02 Mar 2012 20:22:30 +0100
Von: Moritz Lennert
An: Johannes Radinger
CC: grass-user@lists.osgeo.org
Betreff: Re: [GRASS-user] Replace 0 by NULL in categorial raster map
On 02/03/12 15:56