Hi,<br><br> grib2ctl and g2ctl assume a vertical structure like NCEP<br>pgb files. That is that there are no missing levels from the<br>lowest level to an upper level. If you have missing levels,<br>then you should use the -no_profile option to grib2ctl/g2ctl.<br>
That gives you a variable for each field and level. That<br>will keep you from getting confused like "Z is defined on 500<br>while U is defined on 200 and 850 and RH is defined on<br>750".<br><br> Wesley<br><br>
<br><br><div class="gmail_quote">On Sat, Aug 10, 2013 at 7:14 PM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Mohsen,<div><br></div><div>I appreciate your help. However, I'm not convinced this is working properly. The other variable that goes with this problem is vprs... and if I do as instructed, I get undefined values when I try to display vprs. I feel like by changing the levels from 2 to 3 is just shifting the vprs for 850 to be extracted when I set the level to 500. Know what I mean?</div>
<div><br></div><div>I should be able to get both 850 uprs & vprs as well as 500 uprs & vprs, but can't seem to get them all. yet again, if I were to open this grib1 file in tkdegrib, I can see all of that data.</div>
<div><br></div><div>Very strange. Its something in how the file is packed and how <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> is reading the data when creating the ctl file. I greatly appreciate your assistance, and welcome any other thoughts you might have.</div>
<div><br></div><div>Regards,</div></div><div class="gmail_extra"><br clear="all"><div>Andrew Revering - Follow <a href="https://twitter.com/intent/follow?screen_name=andrewrevering&source=email&variant=2.0&xd_token=ceae5c40173e5" target="_blank">@andrewrevering</a> on Twitter<div>
Convective Development, Inc.<div>PO Box 511, Cambridge, MN 55008</div><div><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></div></div></div>
<br><br><div class="gmail_quote">On Sat, Aug 10, 2013 at 4:03 AM, Mohsen Soltani <span dir="ltr"><<a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">Hello Andrew,</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">
<br></div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">I examined your ctl. and found that the only thing you need to do is to change a number from 2 into 3 in the ctl file!</div>
<div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">*****************</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">that is:</div>
<div class="gmail_default"><font color="#000000" face="tahoma, sans-serif">Uprs </font><font color="#ff0000" face="tahoma, sans-serif">2</font><font color="#000000" face="tahoma, sans-serif"> 131,100,0 ** (profile) U velocity [m s**-1]</font></div>
<div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">should be changed into:</div><div class="gmail_default"><font color="#000000" face="tahoma, sans-serif">Uprs </font><font color="#ff0000" face="tahoma, sans-serif">3</font><font color="#000000" face="tahoma, sans-serif"> 131,100,0 ** (profile) U velocity [m s**-1]</font><br>
</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">***********************************************</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">
And then you will be able to display "uprs" in both 850-hPa and 500-hPa levels. Therefore, do as follows:</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">*******************</div>
<div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">open .....ctl</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">set lev 850</div>
<div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">d uprs</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">c</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">
set lev 500</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">d uprs</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">
************************</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">The attached are the outputs of each level.</div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">
<br></div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:tahoma,sans-serif">Mohsen</div>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#888888"></span></span><span><span dir="RTL" style="font-size:11.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#888888" lang="AR-SA"><span></span></span></span>--<div>
<span style="font-size:12px;font-family:arial"><font color="#274e13">April showers bring May flowers!</font></span><br></div><div>--<font color="#b45f06"> <br>
<b>Mohsen Soltani, M.Sc.</b><br>Climatology Grad Student,<br>Department of Climatology, Faculty of Geography,</font></div><div><font color="#b45f06">University of Tehran, </font><span style="color:rgb(180,95,6)">Tehran, Iran</span></div>
<div><font color="#b45f06">voice: <a href="tel:%28%2B98%29%209119772934" value="+989119772934" target="_blank">(+98) 9119772934</a><br>e-mail</font><font color="#bf9000">:</font> <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br>
</div></div></div>
<br><br><div class="gmail_quote">On Fri, Aug 9, 2013 at 11:28 PM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I appreciate the help, but I just don't get it.<div>I played around with the CTL file and changing some values but couldn't get anything other than what appears to be 850mb data to display.</div><div>
<br></div><div>Any other help is appreciated.</div></div><div class="gmail_extra"><div><br clear="all"><div>Andrew Revering - Follow <a href="https://twitter.com/intent/follow?screen_name=andrewrevering&source=email&variant=2.0&xd_token=ceae5c40173e5" target="_blank">@andrewrevering</a> on Twitter<div>
Convective Development, Inc.<div>PO Box 511, Cambridge, MN 55008</div><div><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></div></div></div>
<br><br></div><div class="gmail_quote"><div><div>On Wed, Aug 7, 2013 at 3:13 AM, Becker, Bernd <span dir="ltr"><<a href="mailto:bernd.becker@metoffice.gov.uk" target="_blank">bernd.becker@metoffice.gov.uk</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<u></u>
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">try the following nuonces in the way you describe Z in the .ctl files:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">Multilevel data:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">zdef 6 levels<br>
1000 850 700 500 200 10<br>
tdef 33 linear 00Z18Jul2013 1dy <br>
vars 1<br>
Z 6 129,100, 0 ** geopotential gsmtercboundary2 [gm]<br>
</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">and single level</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">z 0 129, 99 ,0 ** 500 hPa Geopotential gsmobstercboundary2 [m**2 s**-2]<br>
</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">and
</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">z 0 129, 100,500 ** 500 hPa Geopotential </font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">
</font></span></div>
<div><span><font color="#0000ff" face="Arial">good luck!</font></span></div>
<div><span><font color="#0000ff" face="Arial">Bernd</font></span></div>
<div><span><font color="#0000ff" face="Arial"></font></span> </div>
<p><font>--<br>
Bernd Becker Climate Impacts Product Development<br>
Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United Kingdom<br>
Tel.: <a href="tel:%2B44%20%280%29%201392%20884511" value="+441392884511" target="_blank">+44 (0) 1392 884511</a> Fax: <a href="tel:%2B44%20%280%29870%20900%205050" value="+448709005050" target="_blank">+44 (0)870 900 5050</a><br>
<a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk" target="_blank">E-mail:bernd.becker@metoffice.gov.uk</a> - <a href="http://www.metoffice.gov.uk/research/people/bernd-becker" target="_blank">
http://www.metoffice.gov.uk/research/people/bernd-becker</a><br>
</font></p>
<div> </div>
<br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>]
<b>On Behalf Of </b>Andrew Revering<br>
<b>Sent:</b> 07 August 2013 06:21<br>
<b>To:</b> GrADS User List<br>
<b>Subject:</b> [gradsusr] Decoding ECMWF Data<br>
</font><br>
</div>
<div></div>
<div dir="ltr">I'm having a hard time with *some* ECMWF data that I'm subscribed to.
<div>I am using grads (opengrads), gribmap & <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> to generate the CTL & IDX files. The file format is Grib1.</div>
<div>- Using grib2ctl version <span style="white-space:pre-wrap">0.9.12.6</span></div>
<div><span style="white-space:pre-wrap">- Using gribmap "for grads version 2.0.1.oga.1"</span></div>
<div><span style="white-space:pre-wrap">- Using wgrib 1.8.1.0b</span></div>
<div><br>
</div>
<div>The problem exists with 'level' data, but not all level data. In the example below, I can map the 850mb winds, but not the 500mb.</div>
<div>Try </div>
<div><br>
</div>
<div>set lev 500</div>
<div>d uprs </div>
<div><br>
</div>
<div>as an example. I get an 'entire grid undefined' message.</div>
<div><br>
</div>
<div>I was able to open the data using the tkdegrib package and output uprs @ 500mb level in CSV format, and see that indeed the data is in there and looks good. Just can't visualize it in Grads for some reason.</div>
<div><br>
</div>
<div>Here's a temporary link to example files:</div>
<div><a href="http://www.f5data.net/temp/" target="_blank">http://www.f5data.net/temp/</a></div>
<div><br>
</div>
<div>Any thoughts?</div>
<div><br clear="all">
<div>Andrew Revering - Follow <a href="https://twitter.com/intent/follow?screen_name=andrewrevering&source=email&variant=2.0&xd_token=ceae5c40173e5" target="_blank">
@andrewrevering</a> on Twitter
<div>Convective Development, Inc.
<div>PO Box 511, Cambridge, MN 55008</div>
<div><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></div>
</div>
</div>
</div>
</div>
</div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br>