예제 #1
0
def main(version):
    config = CompareConfig()
    getData(version, config.scriptPath)
    maxstage, timestage, bank = match_stations(config.versionPath,
                                               config.bankFileName, version)
    overflow = OOB_DepthTime(bank, timestage, maxstage)
    writeOOB_DepthTime(config.inundOutFileName, overflow, version)
예제 #2
0
import sys
sys.path.append("C:/Users/nschiff2/IdeaProjects/AutoHEC/src/Analysis/")

from hec.heclib.dss import HecDss
import pickle
from Compare_Config import CompareConfig

# Read in hourly (or other periodic) STAGE data from HEC-RAS DSS file. Store data in a pickle file for further use.
# Example of data paths:
# /E STONY CR DITCH E STONY CR DITCH/3.614/STAGE/01DEC2006/1HOUR/HUFFQII_100YR12H/
# /E STONY CR DITCH E STONY CR DITCH/3.614/STAGE/01JAN2007/1HOUR/HUFFQII_100YR12H/
# .getCatalogedPathnames([path pattern]) retrieves all data addresses that match the pattern
# .get([file path], True) returns data from all dates

config = CompareConfig()
filePath = config.filePath  #G:/PROJECTS_non-FEMA/MWRD_ReleaseRate_Phase1/H&H/StonyCreek/
versionPath = config.versionPath  #Stony_V
dssFileName = config.dssRasFileName  #/HydraulicModels/ExistingConditions/STCR/STCR_DesignRuns/STCR_Design2.dss
versions = config.versions

dataToGet = []
dssFiles = []
for v in versions:
    dataToGet.append(["FLOW/" + config.startDate + "/*", "hydrograph_V" + v])
    dssFiles.append(versionPath + v + dssFileName)
for i in range(len(dataToGet)):
    dssFile = HecDss.open(dssFiles[i], True)
    pathNames = dssFile.getCatalogedPathnames("/*/*/" + dataToGet[i][0] + "/" +
                                              config.rasRunName + "/")
    dataDict = {}
    for item in range(len(pathNames)):
예제 #3
0
def main():
    getData()
    config = CompareConfig()
    getFlow(config.versions, config.filePath, config.vDescription)
예제 #4
0
def main():
    getData()
    config = CompareConfig()
    getPeak(config.versions, config.filePath, config.rasRunName)
예제 #5
0
def main():
    getData()
    config = CompareConfig()
    getStorage(config.versions, config.watershed, config.filePath)
예제 #6
0
def main():
    #getData()
    config = CompareConfig()
    getPeak(config.versions, config.filePath, config.filePath,
            config.watershed, config.timestep)