<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You've got another problem with this grib file. That error message "getdrstemplate: DRS..." is from the grib2 library, not GrADS. Data Representation Template 5.50002 is not in my GRIB2 doc, nor is it in a newer version of the doc from WMO. <div>--Jennifer</div><div><br><div><div>On Mar 15, 2011, at 11:24 AM, Jonas Kaufmann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello Jennifer,<br><br>thank you! This was the output that was generated by g2ctl.pl<br>(including the negative sign), so I think the error is on the<br>g2ctl-side.<br><br>However, when I manually change this to a positive value, I get another error:<br>grib2map: scanning GRIB2 file: out.grib2<br>getdrstemplate: DRS Template 5.50002 not defined.<br>grib2map error: g2_getfld failed: ierr=12<br><br>Is this a related problem or am I running into another problem with<br>the grib file?<br><br>Best regards,<br>Jonas Kaufmann<br><br>On Tue, Mar 15, 2011 at 15:14, Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mar 15, 2011, at 10:05 AM, Jonas Kaufmann wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello Wesley,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thank you for your help! I could convert the file to grib2 using ECMWF<br></blockquote><blockquote type="cite">grib_set, see the converted file as an attachment. I then used the<br></blockquote><blockquote type="cite">latest versions of g2ctl and wgrib2 to create a control file (also<br></blockquote><blockquote type="cite">attached). During this process I get the following error):<br></blockquote><blockquote type="cite">Argument "0.000000:winds(grid)" isn't numeric in multiplication (*) at<br></blockquote><blockquote type="cite">/usr/share/perl/5.10/Math/Trig.pm line 87.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Now when I try to create an index file for the grib2-file, gribmap<br></blockquote><blockquote type="cite">complains with this error:<br></blockquote><blockquote type="cite">Open Error: Missing or invalid dimension increment value<br></blockquote><blockquote type="cite"> --> The invalid description file record is:<br></blockquote><blockquote type="cite"> --> xdef 351 linear 245.437796901893 -0.459621342512909<br></blockquote><blockquote type="cite"> The data file was not opened.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Not sure what the 1st problem mentioned above means, but this message is<br></blockquote><blockquote type="cite">telling you that XDEF cannot have a negative increment value. You must start<br></blockquote><blockquote type="cite">with the minimum longitude and have positive increment.<br></blockquote><blockquote type="cite">--Jennifer<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is there a simple (manual?) way to fix this in the control file? Or is<br></blockquote><blockquote type="cite">there another option on how to display data from this file?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thank you for your help!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards,<br></blockquote><blockquote type="cite">Jonas Kaufmann<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Fri, Mar 11, 2011 at 20:08, Wesley Ebisuzaki<br></blockquote><blockquote type="cite"><<a href="mailto:Wesley.Ebisuzaki@noaa.gov">Wesley.Ebisuzaki@noaa.gov</a>> wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Jonas,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Your grib1 file is packed using "complex packing". This kind of<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">packing is<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">not supported by grib2ctl and GrADS.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> I think that you are getting the error message because the grid is<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">(582 x 424) or 246768 points.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">However, the number of grid points (could be modified by undefineds and<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">runs of identical values)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">is given by octets 19-20 in section 4. Since 246768 much too big to be<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">stored in a 2 byte number,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">an error is flagged. Try converting this file to grib2 using the ECMWF<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">software. Once in grib2,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">g2ctl and GrADS can read it. I don't think that g2ctl will handle the<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">projection right but at least you<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">can display it as a x-y grid.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.nco.ncep.noaa.gov/pmb/docs/on388/section4.html">http://www.nco.ncep.noaa.gov/pmb/docs/on388/section4.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Wesley Ebisuzaki<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Jonas Kaufmann wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I ran into a problem trying to extract a HIRLAM data set on a rotated<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">lat-lon grid. the file is in grib1-format. I could create a valid<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">control file using the code from g2ctl.pl for grib2-files, merging<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">this together with the code in grib2ctl.pl for grib1 files. Although a<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">control file is created, I also get errors like:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">grib header at record 1: two values of nxny 246768 144639<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> LEN 162734 DataStart 14 UnusedBits 6 #Bits 9 nxny 246768<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I then go ahead and try to plot a map using GrADS, I always get<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"Entire Grid undefined". I have attached the grib file, the index file<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and the control file.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What am I doing wrong? How can I extract the data from this gribfile?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thank you for your help!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Jonas Kaufmann<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">gradsusr mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote><blockquote type="cite"><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">gradsusr mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote><blockquote type="cite"><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"><out.grib2.ctl><out.grib2>_______________________________________________<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><blockquote type="cite">--<br></blockquote><blockquote type="cite">Jennifer M. Adams<br></blockquote><blockquote type="cite">IGES/COLA<br></blockquote><blockquote type="cite">4041 Powder Mill Road, Suite 302<br></blockquote><blockquote type="cite">Calverton, MD 20705<br></blockquote><blockquote type="cite"><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</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">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><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; "><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; 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></div></span> </div><br></div></body></html>