PyDEM LoweringError:slc0.8

时间:2016-12-30 11:28:33

标签: python gis numba

我在Win7 64,Anaconda Python安装,pip安装了PyDEM。

我在.calc_slopes_directions()个实例上调用DEMProcessor时遇到错误(见下文)。

我知道this question;这似乎与我的问题不一样。

LoweringError: slc0.8似乎与Numba有关。

这是我输入的代码和我得到的错误:

from pydem.dem_processing import DEMProcessor

os.chdir(r'D:\my_path')

a_tile = r'31an2_clipped_wgs84.tif'

dem_proc = DEMProcessor(a_tile)

mag, aspect = dem_proc.calc_slopes_directions()
starting slope/direction calculation for chunk 1 [0:516, 0:516]
Traceback (most recent call last):

  File "<ipython-input-13-6dc0db5771d2>", line 1, in <module>
    mag, aspect = dem_proc.calc_slopes_directions()

  File "C:\Program Files\Anaconda2\lib\site-packages\pydem\dem_processing.py", line 853, in calc_slopes_directions
    self.dY[te:be-1])

  File "C:\Program Files\Anaconda2\lib\site-packages\pydem\dem_processing.py", line 879, in _slopes_directions
    return self._tarboton_slopes_directions(data, dX, dY)

  File "C:\Program Files\Anaconda2\lib\site-packages\pydem\dem_processing.py", line 890, in _tarboton_slopes_directions
    self.facets, self.ang_adj)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\dispatcher.py", line 285, in _compile_for_args
    return self.compile(tuple(argtypes))

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\dispatcher.py", line 531, in compile
    cres = self._compiler.compile(args, return_type)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\dispatcher.py", line 80, in compile
    flags=flags, locals=self.locals)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 725, in compile_extra
    return pipeline.compile_extra(func)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 369, in compile_extra
    return self.compile_bytecode(bc, func_attr=self.func_attr)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 378, in compile_bytecode
    return self._compile_bytecode()

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 690, in _compile_bytecode
    return self._compile_core()

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 677, in _compile_core
    res = pm.run(self.status)

  File "C:\Program Files\Anaconda2\lib\site-packages\numba\compiler.py", line 257, in run
    raise patched_exception

LoweringError: slc0.8

0 个答案:

没有答案