-
Hi! I am trying to use the LP Phase Processing function and I always encounter this message on the console saying Fatal Python Error Aborted. Do you happen to know what is causing this? Here is what the console flashes: runfile('/home/jeff/.config/spyder-py3/Phase processing', wdir='/home/jeff/.config/spyder-py3') You are using the Python ARM Radar Toolkit (Py-ART), an open sourcelibrary for working with weather radar data. Py-ART is partlysupported by the U.S. Department of Energy as part of the AtmosphericRadiation Measurement (ARM) Climate Research Facility, an Office ofScience user facility.If you use this software to prepare a publication, please cite:JJ Helmus and SM Collis, JORS 2016, doi: 10.5334/jors.119:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead Fatal Python error: Aborted Main thread: Restarting kernel... Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hmm, @raffyjef which solver are you using? Can you share your code for that section? CyLP has been giving us issues of late. |
Beta Was this translation helpful? Give feedback.
-
I assume it uses pyglpk as solver since I did not specify any solver in using the function. Here is my whole code. Thank you #!/usr/bin/env python3 -- coding: utf-8 --""" @author: jeff import numpy as np perform LP phase processingfilename = 'Copy of TAG201808110830db.uf' ncp_values = np.ones((radar.nrays, radar.ngates)) Forcing the first sweep to be processedradar.sweep_start_ray_index['data'] = np.array([0]) phidp, kdp = pyart.correct.phase_proc_lp(radar, 0.0, debug=True) Creating plot of the various differential phase fieldsdisplay = pyart.graph.RadarDisplay(radar) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 = fig.add_subplot(224) plot a fields from a single raydisplay = pyart.graph.RadarDisplay(radar) filtered phidp and unfolded phidpdisplay.plot_ray('proc_dp_phase_shift', ray_num, format_str='b-', display.plot_ray('unfolded_differential_phase', ray_num, format_str='g-', set labelsax.set_ylim(0, 250) plot KDP and reflectivity on second axisax2 = ax.twinx() decorateax2.yaxis.grid(color='gray', linestyle='dashed') |
Beta Was this translation helpful? Give feedback.
-
Hi! I think you right that its a solver's problem. I tried using this: phidp, kdp = pyart.correct.phase_proc_lp(radar, 0.0, debug=True, LP_solver='pyglpk') And it worked! |
Beta Was this translation helpful? Give feedback.
-
Ah gotcha! Glad you got it to work! |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing out! |
Beta Was this translation helpful? Give feedback.
Hi! I think you right that its a solver's problem. I tried using this:
phidp, kdp = pyart.correct.phase_proc_lp(radar, 0.0, debug=True, LP_solver='pyglpk')
And it worked!