SuperDARN / rst

Radar Software Toolkit (RST)
https://superdarn.github.io/rst/
GNU General Public License v3.0
21 stars 16 forks source link

Fixing bug in time_plot when plotting snd data #602

Closed egthomas closed 1 month ago

egthomas commented 8 months ago

This pull request fixes a bug in time_plot where the last snd record before the end of minute would be plotted at the wrong time.

For example, the plots below are for 4 minutes of simulated snd mode data where the frequency increases on two different beams at the end of each minute. You can see in the first attached plot how the highest frequency (orange) of the second beam comes just before the next minute's data:

snd_timeplot_wrong

On this branch, the bug is fixed and the last snd record of each scan is now plotted at the correct times (ie connected to the other records at the end of the minute):

snd_timeplot_fixed

These plots were produced using

time_plot -x -snd -a -st 14:00 -et 14:04 20231011.14.cve.snd

and here is the zipped file of simulated snd data:

20231011.14.cve.snd.gz

No functionality has changed when plotting fit / fitacf files (or any other format).