Closed carleyjmartin closed 1 month ago
Tested on Windows 10 with Matplotlib version 3.9.1 and numpy version 1.26.4
I was able to recreate the same plots as shown by Carley using the test code provided. The plot_fan_input
also worked for different projections. Additionally when a improperly formatted array was passed in as the data array, I got the following warning which seems appropriate:
UserWarning: The data you have inputted to the method does not match the expected number of beams for this radar. The data will still plot, but the position of the extra beams may not be as expected.
Also able to plot FOVs alongside this new function.
Scope
This pull request hopes to give an option to anyone who needs more flexibility to the fan plots. You can essentially plot whatever data you want at any time for any radar, given you can make the data be in the right format.
You will need to make a 2D list of data that matches the FOV of the target radar, where no data is given as NaN values, data is given as a float, and an array of 0,1 in the same dimensions will act as groundscatter with the dimensions [ranges, beams].
issue: to close #387
Approval
Number of approvals: 2
Test
matplotlib version: 3.9.1 Note testers: please indicate what version of matplotlib you are using
Note: If you come across an error that traces back to numpy or pydarnio, please downgrade numpy, it is out of scope of pyDARN to fix this. There will also likely be a merge conflict, so be aware.
Lots of plots, not much science, mainly for examples!