Error with Pyart

85 views
Skip to first unread message

Paul McCrone - NOAA Federal

unread,
Jun 28, 2022, 5:24:22 PM6/28/22
to Py-ART Users
Hello,

I have a piece of python that I am struggling with. 

Here's the part that's failing
fig = plt.figure(figsize=[22, 22])

projct=ccrs.PlateCarree()

ax = plt.axes(projection=projct)

display = pyart.graph.RadarMapDisplay(radar)

print("----")
print("---")

display.plot_ppi_map('reflectivity', 1, vmin=-2, vmax=64, min_lon=minlon, max_lon=maxlon, \
    min_lat=minlat, max_lat=maxlat, \
    cmap='NWSRef', \
    lat_lines = local_lats, lon_lines = local_lons, \
    projection=projct, \
    lat_0=radar.latitude['data'][0],lon_0=radar.longitude['data'][0])

When I get to the display.plot_ppi_map, I crash.
Here's my error:
---
/home/mccrone/anaconda3/lib/python3.8/site-packages/pyart/graph/radarmapdisplay.py:284: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  ax = plt.axes(projection=projection)
Segmentation fault

This is failing on a Red Hat system.

This code is running on a separate CENTOS computer and running fine. 
Any thoughts?

sherma...@gmail.com

unread,
Jun 29, 2022, 11:49:13 AM6/29/22
to Py-ART Users
Hi Paul,

Hmm, what version of Py-ART are you using? We did some bug fixes of late and did a release, wondering if the newer version might help? There is also a bug currently with cftime that could possibly be causing the issue... cftime 1.6 I believe.

Zach

Paul McCrone - NOAA Federal

unread,
Jun 29, 2022, 11:58:43 AM6/29/22
to sherma...@gmail.com, Py-ART Users
Zach,

I am running arm_pyart-1.12.2-py38h71d37f0_0

I am running cftime-1.6.0

Thanks again!
Paul



--
You received this message because you are subscribed to a topic in the Google Groups "Py-ART Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyart-users/vpy0qHiPsGY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyart-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyart-users/122145a3-f1d8-4bb0-b24a-e97bc046177fn%40googlegroups.com.


--
V/R,
Paul McCrone
National Weather Service Radar Operations Center, Field Requirements Branch
120 David L. Boren Blvd., Suite 3700
Norman, OK 73072
Telephone:  405-546-1013 (*Google*)
Cell phone:  831-224-2701

sherma...@gmail.com

unread,
Jun 29, 2022, 12:05:47 PM6/29/22
to Py-ART Users
Ah gotcha, can you try a newer version of Py-ART? we are at 1.12.5, if that doesnt work, can you trying scaling back cftime to 1.5.1? I'm wondering if its a release issue..

Zach S.

sherma...@gmail.com

unread,
Jun 29, 2022, 12:06:22 PM6/29/22
to Py-ART Users
We've seen this error before to with users using CyLP, if your not using that, shouldn't be the cause

Paul McCrone - NOAA Federal

unread,
Jun 29, 2022, 12:07:21 PM6/29/22
to sherma...@gmail.com, Py-ART Users
Zach, I will try the new version of pyart first.
Thanks
Paul

Paul McCrone - NOAA Federal

unread,
Jun 29, 2022, 12:16:54 PM6/29/22
to sherma...@gmail.com, Py-ART Users
Zach, I update to 1.12.5. Still get a segmentation fault. I am downgrading to cftime 1.5.1
Regards,
Paul

sherma...@gmail.com

unread,
Jun 29, 2022, 3:28:58 PM6/29/22
to Py-ART Users
Ah gotcha.. hmm, so ill do an update on the warnings to suppress them, maybe many plots, its causing an overflow of text from the warnings. cftime updated too, so we will do a release here soon and I can ping here once its available.

Paul McCrone - NOAA Federal

unread,
Jun 29, 2022, 3:35:04 PM6/29/22
to sherma...@gmail.com, Py-ART Users
Thanks Zach, your support is appreciated!

Regards,
Paul McCrone

sherma...@gmail.com

unread,
Jun 30, 2022, 11:04:01 AM6/30/22
to Py-ART Users
Paul,

We did an update and cftime did a big fix. I also did a warning catch to ignore those warnings. I'm hoping this helps solve the issue. cftime 1.6.0 and pyart 1.12.6 are both the newer versions.

Zach S.

Paul McCrone - NOAA Federal

unread,
Jun 30, 2022, 12:28:47 PM6/30/22
to sherma...@gmail.com, Py-ART Users
Hi Zach,

I will install today.

Regards,
Paul



Paul McCrone - NOAA Federal

unread,
Jun 30, 2022, 12:47:07 PM6/30/22
to sherma...@gmail.com, Py-ART Users
Hi Zach,

Another Segentation fault.

Paul

sherma...@gmail.com

unread,
Jun 30, 2022, 1:48:31 PM6/30/22
to Py-ART Users
Hmm, i'm trying to think what else to try, for the system that this is occurring on, are you using an anaconda environment?

sherma...@gmail.com

unread,
Jun 30, 2022, 1:51:58 PM6/30/22
to Py-ART Users
Another thing to try is to possibly pinpoint where its coming from:
https://docs.python.org/3/library/faulthandler.html
Using faulthandler to pinpoint possible cause. I haven't had any luck reproducing it on my end

ZachS

Maxwell Grover

unread,
Jun 30, 2022, 2:10:37 PM6/30/22
to sherma...@gmail.com, Py-ART Users
You could try reinstalling pandas - one user indicated that helped solve a similar problem.



You received this message because you are subscribed to the Google Groups "Py-ART Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyart-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyart-users/970b0555-ce92-4fca-96c1-35b200b2f4bbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages