<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>The only 'rap...grb2' file I have has:<br><br> float gridrot_0 ( ygrid_0, xgrid_0 )<br> long_name : vector rotation angle<br> GridType : Lambert Conformal (secant, tangent, conical or bipolar)<br> units : radians<br> formula_u : Uearth = sin(rot)*Vgrid + cos(rot)*Ugrid<br> formula_v : Vearth = cos(rot)*Vgrid - sin(rot)*Ugrid<br> note1 : u and v components of vector quantities are resolved relative to grid<br> note2 : apply formulas to derive u and v components relative to earth<br><br> float gridlat_0 ( ygrid_0, xgrid_0 )<br> corners : ( 16.281, 17.34023, 55.48131, 54.17241 )<br> long_name : latitude<br> grid_type : Lambert Conformal (secant, tangent, conical or bipolar)<br> units : degrees_north<br> Latin2 : 25<br> Latin1 : 25<br> Dy : 13.545<br> Dx : 13.545<br> Lov : 265<br> Lo1 : 233.862<br> La1 : 16.281<br><br> float gridlon_0 ( ygrid_0, xgrid_0 )<br></div><div>[SNIP]<br></div><div><br></div>Your coordimates are contained in 2-dimenional variables.<br></div>Could you pls ftp the file to <br><br></div>ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a><br></div>anonymous<br></div>ypur_email<br></div>cd incoming<br></div>put rap_130_20160115_0000_000.grb2<br></div>quit<br><br>===<br><br></div>Attached is a simple script I have lying around. It does not use shape files. Try running it with your data.<br></div><br></div>Note:<br><br> lat2d = f->gridlat_0 ; these are 2D<br> lon2d = f->gridlon_0<br><br></div>Later,<br><br> res@vfXArray = lon2d<br> res@vfYArray = lat2d<br><br></div>Also, depending on you usage, you may want to rotate the winds.<br><br>===<br></div>FYI: I always helps to indicate which version of NCL you are using.<br><br></div>%> ncl -V<br><br>===<br></div>Also, printVarSummary( ...) of selected variables.<br><br></div>Good luck<br><div><div><div><div><br><br><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 12:48 PM, Black, Forrest (LARC-D318)[UNIVERSITIES SPACE RESEARCH ASSOCIATION] <span dir="ltr"><<a href="mailto:forrest.black@nasa.gov" target="_blank">forrest.black@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal">Hello, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am having difficulty plotting RAP data showing wind and reflectivity data overlaying a shapefile of the Northeast US. I looked to a previous correspondence you had on the
<a href="http://mailman.ucar.edu/pipermail/ncl-talk/2015-August/003632.html" target="_blank">subject</a>, but have been unable to fix the error. The map plots, but I get the message:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">“check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I uploaded the NCL script along with the relevant files to your ftp. The folder I uploaded is “ncl_talk_forrestblack.7z”. Attached to this email is also the script in case that is all you need.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you for your help,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>Forrest<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Forrest Black<u></u><u></u></p>
<p class="MsoNormal">NIFS Intern<u></u><u></u></p>
<p class="MsoNormal">Crew Systems & Aviation Operations<u></u><u></u></p>
<p class="MsoNormal">NASA Langley Research Center<u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:forrest.black@nasa.gov" target="_blank">forrest.black@nasa.gov</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>