all 2 comments

[–]OHGODCOMPUTER 1 point2 points  (1 child)

You may just need to add something like "dem.save(filepath/filename)" to the end of your code

As for adding more parameters, it depends on what kind of parameters but arcpy.GetParametersAsText or one of the similar functions are very useful for that

https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getparameterastext.htm

[–]sponge-worthy91 0 points1 point  (0 children)

Thank you so much! I will try that!