{"id":279,"date":"2021-09-26T11:55:51","date_gmt":"2021-09-26T11:55:51","guid":{"rendered":"http:\/\/www.martin-rdz.de\/?p=279"},"modified":"2021-12-23T10:35:57","modified_gmt":"2021-12-23T10:35:57","slug":"flexpart-10-4-and-gfsv16","status":"publish","type":"post","link":"http:\/\/www.martin-rdz.de\/index.php\/2021\/09\/26\/flexpart-10-4-and-gfsv16\/","title":{"rendered":"Flexpart 10.4 and GFSv16"},"content":{"rendered":"<p>My latest encounter with joys of input format change: With the change to <a href=\"https:\/\/www.weather.gov\/media\/notification\/pdf2\/scn21-20_gfsv16.0_aac.pdf\">GFSv16 in March 2021<\/a> additional height levels were added to the grib output. Especially heights below 1hPa. What is generally good news, is bad news for Flexpart 10.4 (as of 20 Nov 2019). The additional levels cause incompatability with the <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">readwinds_gfs.f90<\/code>. Public information on this issue is rare. There is an Issue in Flexparts ticketing system (<a href=\"https:\/\/www.flexpart.eu\/ticket\/305\">https:\/\/www.flexpart.eu\/ticket\/305<\/a>) but thats more related to the mean-wind trajectory module Flextra.<\/p>\n<p>One suggestion is to drop the additional variables with wgrib2, which is somehow dissatisfying (and I could not figure it out on the short run). The only alternative posed ist, to switch to the dev branch (The link in the issue points to a version 9.3.2 legacy branch). So, for 10.4 dev you want to pull <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">git clone https:\/\/www.flexpart.eu\/gitmob\/flexpart  --branch dev --single-branch<\/code>. With that version, Flexpart switches from grib_api to eccodes, so on ubuntu the libraries <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">apt-get install libeccodes-tools libeccodes-dev<\/code> are required.<\/p>\n<p>At least for <a href=\"http:\/\/www.martin-rdz.de\/index.php\/2021\/02\/27\/flexpart-10-into-a-docker-container\/\">my docker setup<\/a>, i needed to adapt the makefile:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">INCPATH1 = \/usr\/include\r\nINCPATH2 = \/usr\/include\r\nLIBPATH1 = \/usr\/lib\r\nF90 = gfortran<\/pre>\n<p>Then, compiling worked sucessfully and the binary could handle the new GFS files.<\/p>\n<h4>Slightly related: natural earth cartopy downloads<\/h4>\n<p>Seems like the default natural earth mirror is temporarily unavailable (e.g., <a href=\"http:\/\/naciscdn.org\/naturalearth\/110m\/physical\">http:\/\/naciscdn.org\/naturalearth\/110m\/physical<\/a>), but there is this fix: <a href=\"https:\/\/github.com\/SciTools\/cartopy\/issues\/1298#issuecomment-920843582\">https:\/\/github.com\/SciTools\/cartopy\/issues\/1298#issuecomment-920843582<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My latest encounter with joys of input format change: With the change to GFSv16 in March 2021 additional height levels were added to the grib output. Especially heights below 1hPa. What is generally good news, is bad news for Flexpart 10.4 (as of 20 Nov 2019). The additional levels cause incompatability with the readwinds_gfs.f90. Public &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/posts\/279"}],"collection":[{"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":3,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":282,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions\/282"}],"wp:attachment":[{"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.martin-rdz.de\/index.php\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}