<div dir="ltr"><div><div>Christoph,<br><br></div> Was alt_g2ctl and alt_gmp able to handle template 4.10?<br><br></div>Wesley<br><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 3:42 AM, Gebhardt Christoph <span dir="ltr"><<a href="mailto:Christoph.Gebhardt@dwd.de" target="_blank">Christoph.Gebhardt@dwd.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span lang="EN-US">Dear all,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">just an information:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried to use gribmap with GRIB2 input and Product definition template 4.10 (Percentile forecasts at a horizontal level or in a horizontal layer on a continuous or non-continuous time interval).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The template 4.10 was not accepted by gribmap.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">It seems to me that the current implementation in GrADS versions 2.0.2 and 2.1.a2 (I did not check 2.1.a1) is only partially prepared for PDT 4.10.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I could make it running with a simple change of source code in gagmap.c<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">When setting the reference time in the section
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">/* For fields that are statistically processed over a time interval
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> e.g. averages, accumulations, extremes, et al. */<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I changed the 'else if'-line by adding gfld->ipdtnum==10 to<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">else if (gfld->ipdtnum == 8 || gfld->ipdtnum==9 || gfld->ipdtnum==10 || gfld->ipdtnum==11 || gfld->ipdtnum==12) {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">and added the line <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">else if (gfld->ipdtnum==10) endyr_idx=16;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Later on in the source code in gaint g2sp (Gets the statistical process used to derive a variable.), the PDT 4.10 has been correctly take into account in the standard source code of gagmap.c<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Christoph.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span>=============================================================<u></u><u></u></span></p>
<p class="MsoNormal"><span>Dr. Christoph Gebhardt<u></u><u></u></span></p>
<p class="MsoNormal"><span>Forschung & Entwicklung // Research & Development<u></u><u></u></span></p>
<p class="MsoNormal"><span>Referat Vorhersagbarkeit und Verifikation // Section Predictability & Verification<u></u><u></u></span></p>
<p class="MsoNormal"><span><a href="mailto:christoph.gebhardt@dwd.de" target="_blank">christoph.gebhardt@dwd.de</a><u></u><u></u></span></p>
<p class="MsoNormal"><span>Tel: <a href="tel:%2B%2B49-69-8062%202743" value="+496980622743" target="_blank">++49-69-8062 2743</a><u></u><u></u></span></p>
<p class="MsoNormal"><span>Fax: <a href="tel:%2B%2B49-69-8062%203721" value="+496980623721" target="_blank">++49-69-8062 3721</a><u></u><u></u></span></p>
<p class="MsoNormal"><span>………………………………………………………………………….…………………………………………………..<u></u><u></u></span></p>
<p class="MsoNormal"><span>Deutscher Wetterdienst<u></u><u></u></span></p>
<p class="MsoNormal"><span><a href="http://www.dwd.de" target="_blank">www.dwd.de</a><u></u><u></u></span></p>
<p class="MsoNormal"><span>Frankfurter Straße 135<u></u><u></u></span></p>
<p class="MsoNormal"><span>63067 Offenbach am Main<u></u><u></u></span></p>
<p class="MsoNormal"><span>Germany<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div>