<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Wesley<br><br>When I try to convert to PTD 4.0 I get the following<br><br><i>1:0:d=2016042507:FIREDI:no_level:-2147483647 missing fcst:<br></i><br>but i guess that is not a problem.<br><br>However, after converting to the new grid something goes wrong because the image seems shifted by 90 degrees to the north (please see test1.png). I tried some tests but nothing worked. For example when I asked for the regriding to start from 0 degrees north (wgrib2 new-fir.grb -set_grib_type c2 -lola 0:3600:0.1 <b><u>0</u></b>:1801:0.1 lola-fir.grb grib), I got the image of test2.png. The image there seems cut and not shifted to the north!<i><br></i><br>What can I do for that?<br><br>Kind Regards <br><pre>Athanasios F. Karagiannidis<br>Physicist, PhD Meteorology and Climatology<br>E-mail: thankar@live.com</pre><br><br><div><hr id="stopSpelling">Date: Tue, 26 Apr 2016 09:34:58 -0400<br>From: wesley.ebisuzaki@noaa.gov<br>To: gradsusr@gradsusr.org<br>Subject: Re: [gradsusr] meteosat grib2 (grb) files<br><br><div dir="ltr"><div><div><div><div>Dear Athanasios,<br><br></div>There are two problems that need to overcome before displaying with GrADS.<br><br></div>1)&nbsp; The file is using grib2 Product Definition Template (PDT) 4.30.&nbsp;&nbsp; GrADS doesn't<br></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; support PDT 4.30.&nbsp;&nbsp; So the first step to convert to a PDT that GrADS can handle<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; such as PDT 4.0.&nbsp;&nbsp; (You should consider making the grib file with PDT 4.0 unless<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you want to document the spectral bands that are being used.)<br><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to convert to PDT 4.0:&nbsp; &nbsp; wgrib2 201604250700-fir.grb -set_pdt +0 -grib new-fir.grb<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requires a newer wgrib2<br><br></div><div>If you want to see the raw grid (space view perspective)<br><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp; g2ctl -raw new-fir.grb &gt;new-fir.ctl<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp; gribmap -i new-fir.ctl<br><br></div><div>2)&nbsp; The other problem is that GrADS doesn't have the code to handle space-view perspective<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (orographic).&nbsp;&nbsp; Wgrib2 to the rescue again.&nbsp; Here we convert the field to a<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; longitude-latitude 0.1 degree global grid.<br></div><div><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wgrib2 new-fir.grb -set_grib_type c2 -lola 0:3600:0.1 -90:1801:0.1 lola-fir.grb grib<br><br></div>&nbsp;GrADS/g2ctl can handle lola-fir.grb<br><div><div><div><br><br><div>Yours,<br></div><div>Wesley<br></div><div><br><div><div><div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Tue, Apr 26, 2016 at 5:10 AM, Athanasios Karagiannidis <span dir="ltr">&lt;<a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px solid rgb(204,204,204);padding-left:1ex;">


<div><div dir="ltr">Hello to all.<br><br>I'm trying to open and visualize the contents of the "fire detection indicator" parameter that is included in meteosat grib2 file like the one I attach.<br><br>When trying to create the ctl file i get the following message.<br><br>[...]$ <a href="http://g2ctl.pl" target="_blank">g2ctl.pl</a> -0 201604250700-fir.grb &gt;201604250700-fir.ctl<br>*** script needs to be modified ***<br>unknown user-defined grid<br><br>As a consequence the ctl file that is created can not be opened by gribmap<br><br>[...]$ gribmap -0 -i 201604250700-fir.ctl <br>Open Error:&nbsp; missing XDEF record <br>Open Error:&nbsp; missing YDEF record <br>&nbsp; The data file was not opened<br><br>and no idx file is created.<br><br>Could someone provide any help?<br><pre>Athanasios F. Karagiannidis<br>Physicist, PhD Meteorology and Climatology<br>E-mail: <a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a></pre>                                               </div></div>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div></div></div>
<br>_______________________________________________
gradsusr mailing list
gradsusr@gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr</div>                                               </div></body>
</html>