「2008-11-20:流域解析3 ~雲出川流域解析~」の編集履歴(バックアップ)一覧はこちら

2008-11-20:流域解析3 ~雲出川流域解析~」(2011/10/13 (木) 14:35:45) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

<p><font size="2"> </font></p> <p><strong><font size="4">introduction</font></strong></p> <p><font size="2">Quantum GISを開き,open mapset から mie_central_planeを開き,</font></p> <p><font size="2">前回の授業までに作成した,rasterデータのbasin_10K, vecterデータの streamを開く.</font></p> <p> </p> <p> </p> <p><font size="2">ちなみに前回の課題として出されていた,出雲川水系のバンドナンバーは16,18,・・・36であった.</font></p> <p><font size="2">ここからはgrass toolのshell-GRASS shellを使用する.</font></p> <p><font size="2"> </font></p> <p><font size="2"> </font></p> <p><strong><font size="4">I rasterデータの対象領域を出雲川水系のみに限定するための操作</font></strong></p> <p><font size="2">コマンドreclassを使い,再分類範囲指定を行う.</font></p> <p><font size="2">その過程で,</font></p> <p><font size="2">rasterデータbasin_10Kから,雲出川水系範囲のrasterデータbasin_kumozuを作成する.</font></p> <p> </p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">shell-GRASS shellを開き,以下のコマンドを入力する.</font></p> <table cellspacing="1" cellpadding="1" width="569" border="1"><tbody><tr><td> <p align="left"><font size="2">r.reclass in=basin_10K out=basin_kumozu</font></p> </td> </tr><tr><td> <p align="left"><font size="2">16 thru 36 = 1</font></p> </td> </tr><tr><td><font size="2">* = NULL</font></td> </tr><tr><td><font size="2">end</font></td> </tr></tbody></table><p align="right"><font size="2"> 一行を入力した後,Enterキーを押してから次の行を入力してください.</font></p> <p align="right"><font size="2"> &quot;basin_10K&quot;のKは作成時の通り大文字で入力してください.</font></p> <p><font size="2"> 以上の操作でrasterデータのbasin_kumozuが作成される.</font></p> <p><font size="2"> また作成されたかどうか確認のため以下のコマンドを入力し,</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>g.list rast</td> </tr></tbody></table><p><font size="2">basin_kumozuが表示されるか確認する.</font></p> <p> </p> <p><font size="2"> </font></p> <p><font size="2"> </font></p> <p><strong><font size="4">II basin_kumozuの計算領域を雲出川水系のみに設定</font></strong></p> <p><font size="2"> rasterデータbasin_kumozuにMASKをかける.</font></p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">以下のコマンドを入力する.</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>g.copy rast=basin_kumozu,MASK</td> </tr></tbody></table><p><font size="2">この操作により,rasterデータの範囲がbasin_kumozuの範囲となった.</font></p> <p> </p> <p> </p> <p> </p> <p><strong><font size="4">III 簡単な統計量の計算を行う.(流域面積,雲出川水系に占める各領域の割合など)</font></strong></p> <p><font size="2"> rasterデータbasin_kumozuを用い,</font></p> <p><font size="2"> 雲出川水系の流域面積,地域に占める流域面積の割合などを求める.</font></p> <p> </p> <p align="center"> <u>手順</u></p> <p>以下のコマンドを入力することで統計量計算の詳細を確認できる.</p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report help</td> </tr></tbody></table><p> 様々なFlagを確認できる.</p> <p> </p> <p>最初に,</p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report basin_kumozu un=k,p</td> </tr></tbody></table><p> と入力すると,</p> <p><font size="2">location,region,MASK,MAP,雲出川の流域面積と土地面積との割合が表示される.</font></p> <p> </p> <p><font size="2">さらに</font> </p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report basin_kumozu un=k,p -h</td> </tr></tbody></table><p><font size="2"> と入力するとlocation,region,MASK,MAPが省略され,</font></p> <p><font size="2">雲出川の流域面積とその割合</font><font size="2">のみが表示される.</font></p> <p> </p> <p><font size="2">各バンドに対して流域面積,割合を知りるにはrasterデータbasin_10Kを用い,</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report basin_10K un=k,p -h</td> </tr></tbody></table><p><font size="2">と入力すると各バンド(雲出川)の流域面積とその割合が表示される.</font></p> <p> </p> <p><font size="2">また, </font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report basin_10K un=k,p -hn</td> </tr></tbody></table><p align="right"><font size="2">Flagは-h -nではなく,上記のように-hnと続けて入力してOKです.</font></p> <p> </p> <p><font size="2">と入力すると雲出川水系に対してある各バンドの占める割合が表示される.</font></p> <p> </p> <p> </p> <p><strong><font size="4">IV 出力された統計量をテキストデータとして保存する.</font></strong></p> <p> </p> <p><font size="2">上記の流域面積などのデータをテキストデータとしてファイルに保存する.</font></p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">まず,</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>pwd</td> </tr></tbody></table><p><font size="2">上記コマンドで現在のディレクトリを確認できる.</font></p> <p> </p> <p><font size="2">今回のデータを保存したい場所は</font></p> <p><font size="2">c:/grass/data/</font></p> <p><font size="2">なので</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>cd c:/grass/data/</td> </tr></tbody></table><p><font size="2">と入力し,ディレクトリを移動させる.</font></p> <p> </p> <p><font size="2">dataフォルダがない場合,c:/grass/に移動した後</font></p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>mkdir data</td> </tr></tbody></table><p>で作成できる. </p> <p> </p> <p>c:/grass/data/に移動した後,</p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>r.report basin_10k un=k,p -hn out=basin_kumozu_report</td> </tr></tbody></table><p>と入力すると,テキストデータbasin_kumozu_reportが作成できる.</p> <p>このデータはテキストデータなので,メモ帳やExcelなどで開くことが可能である.</p> <p> </p> <p>また,このファイルを読み込む際には以下を入力することでshell上で表示できる.</p> <table cellspacing="1" cellpadding="1" width="100%" border="1"><tbody><tr><td>less basin_kumozu_report</td> </tr></tbody></table><p> </p> <p> </p> <p> </p> <p><font size="2"> </font></p> <p><font size="2">まだ制作途中です・・・</font></p>
<p><font size="2"> </font></p> <p><strong><font size="4">introduction</font></strong></p> <p><font size="2">Quantum GISを開き,open mapset から mie_central_planeを開き,</font></p> <p><font size="2">前回の授業までに作成した,rasterデータのbasin_10K, vecterデータの streamを開く.</font></p> <p> </p> <p> </p> <p><font size="2">ちなみに前回の課題として出されていた,出雲川水系のバンドナンバーは16,18,・・・36であった.</font></p> <p><font size="2">ここからはgrass toolのshell-GRASS shellを使用する.</font></p> <p><font size="2"> </font></p> <p><font size="2"> </font></p> <p><strong><font size="4">I rasterデータの対象領域を雲出川水系のみに限定するための操作</font></strong></p> <p><font size="2">コマンドreclassを使い,再分類範囲指定を行う.</font></p> <p><font size="2">その過程で,</font></p> <p><font size="2">rasterデータbasin_10Kから,雲出川水系範囲のrasterデータbasin_kumozuを作成する.</font></p> <p> </p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">shell-GRASS shellを開き,以下のコマンドを入力する.</font></p> <table border="1" cellspacing="1" cellpadding="1" width="569"><tbody><tr><td> <p align="left"><font size="2">r.reclass in=basin_10K out=basin_kumozu</font></p> </td> </tr><tr><td> <p align="left"><font size="2">16 thru 36 = 1</font></p> </td> </tr><tr><td><font size="2">* = NULL</font></td> </tr><tr><td><font size="2">end</font></td> </tr></tbody></table><p align="right"><font size="2"> 一行を入力した後,Enterキーを押してから次の行を入力してください.</font></p> <p align="right"><font size="2"> "basin_10K"のKは作成時の通り大文字で入力してください.</font></p> <p><font size="2"> 以上の操作でrasterデータのbasin_kumozuが作成される.</font></p> <p><font size="2"> また作成されたかどうか確認のため以下のコマンドを入力し,</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>g.list rast</td> </tr></tbody></table><p><font size="2">basin_kumozuが表示されるか確認する.</font></p> <p> </p> <p><font size="2"> </font></p> <p><font size="2"> </font></p> <p><strong><font size="4">II basin_kumozuの計算領域を雲出川水系のみに設定</font></strong></p> <p><font size="2"> rasterデータbasin_kumozuにMASKをかける.</font></p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">以下のコマンドを入力する.</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>g.copy rast=basin_kumozu,MASK</td> </tr></tbody></table><p><font size="2">この操作により,rasterデータの範囲がbasin_kumozuの範囲となった.</font></p> <p> </p> <p> </p> <p> </p> <p><strong><font size="4">III 簡単な統計量の計算を行う.(流域面積,雲出川水系に占める各領域の割合など)</font></strong></p> <p><font size="2"> rasterデータbasin_kumozuを用い,</font></p> <p><font size="2"> 雲出川水系の流域面積,地域に占める流域面積の割合などを求める.</font></p> <p> </p> <p align="center"> <u>手順</u></p> <p>以下のコマンドを入力することで統計量計算の詳細を確認できる.</p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report help</td> </tr></tbody></table><p> 様々なFlagを確認できる.</p> <p> </p> <p>最初に,</p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report basin_kumozu un=k,p</td> </tr></tbody></table><p> と入力すると,</p> <p><font size="2">location,region,MASK,MAP,雲出川の流域面積と土地面積との割合が表示される.</font></p> <p> </p> <p><font size="2">さらに</font> </p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report basin_kumozu un=k,p -h</td> </tr></tbody></table><p><font size="2"> と入力するとlocation,region,MASK,MAPが省略され,</font></p> <p><font size="2">雲出川の流域面積とその割合</font><font size="2">のみが表示される.</font></p> <p> </p> <p><font size="2">各バンドに対して流域面積,割合を知りるにはrasterデータbasin_10Kを用い,</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report basin_10K un=k,p -h</td> </tr></tbody></table><p><font size="2">と入力すると各バンド(雲出川)の流域面積とその割合が表示される.</font></p> <p> </p> <p><font size="2">また, </font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report basin_10K un=k,p -hn</td> </tr></tbody></table><p align="right"><font size="2">Flagは-h -nではなく,上記のように-hnと続けて入力してOKです.</font></p> <p> </p> <p><font size="2">と入力すると雲出川水系に対してある各バンドの占める割合が表示される.</font></p> <p> </p> <p> </p> <p><strong><font size="4">IV 出力された統計量をテキストデータとして保存する.</font></strong></p> <p> </p> <p><font size="2">上記の流域面積などのデータをテキストデータとしてファイルに保存する.</font></p> <p align="center"><font size="2"><u>手順</u></font></p> <p><font size="2">まず,</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>pwd</td> </tr></tbody></table><p><font size="2">上記コマンドで現在のディレクトリを確認できる.</font></p> <p> </p> <p><font size="2">今回のデータを保存したい場所は</font></p> <p><font size="2">c:/grass/data/</font></p> <p><font size="2">なので</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>cd c:/grass/data/</td> </tr></tbody></table><p><font size="2">と入力し,ディレクトリを移動させる.</font></p> <p> </p> <p><font size="2">dataフォルダがない場合,c:/grass/に移動した後</font></p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>mkdir data</td> </tr></tbody></table><p>で作成できる. </p> <p> </p> <p>c:/grass/data/に移動した後,</p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>r.report basin_10k un=k,p -hn out=basin_kumozu_report</td> </tr></tbody></table><p>と入力すると,テキストデータbasin_kumozu_reportが作成できる.</p> <p>このデータはテキストデータなので,メモ帳やExcelなどで開くことが可能である.</p> <p> </p> <p>また,このファイルを読み込む際には以下を入力することでshell上で表示できる.</p> <table border="1" cellspacing="1" cellpadding="1" width="100%"><tbody><tr><td>less basin_kumozu_report</td> </tr></tbody></table><p> </p> <p> </p> <p> </p> <p><font size="2"> </font></p> <p><font size="2">まだ制作途中です・・・</font></p>

表示オプション

横に並べて表示:
変化行の前後のみ表示: