<div dir="ltr"><div><div><div>Sam,<br></div>I'm not really sure what's the deal with the wind vectors. Maybe it's a temporary error that needs to be fleshed out still.<br><br></div>But in the meantime, i have a suggestion: instead of going through all the effort to convert from grib2 to grib1, just use g2ctl to generate a control file for the grib2 data. Grads is perfectly capable of reading grib2 data. <br><br></div><div>g2ctl is just like <a href="http://grib2ctl.pl">grib2ctl.pl</a> except it works for grib2 files. A quick Google search will reveal where you can get it.<br><br></div>Jeff Duda <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 23, 2017 at 10:31 AM, Sam Wilson <span dir="ltr"><<a href="mailto:sam@surfline.com" target="_blank">sam@surfline.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_4772294583486960939WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Just to add some detail here on how I’m processing the data from both the NAM 12km and the NAM conus nest:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">After downloading the grib2 files, I run the following:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Wgrib2 grib2file –grib tmpgrib2file<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Cnvgrib –g21 tmpgrib2file grib1file<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I then run the grib2ctl program on the grib1 file to produce the ctl file.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The wgrib2 version I’m using is v0.1.9.7a.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sam<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black"><<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Sam Wilson <<a href="mailto:sam@surfline.com" target="_blank">sam@surfline.com</a>><br>
<b>Reply-To: </b>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<b>Date: </b>Thursday, March 23, 2017 at 8:05 AM<br>
<b>To: </b>"<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>" <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<b>Subject: </b>[gradsusr] NAM 12km vs. NAM Conus Nest Wind Direction<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><u></u> <u></u></span></p>
</div>
<table class="m_4772294583486960939MsoNormalTable" style="width:100.0%;display:table;border-collapse:seperate" id="m_4772294583486960939msexchangesafetytips;e3c2bf71-6d48-4f4f-a1d3-08d471feaecd;R:en-US" cellspacing="0" cellpadding="0" width="100%" border="0" align="left">
<tbody>
<tr>
<td style="background:#910a19;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td style="width:100.0%;background:#fdf2f4;padding:5.25pt 3.75pt 5.25pt 11.25pt;word-wrap:break-word" width="100%">
<p class="MsoNormal">
<span style="font-size:9.0pt;font-family:Tahoma;color:#212121">This sender failed our fraud <wbr>detection checks and may not <wbr>be who they appear to be. <wbr>Learn about <a href="http://aka.ms/LearnAboutSpoofing" target="_blank">spoofing</a><u></u><u></u></span></p>
</td>
<td style="width:56.25pt;background:#fdf2f4;padding:5.25pt 3.75pt 5.25pt 3.75pt;word-wrap:break-word" width="75">
<p class="MsoNormal">
<span style="font-size:9.0pt;font-family:Tahoma;color:#212121"><a href="http://aka.ms/SafetyTipsFeedback" target="_blank">Feedback</a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table><div><div class="h5">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi all,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">After the recent upgrade of the high resolution NAM conus nest, the wind direction in the wind plots I make appears to be wrong.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I also plot wind data from the NAM 12km data – below are the PDEF, XDEF, and YDEF lines from a NAM 12km ctl file and a NAM conus nest ctl file:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">NAM 12km:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">pdef 614 428 lccr 12.190000 226.541000 1 1 25.000000 25.000000 265.000000 12191 12191</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">xdef 614 linear -133.459 0.113383763365335</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ydef 428 linear 12.190000 0.110827272727273</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">NAM conus nest:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">pdef 1799 1059 lccr 21.138000 237.280000 1 1 38.500000 38.500000 262.500000 3000 3000</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">xdef 1799 linear -122.72 0.0292401642786411</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ydef 1059 linear 21.138000 0.0272727272727273</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The NAM conus nest wind directions appear to be about 90 degrees offset from those of the NAM 12km. I initially thought it may be an issue where one is using grid relative where another is using earth relative,
but now I’m second guessing that – I ran wgrib2 on a single file from each with the -vector_dir option and both appear to show grid relative.. and as you can see above, both have “lccr” in the PDEF.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">What I’m after is being able to plot wind barbs in the meteorological convention from both and I’m curious why I’m getting different results between the above two datasets when plotting the same way.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Many thanks!</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sam Wilson</span><u></u><u></u></p>
<p style="line-height:10.0pt"><i><span style="font-size:8.0pt;font-family:Arial">The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This message is
sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this message in error, any use, reproduction or dissemination of this message is strictly prohibited. If you are not the intended recipient, please immediately
notify the sender by reply e-mail or phone and delete this message and its attachments, if any.</span></i><span style="font-size:8.0pt;font-family:Arial"><u></u><u></u></span></p>
</div>
</div></div></div><div><div class="h5">
<p style="font-size:8pt;line-height:10pt;font-family:'Arial'"><i>The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This message is sent in trust,
for the sole purpose of delivery to the intended recipient. If you have received this message in error, any use, reproduction or dissemination of this message is strictly prohibited. If you are not the intended recipient, please immediately notify the sender
by reply e-mail or phone and delete this message and its attachments, if any.</i></p>
</div></div></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>