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