SuperDARN / pydarn

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

New Feature: IQ Plotting/Reading #320

Closed carleyjmartin closed 10 months ago

carleyjmartin commented 1 year ago

New Feature

Name: plot_iq

module: iq.py

package: plotting/io

Scope

What will the feature do? This feature is in two parts, there is some IQ reading in pydarnio which we can get through into the superdarn_io module, and then add some plotting features to be able to plot the IQ data. This feature has been requested by a PI.

What will the feature not do? Analysis or conversion of IQ data.

pyDARN Checklist

Development help

Will likely need scientific help to test at the end.

User Interface

iq_data = SDarn_file.read_iq()
pydarn.IQ.plot_iq(iq_data, ...)

Extra Notes

Please provide any other details about this feature

NOTE: Add documentation for this too!

carleyjmartin commented 1 year ago

As it turns out, time series of any of the scalar products in IQ files is already working in pyDARN :D

mport pydarn
import matplotlib.pyplot as plt

iq_file = '/Users/carley/Desktop/20160113.1601.00.cly.iqdat'
iq_data = pydarn.SuperDARNRead(iq_file).read_iqdat()

print(iq_data[0].keys())

pydarn.RTP.plot_time_series(iq_data, beam_num = 7, parameter='mxpwr')
plt.show()