<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. <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. (Directly from GrADS? Convert from grib1 -> <br>grib2?)<br><br>wgrib2 can change the various parameters by<br><br> wgrib2 IN.grb -set center C -set subcenter S -set <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. <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> Wesley<br><br><br><br><br><br>Arlindo da Silva wrote:<br><blockquote type="cite">2011/11/14 Дарья <<a href="mailto:darik777@i.ua">darik777@i.ua</a> <<a href="mailto:darik777@i.ua">mailto:darik777@i.ua</a>>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> According to wgrib .grb file created by lats4d command has the<br></blockquote><blockquote type="cite"> following structure<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> rec 1:0:date 2007081500 TMP kpds5=11 kpds6=1 kpds7=0 levels=(0,0)<br></blockquote><blockquote type="cite"> grid=255 sfc anl:<br></blockquote><blockquote type="cite"> TMP=Temp. [K]<br></blockquote><blockquote type="cite"> timerange 0 P1 0 P2 0 TimeU 1 nx 209 ny 139 GDS grid 0<br></blockquote><blockquote type="cite"> num_in_ave 0 missing<br></blockquote><blockquote type="cite"> 0<br></blockquote><blockquote type="cite"> center 100 subcenter 2 process 13 Table 128<br></blockquote><blockquote type="cite"> latlon: lat 37.788000 to 48.977000 by 0.081000 nxny 29051<br></blockquote><blockquote type="cite"> long 21.610000 to 38.475000 by 0.081000, (209 x 139) scan<br></blockquote><blockquote type="cite"> 2 mode 128 bdsgrid 1<br></blockquote><blockquote type="cite"> min/max data 271.97 300.67 num bits 9 BDS_Ref 2719.7 DecScale<br></blockquote><blockquote type="cite"> 1 BinScale 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> However, I need to change some parameters of the grb file:<br></blockquote><blockquote type="cite"> "grid" (from 255 to 3)<br></blockquote><blockquote type="cite"> "center" (from 100 to 7)<br></blockquote><blockquote type="cite"> "subcenter" (from 2 to 0)<br></blockquote><blockquote type="cite"> "process" (from 13 to 82)<br></blockquote><blockquote type="cite"> "scan" (from 2 to 0)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> 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, 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"> 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"> -- реклама -----------------------------------------------------------<br></blockquote><blockquote type="cite"> Акция в Книжном Клубе - Более 100 книг по 10 грн + книга в подарок!<br></blockquote><blockquote type="cite"> <a href="http://www.bookclub.ua/catalog/join/?utm_source=iua&utm_medium=email">http://www.bookclub.ua/catalog/join/?utm_source=iua&utm_medium=email</a><br></blockquote><blockquote type="cite"> <<a href="http://www.bookclub.ua/catalog/join/?utm_source=iua&utm_medium=email">http://www.bookclub.ua/catalog/join/?utm_source=iua&utm_medium=email</a>><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> <<a href="mailto:gradsusr@gradsusr.org">mailto: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><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> <<a href="mailto:dasilva@alum.mit.edu">mailto:dasilva@alum.mit.edu</a>><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>