SuperDARN / pydarn

Python library for visualizing SuperDARN Data
GNU Lesser General Public License v3.0
31 stars 11 forks source link

New time of flight range estimation #360

Closed RemingtonRohel closed 8 months ago

RemingtonRohel commented 8 months ago

Scope

New range estimation variant, using time of flight.

issue: #348

Approval

Number of approvals: 1

Test

matplotlib version: 3.7.2

Try this modified snippet from the summary plotting tutorial https://pydarn.readthedocs.io/en/main/user/summary/

import matplotlib.pyplot as plt

import pydarn

fitacf_file = "20190831.C0.cly.fitacf"
darn_read = pydarn.SuperDARNRead(fitacf_file)
fitacf_data = darn_read.read_fitacf()

pydarn.RTP.plot_summary(fitacf_data, beam_num=2,
                        range_estimation=pydarn.RangeEstimation.TIME_OF_FLIGHT)
plt.show()
carleyjmartin commented 8 months ago

This also needs some changes in the rtp.py module too for the axes and stuff to make sense. Maybe a line in fan.py that stops the plot from using this range estimate?

(Let me know if you want me to sort that out)

Otherwise everything works!

RemingtonRohel commented 8 months ago

If you would like to sort that out I would appreciate it, I am less familiar with where RangeEstimations are all used! Thanks