I'm currently working on a project where I have written a script that is suppose to do several things. one of these is creating a "quick" focal statistics, from which I extract the values to some points. Afterwards I wont need the focal statistics output, so I was wondering if it was possible to save the output "in memory". Right now, each time I run:

        focalstats = arcpy.sa.FocalStatistics(inDSM, NbrCircle(7, "MAP"), "MINIMUM")

the line creates an output file called "FocalSt_dsm_x" (x is a number) in my environment workspace.

Of course, I could delete the file each time, but it seems a bit troublesome.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.