0

海社区,

我目前正在写我的硕士论文,我必须计算“天空视野系数”。由于 ESRI Arcmap 不是一个有用的选择,因此我发现使用 GrassGIS (V.7) 使用 r.skyview 命令进行计算相当容易。

但是我在日志文件中收到一条我无法真正处理的错误消息。希望你们中有人遇到过这种问题,可以帮助我解决这个问题。

这是 GrassGIS 输出的内容:

    *(Fri Jan 09 16:17:10 2015)                                                      
    r.skyview input=Subset@PERMANENT output=Subset_SVF ndir=16 maxdistance=15.0     
    Unknown module parameter "keyword" at line 21
    Unknown module parameter "keyword" at line 22
    FEHLER: Value <rast> ambiguous for parameter <type>
            Valid options: raster,raster_3d,vector,old_vector,ascii_vector,labels,region,group,all
    Traceback (most recent call last):
            File "C:\Users\Axel-HP\AppData\Roaming\GRASS7\addons/scripts/r.skyview.py", line 120, in <module>
        sys.exit(main())
            File "C:\Users\Axel-HP\AppData\Roaming\GRASS7\addons/scripts/r.skyview.py", line82, in main
        old_maps = _get_horizon_maps()
            File "C:\Users\Axel-HP\AppData\Roaming\GRASS7\addons/scripts/r.skyview.py", line 114, in_get_horizon_maps
       pattern=TMP_NAME + "*")[gcore.gisenv()['MAPSET']]
            File "C:\Temp\GRASSGIS7\etc\python\grass\script\core.py", line 1176, in list_grouped
       type=types, pattern=pattern,
       exclude=exclude).splitlines():
            File "C:\Temp\GRASSGIS7\etc\python\grass\script\core.py", line 425, in read_command
       return handle_errors(returncode, stdout, args, kwargs)
            File "C:\Temp\GRASSGIS7\etc\python\grass\script\core.py", line 308, in handle_errors
       returncode=returncode)
       grass.exceptions.CalledModuleError: Module run None
            ['g.list', '--q', '-m', 'type=rast', 'pattern=tmp_horizon_2340*'] ended with error
       Process ended with non-zero return code 1. See errors in the (error) output.
       (Fri Jan 09 16:17:11 2015) Befehl ausgeführt (1 Sek)*                            
4

1 回答 1

1

我刚刚测试了 r.skyview 并且它正在工作。最近 GRASS 模块参数名称发生了很大变化,这导致了麻烦,但现在它应该可以正常工作了。

于 2015-02-06T05:01:15.433 回答