When I run the program it always fails by resulting in being unable to find a .asc file. I have tried with several different data sets from the USGS map. It does this with the .py and .exe versions
Generating .asc files...
ASC\USGS_LPC_CO_Central_Western_2016_LD28711641_LAS_2018.asc
Cannot open input surface model: DTM\USGS_LPC_CO_Central_Western_2016_LD28711641_LAS_2018.dtm
Traceback (most recent call last):
File "D:\Lidar\convert.py", line 210, in <module>
main()
File "D:\Lidar\convert.py", line 192, in main
asc_parse.gen_stls_from_ascs(
File "D:\Lidar\asc_parse.py", line 24, in gen_stls_from_ascs
list_of_depth_maps = [load_asc(x) for x in list_of_asc]
File "D:\Lidar\asc_parse.py", line 24, in <listcomp>
list_of_depth_maps = [load_asc(x) for x in list_of_asc]
File "D:\Lidar\asc_parse.py", line 9, in load_asc
data = np.loadtxt(file_name, skiprows=7)
File "C:\Users\bmart\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\lib\npyio.py", line 961, in loadtxt
fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
File "C:\Users\bmart\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\lib\_datasource.py", line 195, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
File "C:\Users\bmart\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\lib\_datasource.py", line 535, in open
raise IOError("%s not found." % path)
OSError: ASC\USGS_LPC_CO_Central_Western_2016_LD28711641_LAS_2018.asc not found.
When I run the program it always fails by resulting in being unable to find a .asc file. I have tried with several different data sets from the USGS map. It does this with the .py and .exe versions
Suggestions?