GRASSのプロセッシングツールボックス"r.watershed"を用いて、「排水先セルの数」,「排水方向」,「流域ラベル」及び「河川セグメント」を出力しようとしたところ、ログに「警告: マップセットの平行ロックはウィンドウズではサポートされていません。」のエラーメッセージが表示され、いずれも出力されませんでした。
・ソースデータ:「GIS実習オープン教材」の「ラスターデータの分析」(https://gis-oer.github.io/gitbook/book/materials/15/15.html)の実習用データセットに含まれている"aso_2kei.tif"
QGIS version: 3.10.3-A Coruna
QGIS code revision: 0e1f846438
Qt version: 5.11.2
GDAL version: 3.0.4
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.3.1, February 10th, 2020
プロセシングアルゴリズム...
アルゴリズム 'r.watershed' を開始しています...
入力パラメータ:
{ '-4' : False, '-a' : False, '-b' : False, '-m' : False, '-s' : False, 'GRASS_RASTER_FORMAT_META' : '', 'GRASS_RASTER_FORMAT_OPT' : '', 'GRASS_REGION_CELLSIZE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None, 'accumulation' : 'G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_accumulation.tif', 'basin' : 'G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/watershed.tif', 'blocking' : None, 'convergence' : 5, 'depression' : None, 'disturbed_land' : None, 'drainage' : 'G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_direction.tif', 'elevation' : 'G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/aso_2kei.tif', 'flow' : None, 'half_basin' : 'TEMPORARY_OUTPUT', 'length_slope' : 'TEMPORARY_OUTPUT', 'max_slope_length' : None, 'memory' : 300, 'slope_steepness' : 'TEMPORARY_OUTPUT', 'spi' : 'TEMPORARY_OUTPUT', 'stream' : 'G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/river.tif', 'tci' : 'TEMPORARY_OUTPUT', 'threshold' : 10000 }
g.proj -c proj4="+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
r.external input="G:\BUFFALO_みまもり合図\JIRCAS\GIS\GIS実習オープン教材\aso\aso_2kei.tif" band=1 output="rast_5eb8be2c254e74" --overwrite -o
g.region n=10055.676521650157 s=-42936.90270436218 e=34820.919690261355 w=-24900.432767294173 res=27.92022087777257
r.watershed elevation=rast_5eb8be2c254e74 threshold=10000 convergence=5 memory=300 accumulation=accumulation705eb10611524301a1ce585d1c4971ca drainage=drainage705eb10611524301a1ce585d1c4971ca basin=basin705eb10611524301a1ce585d1c4971ca stream=stream705eb10611524301a1ce585d1c4971ca half_basin=half_basin705eb10611524301a1ce585d1c4971ca length_slope=length_slope705eb10611524301a1ce585d1c4971ca slope_steepness=slope_steepness705eb10611524301a1ce585d1c4971ca tci=tci705eb10611524301a1ce585d1c4971ca spi=spi705eb10611524301a1ce585d1c4971ca --overwrite
g.region raster=accumulation705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="accumulation705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_みまもり合図\JIRCAS\GIS\GIS実習オープン教材\aso\15\flow_accumulation.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=drainage705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="drainage705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_みまもり合図\JIRCAS\GIS\GIS実習オープン教材\aso\15\flow_direction.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=basin705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="basin705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_みまもり合図\JIRCAS\GIS\GIS実習オープン教材\aso\15\watershed.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=stream705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="stream705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_みまもり合図\JIRCAS\GIS\GIS実習オープン教材\aso\15\river.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=half_basin705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="half_basin705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\db79ac52f86a40bababc73f2c82b132c\half_basin.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=length_slope705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="length_slope705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\67913ba58db6423b960a895d8703cb45\length_slope.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=slope_steepness705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="slope_steepness705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\856a552c3fee4309a28421a4b11c7f06\slope_steepness.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=tci705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="tci705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\55d95eae980041788263dabd47d68f2b\tci.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
g.region raster=spi705eb10611524301a1ce585d1c4971ca
r.out.gdal -t -m input="spi705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\812376a261834f90997cbfa340d6bbba\spi.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
Starting GRASS GIS...
警告: マップセットの平行ロックはウィンドウズではサポートされていません。
一時ファイルを削除しています...
Executing <C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\grassdata\grass_batch_job.cmd> ...
C:\Users\Kikuchi\Documents>chcp 932 1>NUL
C:\Users\Kikuchi\Documents>g.proj -c proj4="+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
C:\Users\Kikuchi\Documents>r.external input="G:\BUFFALO_縺ソ縺セ繧ゅj蜷亥峙\JIRCAS\GIS\GIS螳溽ソ偵が繝シ繝励Φ謨呎攝\aso\aso_2kei.tif" band=1 output="rast_5eb8be2c254e74" --overwrite -o
C:\Users\Kikuchi\Documents>g.region n=10055.676521650157 s=-42936.90270436218 e=34820.919690261355 w=-24900.432767294173 res=27.92022087777257
C:\Users\Kikuchi\Documents>r.watershed elevation=rast_5eb8be2c254e74 threshold=10000 convergence=5 memory=300 accumulation=accumulation705eb10611524301a1ce585d1c4971ca drainage=drainage705eb10611524301a1ce585d1c4971ca basin=basin705eb10611524301a1ce585d1c4971ca stream=stream705eb10611524301a1ce585d1c4971ca half_basin=half_basin705eb10611524301a1ce585d1c4971ca length_slope=length_slope705eb10611524301a1ce585d1c4971ca slope_steepness=slope_steepness705eb10611524301a1ce585d1c4971ca tci=tci705eb10611524301a1ce585d1c4971ca spi=spi705eb10611524301a1ce585d1c4971ca --overwrite
C:\Users\Kikuchi\Documents>g.region raster=accumulation705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="accumulation705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_縺ソ縺セ繧ゅj蜷亥峙\JIRCAS\GIS\GIS螳溽ソ偵が繝シ繝励Φ謨呎攝\aso\15\flow_accumulation.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=drainage705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="drainage705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_縺ソ縺セ繧ゅj蜷亥峙\JIRCAS\GIS\GIS螳溽ソ偵が繝シ繝励Φ謨呎攝\aso\15\flow_direction.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=basin705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="basin705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_縺ソ縺セ繧ゅj蜷亥峙\JIRCAS\GIS\GIS螳溽ソ偵が繝シ繝励Φ謨呎攝\aso\15\watershed.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=stream705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="stream705eb10611524301a1ce585d1c4971ca" output="G:\BUFFALO_縺ソ縺セ繧ゅj蜷亥峙\JIRCAS\GIS\GIS螳溽ソ偵が繝シ繝励Φ謨呎攝\aso\15\river.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=half_basin705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="half_basin705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\db79ac52f86a40bababc73f2c82b132c\half_basin.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=length_slope705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="length_slope705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\67913ba58db6423b960a895d8703cb45\length_slope.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=slope_steepness705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="slope_steepness705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\856a552c3fee4309a28421a4b11c7f06\slope_steepness.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=tci705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="tci705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\55d95eae980041788263dabd47d68f2b\tci.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>g.region raster=spi705eb10611524301a1ce585d1c4971ca
C:\Users\Kikuchi\Documents>r.out.gdal -t -m input="spi705eb10611524301a1ce585d1c4971ca" output="C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\812376a261834f90997cbfa340d6bbba\spi.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
C:\Users\Kikuchi\Documents>exit
Execution of <C:\Users\Kikuchi\AppData\Local\Temp\processing_94db59c962bd4bb8a0cbaf1e8748821b\grassdata\grass_batch_job.cmd> finished.
Cleaning up temporary files...
処理は1.92秒で完了しました
結果:
{'accumulation': <QgsProcessingOutputLayerDefinition {'sink':G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_accumulation.tif, 'createOptions': {'fileEncoding': 'System'}}>,
'basin': <QgsProcessingOutputLayerDefinition {'sink':G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/watershed.tif, 'createOptions': {'fileEncoding': 'System'}}>,
'drainage': <QgsProcessingOutputLayerDefinition {'sink':G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_direction.tif, 'createOptions': {'fileEncoding': 'System'}}>,
'half_basin': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>,
'length_slope': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>,
'slope_steepness': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>,
'spi': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>,
'stream': <QgsProcessingOutputLayerDefinition {'sink':G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/river.tif, 'createOptions': {'fileEncoding': 'System'}}>,
'tci': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>}
出力レイヤの読み込み
次のレイヤは正しく生成されませんでした。<ul><li>C:\Users\Kikuchi\AppData\Local\Temp/processing_94db59c962bd4bb8a0cbaf1e8748821b/55d95eae980041788263dabd47d68f2b/tci.tif</li><li>C:\Users\Kikuchi\AppData\Local\Temp/processing_94db59c962bd4bb8a0cbaf1e8748821b/67913ba58db6423b960a895d8703cb45/length_slope.tif</li><li>C:\Users\Kikuchi\AppData\Local\Temp/processing_94db59c962bd4bb8a0cbaf1e8748821b/812376a261834f90997cbfa340d6bbba/spi.tif</li><li>C:\Users\Kikuchi\AppData\Local\Temp/processing_94db59c962bd4bb8a0cbaf1e8748821b/856a552c3fee4309a28421a4b11c7f06/slope_steepness.tif</li><li>C:\Users\Kikuchi\AppData\Local\Temp/processing_94db59c962bd4bb8a0cbaf1e8748821b/db79ac52f86a40bababc73f2c82b132c/half_basin.tif</li><li>G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_accumulation.tif</li><li>G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/flow_direction.tif</li><li>G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/river.tif</li><li>G:/BUFFALO_みまもり合図/JIRCAS/GIS/GIS実習オープン教材/aso/15/watershed.tif</li></ul>QGISメインウィンドウの"ログメッセージパネル"をチェックすると、アルゴリズムの実行に関する詳細情報が表示されます。