<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Greg,<br>
<br>
Thanks again for taking the time and effort to help me out with this issue. I'm actually using Wesley's get_inv/get_grib perl scripts to pull specific variables from the CMC server.<br>
<br>
Here's the bash script that I'm using to try to pull the 10km RGEM grib2s with: <a href="http://paste2.org/DjhcB8UI" target="_blank">
http://paste2.org/DjhcB8UI</a>. <br>
<br>
I also cat all of the grib2s together into one big grib2. I just went back to check and I also get the same exact
<span dir="ltr">grid description in the ctl file as you do.<br>
<br>
Do you see anything obviously wrong that I'm doing in my bash script?<br>
</span>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma" size="2"><font size="2"><br>
<br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma" size="2">Atmospheric Sciences<br>
Lyndon State College<br>
Class of 2016<br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma" size="2"><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma" size="2">Boston, MA</font></font></font></font></font>
<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma" size="2">Mobile: 617-780-4312</font></font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF209041"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Greg West [gregory.l.west@gmail.com]<br>
<b>Sent:</b> Tuesday, March 25, 2014 12:27 AM<br>
<b>To:</b> gradsusr@gradsusr.org<br>
<b>Subject:</b> Re: [gradsusr] Unable To Open Concatanated Regional GEM GRIB2s With GrADS<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>Aaron,</div>
<div><br>
</div>
<div>I also download it from that source. When I use <a href="http://g2ctl.pl" target="_blank">
g2ctl.pl</a> to create ctl files, if I remove CAPE and 4LFTX from the grib2 files, this is the grid description in the ctl file:</div>
<div><br>
</div>
<div>
<div>
<div>pdef 935 824 nps 456.142068646443 732.42845661651 249.000000 10</div>
<div>xdef 4000 linear 0.000000 0.0899962568142035</div>
<div>ydef 808 linear 17.342726 0.0900337967781908</div>
</div>
<div><br>
</div>
<div>If I separate out CAPE and 4LFTX into their own grib2 file, this is what I get:</div>
<div><br>
</div>
<div>
<div>pdef 858 665 nps 361.120321747126 683.553026459468 249.000000 10</div>
<div>xdef 1945 linear 161.949691 0.0899750853909465</div>
<div>ydef 767 linear 19.241056 0.0900398276762402</div>
</div>
</div>
<div><br>
</div>
<div>You can see that the convective indices are on a different grid for some reason.</div>
<div><br>
</div>
<div>These are the commands in my perl script I use to work around it...</div>
<div>Datamart, as you know, has every variable and fcst hr in its own file. First take the files containing the 2 special vars and put them in their own grib2 file...</div>
<div>`cat \`ls $data_root/$modcap/$date$hh/*4LFTX*_P$fhrname.grib2 $data_root/$modcap/$date$hh/*CAPE*_P$fhrname.grib2\` </div>
<div>> $data_root/$modcap/$date$hh/$mod.$date$hh.conv.f$fhrname`</div>
<div>Then take all the other files (except the 2 special vars) and put them into a grib2 file.</div>
<div>
<div>`cat \`ls $data_root/$modcap/$date$hh/*_P$fhrname.grib2 | grep -v '.*4LFTX.*' | grep -v '.*CAPE.*'\` > $data_root/$</div>
<div>modcap/$date$hh/$mod.$date$hh.master.f$fhrname`</div>
</div>
<div>Then I create different template ctl/idx files for each set of files. Your plotting scripts will have to open the 2nd ctl file if you're plotting the special vars.</div>
<div><br>
</div>
<div>Greg</div>
<div><br>
</div>
<div><span style="font-family:arial,sans-serif; font-size:13px">-------------- next part --------------</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">An HTML attachment was scrubbed...</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">URL: </span><a href="http://gradsusr.org/pipermail/gradsusr/attachments/20140324/48e84100/attachment-0001.html" style="font-family:arial,sans-serif; font-size:13px" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20140324/48e84100/attachment-0001.html</a><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">------------------------------</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Message: 3</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Date: Mon, 24 Mar 2014 22:49:45 +0000</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">From: "Perry, Aaron @ LSC" <</span><a href="mailto:Aaron.Perry@lsc.vsc.edu" style="font-family:arial,sans-serif; font-size:13px" target="_blank">Aaron.Perry@lsc.vsc.edu</a><span style="font-family:arial,sans-serif; font-size:13px">></span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Subject: Re: [gradsusr] Unable To Open Concatanated Regional GEM</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px"> GRIB2s With GrADS</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">To: GrADS Users Forum <</span><a href="mailto:gradsusr@gradsusr.org" style="font-family:arial,sans-serif; font-size:13px" target="_blank">gradsusr@gradsusr.org</a><span style="font-family:arial,sans-serif; font-size:13px">></span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Message-ID:</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px"> <</span><a href="mailto:DEE427CC71C1184E9F7C903BF1EEE7A80B65D4BC@LSC-EX10MBX03.lsc.vsc.edu" style="font-family:arial,sans-serif; font-size:13px" target="_blank">DEE427CC71C1184E9F7C903BF1EEE7A80B65D4BC@LSC-EX10MBX03.lsc.vsc.edu</a><span style="font-family:arial,sans-serif; font-size:13px">></span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Content-Type: text/plain; charset="iso-8859-1"</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Hi Greg,</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Thank you very much for chiming in! I've been using the usual </span><a href="http://dd.weatheroffice.gc.ca/model_gem_regional/10km/grib2/" style="font-family:arial,sans-serif; font-size:13px" target="_blank">http://dd.weatheroffice.gc.ca/model_gem_regional/10km/grib2/</a><span style="font-family:arial,sans-serif; font-size:13px"> datasource
to pull the GRIB2s and then run them through g2ctl/gribmap.</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Truly stumped right now...</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Onward and Upward,</span><br style="font-family:arial,sans-serif; font-size:13px">
<br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Aaron D. Perry</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Atmospheric Sciences</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Lyndon State College</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Class of 2016</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Boston, MA</span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Twitter: @AaronPerryLSC<</span><a href="https://twitter.com/AaronPerryLSC" style="font-family:arial,sans-serif; font-size:13px" target="_blank">https://twitter.com/AaronPerryLSC</a><span style="font-family:arial,sans-serif; font-size:13px">></span><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">Mobile: </span><a href="tel:617-780-4312" value="+16177804312" style="font-family:arial,sans-serif; font-size:13px" target="_blank">617-780-4312</a><br style="font-family:arial,sans-serif; font-size:13px">
<span style="font-family:arial,sans-serif; font-size:13px">______________________________</span><span style="font-family:arial,sans-serif; font-size:13px">__</span><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>