<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">THU 06OCT11: 0830PDT<div><br></div><div>Hi Jennifer</div><div><br></div><div>Thanks for confirming that the SREF is "pathological" - your explanation certainly confirms my initial confusion as to the contents of the file. I may pass on your suggestions to one of my developers who is more adept probing the innards of GRIB2 files. Wesley mentioned &nbsp;converting the SrEF files to NETCDF and creating CTL files. I had not gone that route since the probability files were choking. However, Wesley mentioned he will be bringing out a new version of WGRIB2 which should be able to handle those files. I will then give this problem another try then. Either way, I definitely will post a solution.&nbsp;</div><div><br></div><div>Thanks for your help.&nbsp;</div><div><br></div><div>Cheers</div><div>Kevin</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div>Regards,</div><div><br></div><div>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div>Vice President of Operations</div><div>CustomWeather,&nbsp;Inc.</div><div>San Francisco, California, USA</div><div><br></div><div>"Taking the World by Storm!"</div><div><br></div><div><a href="http://www.customweather.com">http://www.customweather.com</a></div><div><a href="http://www.myforecast.com">http://www.myforecast.com</a></div><div><a href="http://www.1stweather.com">http://www.1stweather.com</a></div><div><br></div><div>cell: 415-794-0411</div><div>work: 415-777-3566</div><div>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a></div></div></div></div></div></div></span></span>
</div>
<br><div><div>On Oct 6, 2011, at 10/06/11 - 6:14 AM, Jennifer Adams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Kevin --&nbsp;<div>I agree that the SREF files you are trying to read are highly pathological. More technical comments inline...&nbsp;</div><div><br></div><div><br><div><div>On Oct 5, 2011, at 11:21 PM, Kevin M Levey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">WED 05OCT11: 2010PDT<div><br></div><div>I'm still having difficulty trying to set up a correct CTL file for the Short Range Ensemble Model (SREF) since g2ctl.pl does not correctly display the variables correctly in the file it creates.&nbsp;</div><div><br></div><div>A WGRIB2 inventory of the file I am looking at is found here:&nbsp;</div><div><br></div><div>MEAN: <a href="http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.mean.grib2.idx">http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.mean.grib2.idx</a></div><div>SPREAD:&nbsp;<a href="http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.spread.grib2.idx">http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.spread.grib2.idx</a></div><div>PROB: &nbsp;<a href="http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.prob.grib2.idx">http://www.ftp.ncep.noaa.gov/data/nccf/com/sref/prod/sref.20111005/15/ensprod/sref.t15z.pgrb212.prob.grib2.idx</a></div><div><br></div><div>I am not sure how to write out the APCP variables - for example: (MEAN)</div><div><br></div><div>forecast hour 6:&nbsp;</div><div><br></div><div><pre>179:1695832:d=2011100515:APCP:surface:3-6 hour acc fcst:wt ens-mean
180:1700422:d=2011100515:APCP:surface:0-6 hour acc fcst:wt ens-mean</pre></div></div></blockquote>These two records both have the same base time (2011100515) and the same end of accumulation period (6hr), so gribmap will match both of them to the same time (2011100521), so the record that appears later in the grib2 file is the one that will get displayed by GrADS.&nbsp;</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div></div><div>at the end of the file :&nbsp;</div><div><br></div><div><pre>2053:18119750:d=2011100515:APCP:surface:84-87 hour acc fcst:wt ens-mean
2054:18125217:d=2011100515:APCP:surface:81-87 hour acc fcst:wt ens-mean
2055:18131995:d=2011100515:APCP:surface:75-87 hour acc fcst:wt ens-mean
2056:18140088:d=2011100515:APCP:surface:63-87 hour acc fcst:wt ens-mean</pre></div></div></blockquote>Similarly, all four of these records will qualify as matches for the time step that is 87 hours from start time. The one that will get displayed will be record #2056, since it was the last one to match.&nbsp;</div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>I need to plot the precip mean/spread for precip every 6 hours, 12 hours and 24 hours, but have been at this for a week now, and still nowhere near a satisfactory solution.</div></div></div></blockquote><div>My suggestion is to use wgrib2 to split the file into pieces, picking out the records that have a common accumulation time, e.g. all the 6hr accumulations. Then you should have a set of records with unique end times that will map uniquely to a time axis as defined by TDEF.&nbsp;</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div> Likewise with the probability of rainfall exceeding 0.25" etc.... </div></div></div></blockquote>The probability files are going to require some extra work to figure out how to map them in a unique way. They may require as many as 4 additional grib codes and the units field in a GRIB2 variable declaration already has 5 elements. That borders on the ridiculous, and so a design change may be in order. In any event, it will be a while before a GrADS version exists that will be able to handle these probability files in their native format. Wesley also pointed out that there are some discrepancies between the NCEP encoding of this Product Definition Template and the WMO standard. Best suggestion I have is to use wgrib2 to rewrite the records of interest into another format (e.g. binary), doing your best to preserve whatever metadata you need in the filenames and the GrADS descriptor file.&nbsp;</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>I was quite competent decoding grib1 and setting up CTL files based on the KPDS values, however, the SREF inventory has me stumped.&nbsp;</div></div></div></blockquote>Meet the new beast to conquer...&nbsp;</div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>If I know how do get this done, I should be able to create the CTL file for the probability files which is where I had the initial problem last week.&nbsp;</div></div></blockquote>If you succeed, please post your solutions to the forum for the next unsuspecting SREF user who comes along...&nbsp;</div><div>--Jennifer</div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span"><br></font></div><div>Any help with an short example would greatly help me.&nbsp;</div><div><br></div><div>Thanks in advance.&nbsp;</div><div><br></div><div><div> <span class="Apple-style-span" style="border-collapse: separate; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Calibri; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div>Regards,</div><div><br></div><div>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div>Vice President of Operations</div><div>CustomWeather,&nbsp;Inc.</div><div>San Francisco, California, USA</div><div><br></div><div>"Taking the World by Storm!"</div><div><br></div><div><a href="http://www.customweather.com/">http://www.customweather.com</a></div><div><a href="http://www.myforecast.com/">http://www.myforecast.com</a></div><div><a href="http://www.1stweather.com/">http://www.1stweather.com</a></div><div><br></div><div>cell: 415-794-0411</div><div>work: 415-777-3566</div><div>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a></div></div></div></div></div></div></span></span> </div> <br><div><div>On Sep 27, 2011, at 09/27/11 - 6:28 AM, Jennifer Adams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Never mind, I found a sample and will look into whether GrADS can handle this PDT. --Jennifer<div><br><div><div>On Sep 27, 2011, at 9:02 AM, Jennifer Adams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What is the URL or FTP address where I can get a sample of this SREF file? --Jennifer<div>&nbsp;<br><div><div>On Sep 26, 2011, at 5:06 PM, Kevin M Levey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>MON 26SEP11: 1400PDT<br><br>Hi<br><br>I'm busy processing SREF GRIB2 model data, specifically: AWIPS grid Regional - CONUS - Double Resolution (Lambert Conformal - 40km) Prob Products (NCEP ....ensprod/sref.tccz.pgrb212.prob.grib2).<br><br>I've had no problems using processing the SPREAD and MEAN files using gtcl.pl (ver:0.0.8.2) and wgrib2 (ver: v0.1.9.2c 3/2011 ), however, am running into issues when processing the probability files. <br><br>Firstly, g2ctl.pl throws this: <br><br>Warning: g2lib/g2clib jpeg deocde may differ from WMO standard, use use -g2clib 0 for WMO standard<br><br>and then running gribmap I get this: <br><br>Product Definition Template 9 not handled <br><br>As I understand it, wgrib2 doesn't know what to do as the table for SREF is not defined. The CTL file incorrectly shows only a few variables and none of the probability variables as listed on the NCEP site: <br><br><a href="http://www.nco.ncep.noaa.gov/pmb/products/sref/sref.t03z.pgrb212.prob.grib2.shtml">http://www.nco.ncep.noaa.gov/pmb/products/sref/sref.t03z.pgrb212.prob.grib2.shtml</a> <br><br>I'm somewhat stumped here as to how to correctly process these type files and display the desired variables in GRADS. <br><br>Any help would be welcome.<br><br>Thanks.<br><br>Regards,<br><br>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)<br>Vice President of Operations<br>CustomWeather, Inc.<br>San Francisco, California, USA<br><br>"Taking the World by Storm!"<br><br><a href="http://www.customweather.com/">http://www.customweather.com</a><br><a href="http://www.myforecast.com/">http://www.myforecast.com</a><br><a href="http://www.1stweather.com/">http://www.1stweather.com</a><br><br>cell: 415-794-0411<br>work: 415-777-3566<br>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a><br><br><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">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-family: Helvetica; font-size: 12px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></div> </div><br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></div><br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br></div></body></html>