import os from nimbus.storms.intensity import IntensityCurve from nimbus.data import data abs_path = os.path.abspath(__file__) dir_name = os.path.dirname(abs_path) zone01tuples = data.tuples_from_csv(dir_name + "/csv/zone01.csv") zone02tuples = data.tuples_from_csv(dir_name + "/csv/zone02.csv") zone03tuples = data.tuples_from_csv(dir_name + "/csv/zone03.csv") zone04tuples = data.tuples_from_csv(dir_name + "/csv/zone04.csv") zone05tuples = data.tuples_from_csv(dir_name + "/csv/zone05.csv") zone06tuples = data.tuples_from_csv(dir_name + "/csv/zone06.csv") zone07tuples = data.tuples_from_csv(dir_name + "/csv/zone07.csv") zone08tuples = data.tuples_from_csv(dir_name + "/csv/zone08.csv") zone09tuples = data.tuples_from_csv(dir_name + "/csv/zone09.csv") zone10tuples = data.tuples_from_csv(dir_name + "/csv/zone10.csv") zone11tuples = data.tuples_from_csv(dir_name + "/csv/zone11.csv") zone01_02year = IntensityCurve("FDOT ZONE 01 02-YEAR", zone01tuples[0][0], zone01tuples[0][1:len(zone01tuples)]) zone01_03year = IntensityCurve("FDOT ZONE 01 03-YEAR", zone01tuples[1][0], zone01tuples[1][1:len(zone01tuples)]) zone01_05year = IntensityCurve("FDOT ZONE 01 05-YEAR", zone01tuples[2][0], zone01tuples[2][1:len(zone01tuples)]) zone01_10year = IntensityCurve("FDOT ZONE 01 10-YEAR", zone01tuples[3][0], zone01tuples[3][1:len(zone01tuples)]) zone01_25year = IntensityCurve("FDOT ZONE 01 25-YEAR", zone01tuples[4][0], zone01tuples[4][1:len(zone01tuples)]) zone01_50year = IntensityCurve("FDOT ZONE 01 50-YEAR", zone01tuples[5][0],
import os from nimbus.data import data as dt from . import distribution as ds abs_path = os.path.abspath(__file__) dir_name = os.path.dirname(abs_path) delaney = ds.RainfallDistribution("DELANEY", dt.tuples_from_csv(dir_name + "/csv/delaney.csv")) fdot1 = ds.RainfallDistribution("FDOT-1", dt.tuples_from_csv(dir_name + "/csv/fdot1.csv")) fdot2 = ds.RainfallDistribution("FDOT-2", dt.tuples_from_csv(dir_name + "/csv/fdot2.csv")) fdot4 = ds.RainfallDistribution("FDOT-4", dt.tuples_from_csv(dir_name + "/csv/fdot4.csv")) fdot8 = ds.RainfallDistribution("FDOT-8", dt.tuples_from_csv(dir_name + "/csv/fdot8.csv")) fdot24 = ds.RainfallDistribution("FDOT-24", dt.tuples_from_csv(dir_name + "/csv/fdot24.csv")) fdot72 = ds.RainfallDistribution("FDOT-72", dt.tuples_from_csv(dir_name + "/csv/fdot72.csv")) fdot168 = ds.RainfallDistribution("FDOT-168", dt.tuples_from_csv(dir_name + "/csv/fdot168.csv")) fdot240 = ds.RainfallDistribution("FDOT-240", dt.tuples_from_csv(dir_name + "/csv/fdot240.csv")) flmod = ds.RainfallDistribution("FLMOD", dt.tuples_from_csv(dir_name + "/csv/flmod.csv")) nrcsi24 = ds.RainfallDistribution("SCSI-24", dt.tuples_from_csv(dir_name + "/csv/nrcsi24.csv")) nrcsi48 = ds.RainfallDistribution("SCSI-48", dt.tuples_from_csv(dir_name + "/csv/nrcsi48.csv")) nrcsa24 = ds.RainfallDistribution("SCSIA-24", dt.tuples_from_csv(dir_name + "/csv/nrcsia24.csv")) nrcsii24 = ds.RainfallDistribution("SCSII-24", dt.tuples_from_csv(dir_name + "/csv/nrcsii24.csv")) nrcsii48 = ds.RainfallDistribution("SCSII-48", dt.tuples_from_csv(dir_name + "/csv/nrcsii48.csv")) nrcsiii = ds.RainfallDistribution("SCSIII", dt.tuples_from_csv(dir_name + "/csv/nrcsiii.csv")) orange = ds.RainfallDistribution("ORANGE", dt.tuples_from_csv(dir_name + "/csv/orange.csv")) sfwmd72 = ds.RainfallDistribution("SFWMD72", dt.tuples_from_csv(dir_name + "/csv/sfwmd72.csv")) sjrwmd96 = ds.RainfallDistribution("SJRWMD96", dt.tuples_from_csv(dir_name + "/csv/sjrwmd96.csv")) defaults_list = [
import os from nimbus.data import data as dt from . import distribution as ds abs_path = os.path.abspath(__file__) dir_name = os.path.dirname(abs_path) delaney = ds.RainfallDistribution( "DELANEY", dt.tuples_from_csv(dir_name + "/csv/delaney.csv")) fdot1 = ds.RainfallDistribution( "FDOT-1", dt.tuples_from_csv(dir_name + "/csv/fdot1.csv")) fdot2 = ds.RainfallDistribution( "FDOT-2", dt.tuples_from_csv(dir_name + "/csv/fdot2.csv")) fdot4 = ds.RainfallDistribution( "FDOT-4", dt.tuples_from_csv(dir_name + "/csv/fdot4.csv")) fdot8 = ds.RainfallDistribution( "FDOT-8", dt.tuples_from_csv(dir_name + "/csv/fdot8.csv")) fdot24 = ds.RainfallDistribution( "FDOT-24", dt.tuples_from_csv(dir_name + "/csv/fdot24.csv")) fdot72 = ds.RainfallDistribution( "FDOT-72", dt.tuples_from_csv(dir_name + "/csv/fdot72.csv")) fdot168 = ds.RainfallDistribution( "FDOT-168", dt.tuples_from_csv(dir_name + "/csv/fdot168.csv")) fdot240 = ds.RainfallDistribution( "FDOT-240", dt.tuples_from_csv(dir_name + "/csv/fdot240.csv")) flmod = ds.RainfallDistribution( "FLMOD", dt.tuples_from_csv(dir_name + "/csv/flmod.csv")) nrcsi24 = ds.RainfallDistribution( "SCSI-24", dt.tuples_from_csv(dir_name + "/csv/nrcsi24.csv")) nrcsi48 = ds.RainfallDistribution(
import os from . import uh from nimbus.data import data abs_path = os.path.abspath(__file__) dir_name = os.path.dirname(abs_path) uh256 = uh.UnitHydrograph("UH256", 256.0, data.tuples_from_csv(dir_name + "/csv/uh256.csv")) uh323 = uh.UnitHydrograph("UH323", 323.0, data.tuples_from_csv(dir_name + "/csv/uh323.csv")) uh484 = uh.UnitHydrograph("UH484", 484.0, data.tuples_from_csv(dir_name + "/csv/uh484.csv")) defaults_list = [uh256, uh323, uh484]
import os from nimbus.storms.intensity import IntensityCurve from nimbus.data import data abs_path = os.path.abspath(__file__) dir_name = os.path.dirname(abs_path) zone01tuples = data.tuples_from_csv(dir_name + "/csv/zone01.csv") zone02tuples = data.tuples_from_csv(dir_name + "/csv/zone02.csv") zone03tuples = data.tuples_from_csv(dir_name + "/csv/zone03.csv") zone04tuples = data.tuples_from_csv(dir_name + "/csv/zone04.csv") zone05tuples = data.tuples_from_csv(dir_name + "/csv/zone05.csv") zone06tuples = data.tuples_from_csv(dir_name + "/csv/zone06.csv") zone07tuples = data.tuples_from_csv(dir_name + "/csv/zone07.csv") zone08tuples = data.tuples_from_csv(dir_name + "/csv/zone08.csv") zone09tuples = data.tuples_from_csv(dir_name + "/csv/zone09.csv") zone10tuples = data.tuples_from_csv(dir_name + "/csv/zone10.csv") zone11tuples = data.tuples_from_csv(dir_name + "/csv/zone11.csv") zone01_02year = IntensityCurve("FDOT ZONE 01 02-YEAR", zone01tuples[0][0], zone01tuples[0][1:len(zone01tuples)]) zone01_03year = IntensityCurve("FDOT ZONE 01 03-YEAR", zone01tuples[1][0], zone01tuples[1][1:len(zone01tuples)]) zone01_05year = IntensityCurve("FDOT ZONE 01 05-YEAR", zone01tuples[2][0], zone01tuples[2][1:len(zone01tuples)]) zone01_10year = IntensityCurve("FDOT ZONE 01 10-YEAR", zone01tuples[3][0], zone01tuples[3][1:len(zone01tuples)]) zone01_25year = IntensityCurve("FDOT ZONE 01 25-YEAR", zone01tuples[4][0], zone01tuples[4][1:len(zone01tuples)]) zone01_50year = IntensityCurve("FDOT ZONE 01 50-YEAR", zone01tuples[5][0], zone01tuples[5][1:len(zone01tuples)]) zone02_02year = IntensityCurve("FDOT ZONE 02 02-YEAR", zone02tuples[0][0], zone02tuples[0][1:len(zone02tuples)]) zone02_03year = IntensityCurve("FDOT ZONE 02 03-YEAR", zone02tuples[1][0], zone02tuples[1][1:len(zone02tuples)]) zone02_05year = IntensityCurve("FDOT ZONE 02 05-YEAR", zone02tuples[2][0], zone02tuples[2][1:len(zone02tuples)])