I'm hoping someone can help me with some errors generated by the LaharZ model. I'm trying to run the distal zones python tool created by USGS developers, however I have zero knowledge when it comes to python and have only ever used the regular toolbox within ARC pro. Four require inputs of a filled DEM, text file of volumes, textfile of XY coordinates and a string denotation for output grids. Below is the error message I receive when running the program... as well as the full python script attached.
Traceback (most recent call last):
File "C:\Users\josh\Desktop\GLOF\laharz_py_example\laharz_py\distal_inundation.py", line 1621, in <module>
main(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6])
File "C:\Users\josh\Desktop\GLOF\laharz_py_example\laharz_py\distal_inundation.py", line 907, in main
starttimetot = time.clock() # calculate time for program run
AttributeError: module 'time' has no attribute 'clock'
from your other unclosed issue
LaharZ issues - Esri Community
can we assume that LaharZ was written in python 2?
Because "time" has no "clock method in python 3
Try an
import time
dir(time)
......
to see what you can use to translate the code