<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>There is a little information under "The new GFS forecast files"</div><div><br></div><div> <a href="https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ncep_norm.html">https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ncep_norm.html</a></div><div><br></div><div>If you want a ctl file for GFS file and want to have different variable names</div><div>for two APCP fields, you have to use alt_g2ctl/alt_gmp with the -0t option.<br></div><div><br></div><div> <a href="https://www.cpc.ncep.noaa.gov/products/wesley/alt_g2ctl_gmp.html">https://www.cpc.ncep.noaa.gov/products/wesley/alt_g2ctl_gmp.html</a></div><div><br></div><div>alt_g2ctl -0t GFS.in >GFS.ctl</div><div>alt_gmp GFS.ctl</div><div><br></div><div>Templating the original files is a harder problem. <br></div><div><br></div><div>Wesley<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 9:53 AM Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <<a href="mailto:jennifer.m.adams@nasa.gov">jennifer.m.adams@nasa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_7239506937247357261WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;color:black">Hi, Everyone – <u></u>
<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:black">I’m sure many of you are aware of the changes to the GFS that went operational with yesterday’s 12Z run. In the new data files, there are two records for accumulated precipitation that look identical
except for the beginning-of-accumulation information. Here is what the wgrib2 output looks like for the APCP variable in the 12hr forecast and 15hr forecast files:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black"># wgrib2 gfs.t12z.pgrb2.0p25.f012 | grep APCP</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black">449:248062227:d=2019061212:APCP:surface:6-12 hour acc fcst:</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black">450:248429916:d=2019061212:APCP:surface:0-12 hour acc fcst:</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black"> </span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black"># wgrib2 gfs.t12z.pgrb2.0p25.f015 | grep APCP</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black">449:246395924:d=2019061212:APCP:surface:12-15 hour acc fcst:</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono";color:black">450:246700803:d=2019061212:APCP:surface:0-15 hour acc fcst:</span><span style="font-size:10pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">The variable in record #449 is the ‘old’ version, with different accumulation periods depending on the forecast hour. The variable in record 450 has the ‘new’ version, with accumulations from the beginning
of the forecast. There is no way to distinguish between these two based on the grib2 codes in a descriptor file. Here’s what I use:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Andale Mono"">p 0,1,0 0,1,8,1 Total Accumulated Precipitation [kg/m2]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">As gribmap examines the records in the grib file to look for matches in the descriptor file, it will find record 449 and index that position for the variable p. Then it will find record 450 and overwrite the
index for the variable p with the new position. So, as long as the ‘new’ version of APCP appears after the ‘old’ version in the grib file, gribmap will index the ‘new’ records, and you can work with the precip data assuming the new accumulation standards.
NCEP says that the ‘old’ variables will be phased out in the near future, so there’s no point in trying to match with the old style records.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">In many ways, the new standard is easier to deal with, although those of us who have written a boatload of scripts to work around the awkwardness of the old standard have some revisions to do. I am working
on modifications to the scripts behind the maps at <a href="http://wxmaps.org" target="_blank">wxmaps.org</a> and <a href="http://wx.gmu.edu" target="_blank">wx.gmu.edu</a>. I hope to have things looking right by the end of the week.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Jennifer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
ADNET Systems, Inc.<br>
NASA/GSFC, Code 610.2</span><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black">Building 32, Room S159<br>
(301) 614-6070<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div></div>