#assumes that the extent of littleRaster fits entirely within extent bigRaster bigRaster = r"C:\big" littleRaster = r"C:\little" gp.extent = bigRaster #Note: no need to set the snap raster if we are just using the extent of bigRaster somaExp = "con(isnull(" + littleRaster + "), -9999, " + littleRaster + ")" #recode NoData to -9999, otherwise keep the original values littleRasterNew = r"C:\little_new" gp.SingleOutputMapAlgebra_sa(somaExp, littleRasterNew) comboRaster = r"C:\combo" somaExp = "combine(" + bigRaster + "," + littleRasterNew + ")" gp.SingleOutputMapAlgebra_sa(somaExp, comboRaster)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.