Discussion:
[Numpy-discussion] delete pixel from the raster image with specific range value
Xristos Xristoou
2016-10-08 22:11:49 UTC
Permalink
any idea how to delete pixel from the raster image with
specific range value using numpy/scipy or gdal?

for example i have a raster image with the
5 class :

1. 0-100
2. 100-200
3. 200-300
4. 300-500
5. 500-1000

and i want to delete class 1 range value
or maybe i want to delete class 1,2,4,5 if i need only class 3
Elliot Hallmark
2016-10-09 00:55:00 UTC
Permalink
What do you mean delete? Set to zero or NaN? You want an (N-1) dimensional
array of all the acceptable values from the N dimensional array?

Elliot
Post by Xristos Xristoou
any idea how to delete pixel from the raster image with
specific range value using numpy/scipy or gdal?
for example i have a raster image with the
1. 0-100
2. 100-200
3. 200-300
4. 300-500
5. 500-1000
and i want to delete class 1 range value
or maybe i want to delete class 1,2,4,5 if i need only class 3
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Loading...