SuperDARN / pydarn

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

EHN: Addition of NSSC Radars #369

Closed carleyjmartin closed 5 months ago

carleyjmartin commented 7 months ago

Scope

This PR includes an update to the submodule hdw to get the new hdw files. Inclusion of SZE, SZW, HJE, HJW, LJE and LJW to the radars dictionary for information not included in hdw files.

issue: will close #365

Approval

Number of approvals: 2

Test

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

MAKE SURE THE HDW REPO IN utils/hdw CONTAINS THE NEW HDW FILES ON INSTALLATION OF THIS BRANCH

We can plot the FOV for now:

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

stids = [51,52,53,54,55,56]
cols = ['salmon','salmon','gold','gold','cornflowerblue','cornflowerblue']
plt.figure(figsize=(8, 8))
rtn=pydarn.Fan.plot_fov(stids[0], datetime(2021, 2, 5, 18, 5),
                        fov_color= cols[0],radar_location=True,
                        radar_label=True, coastline=True)

for i, stid in enumerate(stids[1:]):
    rtn=pydarn.Fan.plot_fov(stid, datetime(2021, 2, 5, 18, 5), ax=rtn['ax'],
                            ccrs=rtn['ccrs'], fov_color= cols[i+1],
                            radar_location=True, radar_label=True,
                            coastline=True)
plt.show()

Which will plot: Screenshot 2024-01-24 at 10 11 45 AM