<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Ryan,</div><div class=""><br class=""></div><div class="">You might try looking here:</div><div class=""><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml" class="">http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml</a></div><div class=""><br class=""></div><div class="">Check out point 2 talking about lat2d and lon2d.</div><div class=""><br class=""></div><div class="">It might be as simple a fix as&nbsp;</div><div class=""><br class=""></div><div class="">rd_plane@lat2d = rlat</div><div class="">rd_plane@lon2d = rlon</div><div class=""><br class=""></div><div class="">It should associate lat/lon point wise like you are looking for.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-Alex</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 20, 2016, at 3:31 PM, Ryan Connelly &lt;<a href="mailto:rconne01@gmail.com" class="">rconne01@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hi Mary,<div class=""><br class=""></div><div class="">Thanks for getting back to me.&nbsp; Sorry about the delay on my end.</div><div class=""><br class=""></div><div class=""><font face="monospace, monospace" class="">printVarSummary of the rlat (or rlon) array shows</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><div class=""><font face="monospace, monospace" class="">Variable: rlat</font></div><div class=""><font face="monospace, monospace" class="">Type: float</font></div><div class=""><font face="monospace, monospace" class="">Total Size: 131044 bytes</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32761 values</font></div><div class=""><font face="monospace, monospace" class="">Number of Dimensions: 2</font></div><div class=""><font face="monospace, monospace" class="">Dimensions and sizes:<span class="" style="white-space: pre;">        </span>[y0 | 181] x [x0 | 181]</font></div><div class=""><font face="monospace, monospace" class="">Coordinates:&nbsp;</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y0: [-120..119.94]</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x0: [-120..119.94]</font></div><div class=""><font face="monospace, monospace" class="">Number Of Attributes: 3</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; _FillValue :<span class="" style="white-space: pre;">        </span>41.94297</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; standard_name :<span class="" style="white-space: pre;">        </span>latitude</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; units :<span class="" style="white-space: pre;">        </span>degrees_north</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">and for rd_plane shows</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">Variable: rd_plane</font></div><div class=""><font face="monospace, monospace" class="">Type: float</font></div><div class=""><font face="monospace, monospace" class="">Total Size: 131044 bytes</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32761 values</font></div><div class=""><font face="monospace, monospace" class="">Number of Dimensions: 2</font></div><div class=""><font face="monospace, monospace" class="">Dimensions and sizes:<span class="" style="white-space: pre;">        </span>[y0 | 181] x [x0 | 181]</font></div><div class=""><font face="monospace, monospace" class="">Coordinates:&nbsp;</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y0: [-120..119.94]</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x0: [-120..119.94]</font></div><div class=""><font face="monospace, monospace" class="">Number Of Attributes: 12</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; z0 :<span class="" style="white-space: pre;">        </span><span class="Apple-converted-space">&nbsp;</span>2</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; time :<span class="" style="white-space: pre;">        </span>1424628563</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; grid_mapping :<span class="" style="white-space: pre;">        </span>grid_mapping_0</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; coordinates :<span class="" style="white-space: pre;">        </span>lon0 lat0</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; units :<span class="" style="white-space: pre;">        </span>dBZ</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; long_name :<span class="" style="white-space: pre;">        </span>radar_reflectivity</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; standard_name :<span class="" style="white-space: pre;">        </span>REF</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; _FillValue :<span class="" style="white-space: pre;">        </span>9.96921e+36</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; valid_max :<span class="" style="white-space: pre;">        </span>25.3757</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; valid_min :<span class="" style="white-space: pre;">        </span>-9.187451</font></div></div><div class=""><br class=""></div><div class="">printMinMax shows:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">(0)<span class="" style="white-space: pre;">        </span>latitude: min=39.779 &nbsp; max=41.943</font></div><div class=""><font face="monospace, monospace" class="">(0)<span class="" style="white-space: pre;">        </span>longitude: min=-74.313 &nbsp; max=-71.4156</font></div></div><div class=""><br class=""></div><div class="">The values of rlat and rlon are the correct latitude and longitude values, but the trouble seems to be in matching the i,j'th point in rd_plane with the lat,lon contained in the i'th point of rlon and j'th point of rlat, so that the code can plot radar reflectivity in the correct place.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Ryan</div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Sun, Jul 10, 2016 at 11:53 PM, Mary Haley<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><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" class=""><div class="gmail_default" style="font-size: small;">Hi Ryan,</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">You can't use wrf_xxxx functions to plot anything but WRF-ARW data.&nbsp; These functions assume that you are using WRF files with names like "wrfout_d01_2008-09-28_00:00:00" 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.&nbsp; This is one of the required global attributes.</div><div class="gmail_default" style="font-size: small;"><br class=""></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.&nbsp; 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 class=""></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 class=""></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml</a><br class=""></div><div class="gmail_default"><br class=""></div><div class="gmail_default">You might also want to look at this page:</div><div class="gmail_default"><br class=""></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/radar.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Applications/radar.shtml</a><br class=""></div><div class="gmail_default"><br class=""></div><div class="gmail_default"><br class=""></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Fri, Jul 8, 2016 at 4:35 PM, Ryan Connelly<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:rconne01@gmail.com" target="_blank" class="">rconne01@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""></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 class=""><div class="h5"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I have Level II radar data in netcdf format (using radx and the steps outlined here:&nbsp;<a href="https://publish.illinois.edu/snesbitt/resources/radar-data-processing-with-radx/" target="_blank" class="">https://publish.illinois.edu/snesbitt/resources/radar-data-processing-with-radx/</a>).</div><div class=""><br class=""></div><div class="">I want to overlay it on a base map, in the same way I would with WRF data.&nbsp; Here's a highly condensed version of what I have:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">rf &nbsp; &nbsp;= addfile(diri+fili,"r")</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp;rd &nbsp; &nbsp;= rf-&gt;REF(:,:,:,:) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; float REF(time, z0, y0, x0) ; RHO, ZDR</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><span style="font-family: monospace, monospace;" class="">&nbsp; &nbsp; &nbsp; &nbsp;rd_plane = rd(0,0,:,:)</span><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp;contour = &nbsp;gsn_csm_contour(wks,rd_plane,radres)</font></div><div class=""><font face="monospace, monospace" class="">&nbsp; &nbsp; &nbsp; &nbsp;plot = wrf_map_overlays(rf,wks,(/contour/),radres,mpres)</font></div></div><div class=""><br class=""></div><div class="">I was just assuming the netcdf had location data packaged into it, but I get the error:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">(0)<span style="white-space: pre-wrap;" class="">        </span>wrf_map: Error: no MAP_PROJ attribute in input file</font></div><div class=""><font face="monospace, monospace" class="">fatal:overlay: missing value as input, can't continue</font></div></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thanks,</div><div class="">Ryan</div><span class=""><font color="#888888" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><font size="1" class="">Ryan Connelly</font></div><div dir="ltr" class=""><div dir="ltr" style="font-size: 12.8px;" class=""><font class=""><font size="1" class="">M.S. Student in Atmospheric Sciences,&nbsp;</font><span style="font-size: x-small;" class="">Stony Brook University</span><br class=""></font></div><div dir="ltr" style="font-size: 12.8px;" class=""><div class=""><font class=""><font size="1" class="">B.S. in Meteorology with Minors in Mathematics and GIS,&nbsp;</font><span style="font-size: x-small;" class="">Valparaiso University</span></font></div></div><div class=""><a href="mailto:rconne01@gmail.com" target="_blank" style="font-size: x-small;" class="">rconne01@gmail.com</a><br class=""></div><div class=""><font size="1" class=""><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank" class="">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div></font></span></div></div><br class=""></div></div>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""><br class=""></blockquote></div><br class=""></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><font size="1" class="">Ryan Connelly</font></div><div dir="ltr" class=""><div dir="ltr" style="font-size: 12.8000001907349px;" class=""><font class=""><font size="1" class="">M.S. Student in Atmospheric Sciences,&nbsp;</font><span style="font-size: x-small;" class="">Stony Brook University</span><br class=""></font></div><div dir="ltr" style="font-size: 12.8000001907349px;" class=""><div class=""><font class=""><font size="1" class="">B.S. in Meteorology with Minors in Mathematics and GIS,&nbsp;</font><span style="font-size: x-small;" class="">Valparaiso University</span></font></div></div><div class=""><a href="mailto:rconne01@gmail.com" target="_blank" style="font-size: x-small;" class="">rconne01@gmail.com</a><br class=""></div><div class=""><font size="1" class=""><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank" class="">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-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ncl-talk mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ncl-talk@ucar.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ncl-talk@ucar.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List instructions, subscriber options, unsubscribe:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""></body></html>