rasterList = gp.ListRasters("","GRID") somaExp = "" #note that your code had somaExp = " " (and extra space) for raster in rasterList: somaExp = somaExp + raster + " + " #Note the SOMA language requires single spaces around the operations, so your "+" would be invalid gpsa = outputFolder + "\\output" #Note in your code you were only naming the folder gp.SingleOutputMapAlgebra_sa(soma[:-3], gpsa) #Note the [:-3] index
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.