Closed carleyjmartin closed 1 month ago
Should this be working for mapex or map2 files? NUM_VECTORS is working for me when I use map2 data but the potential plot is blank (might be a data issue).
Should this be working for mapex or map2 files? NUM_VECTORS is working for me when I use map2 data but the potential plot is blank (might be a data issue).
I'm not sure, it should work for map2 files as I use them too, but I've never used or tested (or heard of) mapx files, but they should all be of the same format. There was a quick bug that I tried to fix where if the first record was a partial record and didn't have any vector fields then it broke, but now it just doesn't plot that record, it could be that the vector.mlat value or the values needed to calculate potential aren't in those files/ called something else? But I think they should all be of the same format and field names if they're in use in the community. Could you email me or zip up a mapx file to check out on here?
Tested with the provided test code and data on Windows 10 with matplotlib 3.9.1
Testing an empty or incorrect potential_position
both returned the following user warning:
`UserWarning: A valid magnetic position with format [mlon, mlat] is required to plot the potential at a given location. E.G. potential_position = [-110, 78]'
Plots that were made look like the ones expected. I didn't play around with it much since I don't have an eye for this data and what it should look like.
Scope
This PR includes the addition of a time series plot option for plotting the potential calculated at a specific mlon, mlat in a map potential.
issue: to close #368
Approval
Number of approvals: 2
Test
matplotlib version: 3.9.1
NOTE THERE IS A NUMPY BUG IN PYDARNIO, DOWNGRADE NUMPY TO 1.26.4 OR BELOW, PLEASE TEST IN A VIRTUAL ENVIRONMENT. This is out of scope for pyDARN and will be fixed in pyDARNio later.
Note testers: please indicate what version of matplotlib you are using
You should get two plots:
and a console output of: