-
So I'm following the tutorial and when I get to this part and run it (along with the other code): But upon running it (in command prompt), I get zero results. No image file generated or window pop up of the radar data. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
@softieeeeee Hmmm I know notebooks can be tricky with plots showing. Can you try plt.show() at the end of your code or
in your import cell. |
Beta Was this translation helpful? Give feedback.
-
Using |
Beta Was this translation helpful? Give feedback.
-
Can't tell, is that calling plt.show()? I would try maybe
What system are you using, I am using linux and plt.show() works, but not sure if it changes between OS |
Beta Was this translation helpful? Give feedback.
-
I'm on Windows 10 64-bit (editing the file in VSCode). Maybe that is likely the reason it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
@softieeeeee - can you try printing results = conn.download(scans[0:4], templocation)
print(results) That way we can ensure that the files are downloaded, and stored locally. If that works, then make sure to add the figure to the plotting line: fig = plt.figure(figsize=(16,12))
for i,scan in enumerate(results.iter_success(),start=1):
ax = fig.add_subplot(2,2,i)
radar = scan.open_pyart()
display = pyart.graph.RadarDisplay(radar)
display.plot('velocity', 1, ax=ax, fig=fig, title="{} {}".format(scan.radar_id,scan.scan_time))
display.set_limits((-150, 150), (-150, 150), ax=ax) Give that a try and let us know if that solves this issue. |
Beta Was this translation helpful? Give feedback.
-
Yes, I did replaced the code I had with what you provided me. Also small question, does the radar image get generated as an image file or a window popup? |
Beta Was this translation helpful? Give feedback.
Yes, I did replaced the code I had with what you provided me. Also small question, does the radar image get generated as an image file or a window popup?