Пример #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
Пример #2
0
 def getDates(self):
    return Common.clean(self._file.variables["Date"])
Пример #3
0
 def getScores(self, metric):
    metric = self._toPvarComps(metric)
    temp = Common.clean(self._file.variables[metric])
    return temp
Пример #4
0
 def getQuantiles(self):
    return Common.clean(self._file.variables["quantiles"])
Пример #5
0
 def getOffsets(self):
    return Common.clean(self._file.variables["offset"])
Пример #6
0
 def getThresholds(self):
    return Common.clean(self._file.variables["thresholds"])
Пример #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
Пример #8
0
 def getEns(self):
    return Common.clean(self._file.variables["ens"])
Пример #9
0
 def getFcst(self):
    return Common.clean(self._file.variables["fcst"])
Пример #10
0
 def getObs(self):
    return Common.clean(self._file.variables["obs"])
Пример #11
0
 def getScores(self, metric):
    temp = Common.clean(self._file.variables[metric])
    return temp