SuperDARN / pydarn

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

Summary/RTP pots in the style of the VT Superdarn Site #399

Closed PrestonXPitzer closed 1 month ago

PrestonXPitzer commented 1 month ago

Scope

This adds a function that produces RTI plots in the same way as they appear on vt.superdarn.org.

issue:

Approval

Looking for 2 Approvals

Test

matplotlib version: Note testers: please indicate what version of matplotlib you are using

import pydarn
import datetime
import bz2
import matplotlib.pyplot as plt

def test_vt_rtp():
    with bz2.open('20170101.0000.02.bks.fitacf3.bz2') as f:
        stream = f.read()
    reader = pydarn.SuperDARNRead(stream, True)
    dmap_data = reader.read_fitacf()

    pydarn.RTP.vt_web_rtp(dmap_data, beam_num=11)   
    plt.show()

if __name__ == '__main__':
    test_vt_rtp()

Should produce something like image

carleyjmartin commented 1 month ago

Thanks Preston! I've integrated some of the code into the summary plot method as we probably don't need a whole new method just for this little tweak, and this version is specific for your back-end needs! You can check out the tweaks to the summary plot method in #400