Ejemplo n.º 1
0
 def getStations(self):
    lat  = Common.clean(self._file.variables["Lat"])
    lon  = Common.clean(self._file.variables["Lon"])
    id   = Common.clean(self._file.variables["Location"])
    elev = Common.clean(self._file.variables["Elev"])
    stations = list()
    for i in range(0, lat.shape[0]):
       station = Station.Station(id[i], lat[i], lon[i], elev[i])
       stations.append(station)
    return stations
Ejemplo n.º 2
0
 def getDates(self):
    return Common.clean(self._file.variables["Date"])
Ejemplo n.º 3
0
 def getScores(self, metric):
    metric = self._toPvarComps(metric)
    temp = Common.clean(self._file.variables[metric])
    return temp
Ejemplo n.º 4
0
 def getQuantiles(self):
    return Common.clean(self._file.variables["quantiles"])
Ejemplo n.º 5
0
 def getOffsets(self):
    return Common.clean(self._file.variables["offset"])
Ejemplo n.º 6
0
 def getThresholds(self):
    return Common.clean(self._file.variables["thresholds"])
Ejemplo n.º 7
0
 def getCdf(self, threshold):
    #thresholds = getThresholds()
    #I = np.where(thresholds == threshold)[0]
    #assert(len(I) == 1)
    temp = Common.clean(self._file.variables["cdf"])
    return temp
Ejemplo n.º 8
0
 def getEns(self):
    return Common.clean(self._file.variables["ens"])
Ejemplo n.º 9
0
 def getFcst(self):
    return Common.clean(self._file.variables["fcst"])
Ejemplo n.º 10
0
 def getObs(self):
    return Common.clean(self._file.variables["obs"])
Ejemplo n.º 11
0
 def getScores(self, metric):
    temp = Common.clean(self._file.variables[metric])
    return temp