简体   繁体   中英

Extract data from Raster files

I have 3 raster files, the value ranges from 0 to 2. I am trying to extract grids where the value is greater than 1 in all 3 files. My desired output is a raster which contains the grids and values where value is more than 1.

How can I get the desired output in Python or ArcGIS?

With R you can do

library(raster)
s <- stack(system.file("external/rlogo.grd", package="raster")) / 150

x <- all(s > 1)
plot(x)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM