Nice!
As for your error, I took a quick look at your script. If you use Basemap, you
should draw the coastlines on the map object, m. Not the axis object, ax.
m.drawcoatlines()
Sent from Mail for Windows 10
From: Ryan Connelly
Sent: Tuesday, April 25, 2017 4:39 PM
To: Brian Blaylock
Cc: python-users@xxxxxxxxxxxxxxxx
Subject: Re: [python-users] MetPy NEXRAD Level 2 - Can get lat, lon out to
usefor plotting map?
Hi Kevin and Brian,
I used Brian's script, which successfully georeferences the radar data. But
I'm still not getting my Cartopy features to show up. I would just use
Basemap, except that that throws an error:
AttributeError: 'GeoAxesSubplot' object has no attribute 'drawcoastlines'.
I've attached my modified version of the code, as well as an example plot.
Thanks,
Ryan
On Tue, Apr 25, 2017 at 11:06 AM, Brian Blaylock <blaylockbk@xxxxxxxxx> wrote:
Hi Ryan,
I was just about to reply, when I saw Kevin's email. I did what he suggested
(using pyproj to convert the range and azimuth to a latitude longitude). I
documented my method here:
http://kbkb-wx-python.blogspot.com/2016/07/plotting-radar-data-with-metpy-pyproj.html
Brian
On Mon, Apr 24, 2017 at 4:36 PM, Ryan Connelly <rconne01@xxxxxxxxx> wrote:
Hi,
Using this code:
https://unidata.github.io/MetPy/examples/formats/NEXRAD_Level_2_File.html#sphx-glr-examples-formats-nexrad-level-2-file-py
Ideally, I should be able to just extract a lat and a lon variable from the
file, except that I don't know if they exist, and if they do, what their names
are.
>From there, I'd like to plot the georeferenced data over a base map using
>CartoPy. Is this possible? (I just happen to already have some shapefiles on
>hand that I want to use that I know CartoPy can read in.)
Thanks,
Ryan
--
Ryan Connelly
M.S. Student in Atmospheric Sciences, Stony Brook University
B.S. in Meteorology with Minors in Mathematics and GIS, Valparaiso University
rconne01@xxxxxxxxx
ryan.connelly@xxxxxxxxxxxxxx
_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web. Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.
python-users mailing list
python-users@xxxxxxxxxxxxxxxxxxxxxxxx
For list information, to unsubscribe, or change your membership options, visit:
http://www.unidata.ucar.edu/mailing_lists/
--
Ryan Connelly
M.S. Student in Atmospheric Sciences, Stony Brook University
B.S. in Meteorology with Minors in Mathematics and GIS, Valparaiso University
rconne01@xxxxxxxxx
ryan.connelly@xxxxxxxxxxxxxx