<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">GrADS could really benefit from being able to write out grib2. The tricky parts would be populating all the metadata properly, which is not easy, and designing a good user interface for controlling all the metadata options.&nbsp;<div>--Jennifer<br><div><br><div><div>On Nov 15, 2011, at 10:35 AM, Wesley Ebisuzaki wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I would make a grib2 file. &nbsp;(Directly from GrADS? &nbsp;Convert from grib1 -&gt; <br>grib2?)<br><br>wgrib2 can change the various parameters by<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wgrib2 IN.grb -set center C -set subcenter S &nbsp;-set &nbsp;<br>analysis_or_forecast_process_id P -set table_3.4 SCAN -grib OUT.grb<br><br>C=center number<br>S=subcenter number<br>P=process id<br>SCAN=scan parameter<br><br>Finally I would say, "Grib1 is obsolete, you are getting a grib2 file. &nbsp;<br>Deal with it!"<br><br>* I am not sure whether cnvgrib will handle files with center != NCEP *<br><br>--------------------------------------------------------------------------------------------------------------------------------------<br><br>Alternatively I would modify a short C program (see <br><a href="ftp://ftp.cpc.ncep.noaa.gov/wd51we/grib_fixers">ftp://ftp.cpc.ncep.noaa.gov/wd51we/grib_fixers</a>)<br>to change the various parameters.<br><br>If the tools were already installed and grib2 output were acceptable, I <br>would use the first procedure.<br>If I knew C and grib1, the second method were be better.<br><br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wesley<br><br><br><br><br><br>Arlindo da Silva wrote:<br><blockquote type="cite">2011/11/14 Дарья &lt;<a href="mailto:darik777@i.ua">darik777@i.ua</a> &lt;<a href="mailto:darik777@i.ua">mailto:darik777@i.ua</a>&gt;&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;According to wgrib .grb file created by &nbsp;lats4d command has the<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;following structure<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;rec 1:0:date 2007081500 TMP kpds5=11 kpds6=1 kpds7=0 levels=(0,0)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;grid=255 sfc anl:<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;TMP=Temp. [K]<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;timerange 0 P1 0 P2 0 TimeU 1 &nbsp;nx 209 ny 139 GDS grid 0<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;num_in_ave 0 missing<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;0<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;center 100 subcenter 2 process 13 Table 128<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;latlon: lat &nbsp;37.788000 to 48.977000 by 0.081000 &nbsp;nxny 29051<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;long 21.610000 to 38.475000 by 0.081000, (209 x 139) scan<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;2 mode 128 bdsgrid 1<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;min/max data 271.97 300.67 &nbsp;num bits 9 &nbsp;BDS_Ref 2719.7 &nbsp;DecScale<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;1 BinScale 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;However, I need to change some parameters of the grb file:<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;"grid" (from 255 to 3)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;"center" (from 100 to 7)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;"subcenter" (from 2 to 0)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;"process" (from 13 to 82)<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;"scan" (from 2 to 0)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;Is there any way to do it by lats4d command?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You can control some of the details of the grib-1 file with a lats <br></blockquote><blockquote type="cite">parameter table, see the lats4d documentation (with "lats4d.sh -h"). <br></blockquote><blockquote type="cite">When a parameter table it is not specified, lats4d creates one for you <br></blockquote><blockquote type="cite">on the fly. Look for file .grads.lats.table on the directory you ran <br></blockquote><blockquote type="cite">lats4d from. Rename this file and edit it by hand. However, not <br></blockquote><blockquote type="cite">everything can be customized this way. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Wes, the resident GRIB wizard, &nbsp;may be able to suggest some wgrib <br></blockquote><blockquote type="cite">trick for doing this.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Arlindo<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;-- реклама -----------------------------------------------------------<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;Акция в Книжном Клубе - Более 100 книг по 10 грн + книга в подарок!<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;<a href="http://www.bookclub.ua/catalog/join/?utm_source=iua&amp;utm_medium=email">http://www.bookclub.ua/catalog/join/?utm_source=iua&amp;utm_medium=email</a><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&lt;<a href="http://www.bookclub.ua/catalog/join/?utm_source=iua&amp;utm_medium=email">http://www.bookclub.ua/catalog/join/?utm_source=iua&amp;utm_medium=email</a>&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;_______________________________________________<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;gradsusr mailing list<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a> &lt;<a href="mailto:gradsusr@gradsusr.org">mailto:gradsusr@gradsusr.org</a>&gt;<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-- <br></blockquote><blockquote type="cite">Arlindo da Silva<br></blockquote><blockquote type="cite"><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a> &lt;<a href="mailto:dasilva@alum.mit.edu">mailto:dasilva@alum.mit.edu</a>&gt;<br></blockquote><blockquote type="cite">------------------------------------------------------------------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">gradsusr mailing list<br></blockquote><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-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; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-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; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-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></span>
</div>
<br></div></div></body></html>