In [1]:
############################################
# This code adds davitpy to your python path
# Eventually, this won't be necessary
import sys
sys.path.append('/davitpy')
############################################
In [3]:
# Import radar module
from pydarn.radar import *
In [4]:
radars = network()
print radars
In [5]:
# How to get the total number of radars
print len(radars)
print radars.nradar
In [6]:
# How to get a specific radar from the mountain of recorded radars
print radars.getRadarByCode("bks")
# is equivalent to...
#print radars.getRadarById(33)
#print, radars.getRadarByName("Blackstone")
In [7]:
# How to get a specific radar site information at a given date
from datetime import datetime
print radars.getRadarByName('Goose Bay').getSiteByDate(datetime(2011,1,4))
In [8]:
# How to get only one radar without getting all the other radars
rad = radar(code='bks')
print rad
In [9]:
# How to get a site without going trhough the whole network or radar classes
print site(code='bks', dt=datetime(2010,11,17))
In [ ]: