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
def getDates(self): return Common.clean(self._file.variables["Date"])
def getScores(self, metric): metric = self._toPvarComps(metric) temp = Common.clean(self._file.variables[metric]) return temp
def getQuantiles(self): return Common.clean(self._file.variables["quantiles"])
def getOffsets(self): return Common.clean(self._file.variables["offset"])
def getThresholds(self): return Common.clean(self._file.variables["thresholds"])
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
def getEns(self): return Common.clean(self._file.variables["ens"])
def getFcst(self): return Common.clean(self._file.variables["fcst"])
def getObs(self): return Common.clean(self._file.variables["obs"])
def getScores(self, metric): temp = Common.clean(self._file.variables[metric]) return temp