Eric Goddard wrote:

> Hi, I need to do the same thing to some WV-2 imagery. I'm using the command
> 
> grass.mapcalc("$output = if($input_rast>1.0, 1.0, $input_rast)", 
> output=wv2_out, input_rast=wv2_in)
> 
> from python (input and output names
> changed for simplicity) but instead of replacing the values greater
> than 1 with 1, it replaces them with NaNs.  Is there something wrong
> with my mapcalc expession?

No.

Is there anything unusual about the actual map names? Names containing
any of the characters

        ^ # ( ) [ ] + - % > < ! & | ? : ; ~

need to quoted.

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to