I've been dealing with Landlab and Python for little time, so I'm not an expert user. I was trying to run a model which purpose is to import an existing DEM into a grid, but it didn't work out. This is the code:
from landlab import RasterModelGrid
from landlab.io import read_esri_ascii
mg = RasterModelGrid((4852, 7894), 40)
z = mg.add_zeros('node', 'elevation')
(mg, z) = read_esri_ascii('DEM40_Sicilia_only_landlab.asc',name='elevation')
It gave me this error:
File "C:\Users\claudio\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 202: character maps to <undefined>
Does anyone know the answer to solve my problem?