<div dir="ltr">Alex,<div><br></div><div>Thanks!  That and a few other changes got it working.  My last problem now is that I can&#39;t get state outlines to plot, even though I think I have the necessary resources set:</div><div><br></div><div><div>        <font face="monospace, monospace">radres@mpUSStateLineColor     = &quot;Black&quot;</font></div><div><font face="monospace, monospace">    radres@mpUSStateLineThicknessF = 2.0</font><br></div></div><div><br></div><div>I get coastal outlines, but nothing else. </div><div><br></div><div>Thanks,</div><div>Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 3:44 PM, Alexander Schaefer <span dir="ltr">&lt;<a href="mailto:aschae11@uncc.edu" target="_blank">aschae11@uncc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Ryan,</div><div><br></div><div>You might try looking here:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml</a></div><div><br></div><div>Check out point 2 talking about lat2d and lon2d.</div><div><br></div><div>It might be as simple a fix as </div><div><br></div><div>rd_plane@lat2d = rlat</div><div>rd_plane@lon2d = rlon</div><div><br></div><div>It should associate lat/lon point wise like you are looking for.</div><div><br></div><div>Cheers,</div><div>-Alex</div><div><div class="h5"><div><br></div><div><br></div><div><br></div><br><div><blockquote type="cite"><div>On Jul 20, 2016, at 3:31 PM, Ryan Connelly &lt;<a href="mailto:rconne01@gmail.com" target="_blank">rconne01@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Hi Mary,<div><br></div><div>Thanks for getting back to me.  Sorry about the delay on my end.</div><div><br></div><div><font face="monospace, monospace">printVarSummary of the rlat (or rlon) array shows</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">Variable: rlat</font></div><div><font face="monospace, monospace">Type: float</font></div><div><font face="monospace, monospace">Total Size: 131044 bytes</font></div><div><font face="monospace, monospace">            32761 values</font></div><div><font face="monospace, monospace">Number of Dimensions: 2</font></div><div><font face="monospace, monospace">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[y0 | 181] x [x0 | 181]</font></div><div><font face="monospace, monospace">Coordinates: </font></div><div><font face="monospace, monospace">            y0: [-120..119.94]</font></div><div><font face="monospace, monospace">            x0: [-120..119.94]</font></div><div><font face="monospace, monospace">Number Of Attributes: 3</font></div><div><font face="monospace, monospace">  _FillValue :<span style="white-space:pre-wrap">        </span>41.94297</font></div><div><font face="monospace, monospace">  standard_name :<span style="white-space:pre-wrap">        </span>latitude</font></div><div><font face="monospace, monospace">  units :<span style="white-space:pre-wrap">        </span>degrees_north</font></div></div><div><br></div><div><br></div><div>and for rd_plane shows</div><div><br></div><div><br></div><div><div><font face="monospace, monospace">Variable: rd_plane</font></div><div><font face="monospace, monospace">Type: float</font></div><div><font face="monospace, monospace">Total Size: 131044 bytes</font></div><div><font face="monospace, monospace">            32761 values</font></div><div><font face="monospace, monospace">Number of Dimensions: 2</font></div><div><font face="monospace, monospace">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[y0 | 181] x [x0 | 181]</font></div><div><font face="monospace, monospace">Coordinates: </font></div><div><font face="monospace, monospace">            y0: [-120..119.94]</font></div><div><font face="monospace, monospace">            x0: [-120..119.94]</font></div><div><font face="monospace, monospace">Number Of Attributes: 12</font></div><div><font face="monospace, monospace">  z0 :<span style="white-space:pre-wrap">        </span><span> </span>2</font></div><div><font face="monospace, monospace">  time :<span style="white-space:pre-wrap">        </span>1424628563</font></div><div><font face="monospace, monospace">  grid_mapping :<span style="white-space:pre-wrap">        </span>grid_mapping_0</font></div><div><font face="monospace, monospace">  coordinates :<span style="white-space:pre-wrap">        </span>lon0 lat0</font></div><div><font face="monospace, monospace">  units :<span style="white-space:pre-wrap">        </span>dBZ</font></div><div><font face="monospace, monospace">  long_name :<span style="white-space:pre-wrap">        </span>radar_reflectivity</font></div><div><font face="monospace, monospace">  standard_name :<span style="white-space:pre-wrap">        </span>REF</font></div><div><font face="monospace, monospace">  _FillValue :<span style="white-space:pre-wrap">        </span>9.96921e+36</font></div><div><font face="monospace, monospace">  valid_max :<span style="white-space:pre-wrap">        </span>25.3757</font></div><div><font face="monospace, monospace">  valid_min :<span style="white-space:pre-wrap">        </span>-9.187451</font></div></div><div><br></div><div>printMinMax shows:</div><div><br></div><div><div><font face="monospace, monospace">(0)<span style="white-space:pre-wrap">        </span>latitude: min=39.779   max=41.943</font></div><div><font face="monospace, monospace">(0)<span style="white-space:pre-wrap">        </span>longitude: min=-74.313   max=-71.4156</font></div></div><div><br></div><div>The values of rlat and rlon are the correct latitude and longitude values, but the trouble seems to be in matching the i,j&#39;th point in rd_plane with the lat,lon contained in the i&#39;th point of rlon and j&#39;th point of rlat, so that the code can plot radar reflectivity in the correct place.</div><div><br></div><div>Thanks,</div><div>Ryan</div></div><div class="gmail_extra" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br><div class="gmail_quote">On Sun, Jul 10, 2016 at 11:53 PM, Mary Haley<span> </span><span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Ryan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can&#39;t use wrf_xxxx functions to plot anything but WRF-ARW data.  These functions assume that you are using WRF files with names like &quot;wrfout_d01_2008-09-28_00:00:00&quot; which have a bunch of global attributes in them that define the native map projection of the WRF data. This is why you were getting an error about MAP_PROJ being undefined.  This is one of the required global attributes.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are trying to plot the data over a map, then you will need to examine your file and your data variable (rd_plane) to determine if it is also on some native map projection, or whether you need to provide lat/lon coordinates for plotting.  I then suggest using the gsn_csm_contour or gsn_csm_contour_map functions to generate just contours, or contours over a map.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please see this page for some examples on how to plot data over a map using NCL:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">You might also want to look at this page:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/radar.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/radar.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Jul 8, 2016 at 4:35 PM, Ryan Connelly<span> </span><span dir="ltr">&lt;<a href="mailto:rconne01@gmail.com" target="_blank">rconne01@gmail.com</a>&gt;</span><span> </span>wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>I have Level II radar data in netcdf format (using radx and the steps outlined here: <a href="https://publish.illinois.edu/snesbitt/resources/radar-data-processing-with-radx/" target="_blank">https://publish.illinois.edu/snesbitt/resources/radar-data-processing-with-radx/</a>).</div><div><br></div><div>I want to overlay it on a base map, in the same way I would with WRF data.  Here&#39;s a highly condensed version of what I have:</div><div><br></div><div><div><font face="monospace, monospace">rf    = addfile(diri+fili,&quot;r&quot;)</font></div><div><font face="monospace, monospace">       rd    = rf-&gt;REF(:,:,:,:)          ; float REF(time, z0, y0, x0) ; RHO, ZDR</font></div><div><font face="monospace, monospace"><br></font></div><div><span style="font-family:monospace,monospace">       rd_plane = rd(0,0,:,:)</span><br></div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">       contour =  gsn_csm_contour(wks,rd_plane,radres)</font></div><div><font face="monospace, monospace">       plot = wrf_map_overlays(rf,wks,(/contour/),radres,mpres)</font></div></div><div><br></div><div>I was just assuming the netcdf had location data packaged into it, but I get the error:</div><div><br></div><div><div><font face="monospace, monospace">(0)<span style="white-space:pre-wrap">        </span>wrf_map: Error: no MAP_PROJ attribute in input file</font></div><div><font face="monospace, monospace">fatal:overlay: missing value as input, can&#39;t continue</font></div></div><div><br></div><div>I tried adding in a wrf file I had laying around and using it for map plotting, and while that got be a basemap, by radar data was obviously not matched geographically (it showed the KOKX RDA over New York City!).</div><div><br></div><div>Thanks,</div><div>Ryan</div><span><font color="#888888"><div><br></div>--<span> </span><br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8px"><div><font><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div></font></span></div></div><br></div></div>_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>--<span> </span><br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px"><font><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8000001907349px"><div><font><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">ncl-talk mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:ncl-talk@ucar.edu" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">ncl-talk@ucar.edu</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">List instructions, subscriber options, unsubscribe:</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px"><font color="#000000"><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8000001907349px"><div><font color="#000000"><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</div>