예제 #1
0
파일: Input.py 프로젝트: vsoljan/verif
 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
파일: Input.py 프로젝트: vsoljan/verif
 def getDates(self):
    return Common.clean(self._file.variables["Date"])
예제 #3
0
파일: Input.py 프로젝트: vsoljan/verif
 def getScores(self, metric):
    metric = self._toPvarComps(metric)
    temp = Common.clean(self._file.variables[metric])
    return temp
예제 #4
0
파일: Input.py 프로젝트: vsoljan/verif
 def getQuantiles(self):
    return Common.clean(self._file.variables["quantiles"])
예제 #5
0
파일: Input.py 프로젝트: vsoljan/verif
 def getOffsets(self):
    return Common.clean(self._file.variables["offset"])
예제 #6
0
파일: Input.py 프로젝트: vsoljan/verif
 def getThresholds(self):
    return Common.clean(self._file.variables["thresholds"])
예제 #7
0
파일: Input.py 프로젝트: vsoljan/verif
 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
파일: Input.py 프로젝트: vsoljan/verif
 def getEns(self):
    return Common.clean(self._file.variables["ens"])
예제 #9
0
파일: Input.py 프로젝트: vsoljan/verif
 def getFcst(self):
    return Common.clean(self._file.variables["fcst"])
예제 #10
0
파일: Input.py 프로젝트: vsoljan/verif
 def getObs(self):
    return Common.clean(self._file.variables["obs"])
예제 #11
0
파일: Input.py 프로젝트: vsoljan/verif
 def getScores(self, metric):
    temp = Common.clean(self._file.variables[metric])
    return temp