Andreas,
>it turns out that all pixel values with 255 are now nodata values ;-( Is
>there an option so that my 255 values are not turned into nodata? I
>tested with the --NoDataValue option (e.g. 99 - which I don't use in the
>image), but it seems to be ignored. For me it is important that blac
Hi Simen,
<> means not - same as !=
Andreas
Am 2014-11-19 15:09, schrieb Simen Langseth:
I saw the symbol <> first time in gdal calc what is meaning of it?
Thanks
On Wed, Nov 19, 2014 at 10:21 PM, Even Rouault
wrote:
Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit :
Hi Eve
I saw the symbol <> first time in gdal calc what is meaning of it?
Thanks
On Wed, Nov 19, 2014 at 10:21 PM, Even Rouault
wrote:
> Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit :
> > Hi Even,
> >
> > Thank you for trying to help. Unfortunately, the --overwrite option does
> > no
oh - sorry. This helps.
Correct syntax is:
gdal_calc.py -A test.tif --overwrite --NoDataValue=99
--outfile=testcalc.tif --calc="(A==249)*255+(A<>249)*A"
Thanks a lot!
Andreas
Am 2014-11-19 14:21, schrieb Even Rouault:
Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit :
Hi Even
Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit :
> Hi Even,
>
> Thank you for trying to help. Unfortunately, the --overwrite option does
> not help.
>
> I have a very small test file at http://webgis.uster.ch/temp/test.tif
>
> I used the following options:
>
> gdal_calc.py -A te
Le mercredi 19 novembre 2014 13:49:48, Andreas Neumann a écrit :
> Hi,
>
> I have an issue with gdal_calc.py and nodata values.
>
> My input data contains a lot of white pixels. After running gdal_calc.py
> with the following parameters
>
> gdal_calc.py -A test.tif --outfile=testcalc.tif
> --cal
Hi,
I have an issue with gdal_calc.py and nodata values.
My input data contains a lot of white pixels. After running gdal_calc.py
with the following parameters
gdal_calc.py -A test.tif --outfile=testcalc.tif
--calc="(A==249)*255+(A<>249)*A"
it turns out that all pixel values with 255 are n