{"id":3025,"date":"2020-07-02T20:30:00","date_gmt":"2020-07-02T11:30:00","guid":{"rendered":"http:\/\/home.hiroshima-u.ac.jp\/~leehs\/?page_id=3025"},"modified":"2020-10-03T19:46:09","modified_gmt":"2020-10-03T10:46:09","slug":"gerris-flow-solver-gfs","status":"publish","type":"page","link":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/?page_id=3025","title":{"rendered":"Gerris flow solver (GFS) Tips"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Preparation of bathymetry file<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Bathymetry to GTS format (<code><a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/bathy2gts.sh_.gz\" target=\"_blank\" rel=\"noreferrer noopener\">bathy2gts.sh<\/a><\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(GMT 5.4.3, happrox, transform have to be installed beforehand in the working system)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <code>gmt grdcut GEBCO_08.nc -Gtmp.nc -R90\/180\/0\/70<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>gmt grd2xyz tmp.nc &gt; tmp.xyz<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>happrox -f -r 1 -c 0.05 &lt; tmp.xyz | transform --revert &gt; out_bathy.gts<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. <code><a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/grd2kdt.sh_.gz\" target=\"_blank\" rel=\"noreferrer noopener\">grd2kdt.sh<\/a><\/code> (xyz2kdt has to be installed beforehand)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>#!\/bin\/bash<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>grdfn=GEBCO_08.nc<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>outfn=output.nc<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>region=100\/150\/-20\/30<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>gmt grd2xyz $grdfn -V | xyz2kdt -v GEBCO<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. NaoTide to GTS format (<code><a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/nao2gts.sh_.gz\" target=\"_blank\" rel=\"noreferrer noopener\">nao2gts.sh<\/a><\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Tide gfs file for the western North Pacific region with <code>GfsOcean<\/code>, the shallow water equation solver (<code><a rel=\"noreferrer noopener\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/tide.GfsOcean.tar.gz\" target=\"_blank\">tides.gfs.org<\/a><\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.1 Tide gfs file for the WNP with <code>GfsOcean<\/code> with different refinement resolution (<code>tides.GfsOcean-new.tar.gz<\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Tide gfs file for the western North Pacific region with <code>GfsRiver<\/code>, the non-linear shallow water equation solver (<code><a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/tide.GfsRiver.tar.gz\" target=\"_blank\" rel=\"noreferrer noopener\">tides.gfs.org<\/a><\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Tsunami fault parameters: The 2010 <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/finiteFault2010Chile.txt.gz\" target=\"_blank\" rel=\"noreferrer noopener\">Chile<\/a> Tsunami (27 Feb 2010) and the 2011 <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/finiteFault2011Tohoku.txt.gz\" target=\"_blank\" rel=\"noreferrer noopener\">Tohoku<\/a> Tsunami (11 March 2011)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. How to prepare for the Okada module for gfs:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>&gt; <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/subfault2gfs.awk_.gz\" target=\"_blank\" rel=\"noreferrer noopener\">subfault2gfs<\/a>.awk  input (ex. finiteFault2010Chile.txt, finiteFault2011Tohoku.txt)<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">8. Example <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/wp-content\/uploads\/2020\/07\/tsunami.gfs_.gz\" target=\"_blank\" rel=\"noreferrer noopener\">gfs file<\/a> for tsunami-tide interaction with GfsRiver (NSWE) solver <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preparation of bathymetry file 1. Bathymetry to GTS format (bathy2gts.sh) (GMT 5.4.3, happrox, transform have to be installed beforehand in the working system) gmt grdcut GEBCO_08.nc -Gtmp.nc -R90\/180\/0\/70 gmt grd2xyz tmp.nc &gt; tmp.xyz happrox -f -r 1 -c 0.05 &lt;&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/?page_id=3025\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":20,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"template-full-width-without-title.php","meta":{"footnotes":""},"class_list":["post-3025","page","type-page","status-publish","hentry"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"hslee","author_link":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/?author=1"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Preparation of bathymetry file 1. Bathymetry to GTS format (bathy2gts.sh) (GMT 5.4.3, happrox, transform have to be installed beforehand in the working system) gmt grdcut GEBCO_08.nc -Gtmp.nc -R90\/180\/0\/70 gmt grd2xyz tmp.nc &gt; tmp.xyz happrox -f -r 1 -c 0.05 &lt;...Read more","_links":{"self":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/pages\/3025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3025"}],"version-history":[{"count":19,"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/pages\/3025\/revisions"}],"predecessor-version":[{"id":3249,"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/pages\/3025\/revisions\/3249"}],"up":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=\/wp\/v2\/pages\/20"}],"wp:attachment":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~leehs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}