tempId = Raster(dsm_file)*0 tempId = SRTran.GetId(tempId)
I am not sure what you are trying to do, but I don't think you can do it that way.You cannot have the same raster on both sides of a map algebra statement.Try making an intermediate raster, and using it on the left in line 1and on the right in line 2One of the dreary things about map algebra is that you end up with a lot of intermediate rasterswhich you have to (that is to say, really want to) clean up afterwards (or as you finish with each one).
Unless I am mistaking your workflow,You are starting with a raster (call it A)and want an output raster we will call Cand need an intermediate raster we will call Bso if you make B using B = Function(A),and make C using C = AnotherFunction(B)you want to know why making B from Aand then deleting B beforemaking C from Bdoes not work?
Si j’ai bien compris, les rasters intermédiaires peuvent encore être utilisés par des opérations raster ultérieures, même après la suppression de leurs fichiers. Il est intéressant de constater que le processus fonctionne si vous ne les supprimez qu’après avoir créé le résultat final. Merci d’avoir partagé cet exemple !
Les membres connectés peuvent publier, suivre les mises à jour et bien plus encore. Nouveau ici ? Créez un compte gratuit.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.