#author("2021-05-07T17:46:04+09:00","default:Miyashita","Miyashita") #author("2021-05-07T17:50:49+09:00","default:Miyashita","Miyashita") * grdcut コマンド メモ [#l0ba199b] grd ファイルの範囲切り取りをする. **公式doc [#o4c1b15b] [[Modules » grdcut>https://docs.generic-mapping-tools.org/latest/grdcut.html]] **例 [#w78f1f82] #codeprettify{{ topofile="/usr/share/geoware/ttt/data/ttt_topo_5m.i2" topofile_cut="cut.grd" region=120/150/20/50 # 切り取り gmt grdcut $topofile -R$region -G$topofile_cut # 描画で確認 gmt grdimage -Baf -Cetopo1 -JX12/6 -R$topofile $topofile > topo_org.ps # 切り取り前 gmt grdimage -Baf -Cetopo1 -JX12/12 -R$topofile_cut $topofile_cut > topo_cut.ps # 切り取り後 }} &ref(https://main-t-miyashita.ssl-lolipop.jp/hydrocoast/image/GMT/topo_org.jpg,669x359); &ref(https://main-t-miyashita.ssl-lolipop.jp/hydrocoast/image/GMT/topo_cut.jpg,376x359); ~ ~ **概要 [#d20c8f6c] 基本形は以下の通り. #codeprettify{{ gmt grdcut [input_file] -R[region] -G[output_file] }} *** -G [#j03e045a] 出力ファイル名.surface などの -G オプションと同じ. *** -R [#r73490b8] GMT の共通オプション.他の grd ファイルと同一の範囲に切り取りたければこの -R[filename] とする.