Changeset 5592
- Timestamp:
- Aug 1, 2008, 1:33:26 PM (16 years ago)
- Location:
- anuga_work/production/perth
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/export_results.py
r5569 r5592 10 10 #time_dir = '20080714_095738_run_final_0.6_exmouth_kvanputt' 11 11 #time_dir = '20080714_134935_run_final_0_exmouth_kvanputt' 12 time_dir = '20080718_112228_run_final_0_exmouth_kvanputt' 12 #time_dir = '20080718_112228_run_final_0_exmouth_kvanputt' 13 #time_dir = '20080725_173911_run_final_0.6_polyline_alpha0.1_kvanputt' 14 #time_dir = '20080728_112519_run_final_0.6_polyline_alpha0.2_kvanputt' 15 time_dir = '20080728_154123_run_final_0.6_polyline_alpha0.15_kvanputt' 13 16 14 17 cellsize = 25 -
anuga_work/production/perth/get_gauges.py
r5581 r5592 36 36 for i, name in enumerate(quantity_names): 37 37 quantities[name] = fid.variables[name][:] 38 if inside_points is not None:39 quantities[name] = take(quantities[name],indices,1)40 else:41 msg = 'No gauges found inside polygon'42 raise msg43 38 ## if inside_points is not None: 39 ## quantities[name] = take(quantities[name],indices,1) 40 ## else: 41 ## msg = 'No gauges found inside polygon' 42 ## raise msg 43 ## 44 44 for j in range(len(x)-1): 45 45 locx=int(x[j]) … … 63 63 polygon=project.poly_all 64 64 points,quantities,elevation,time=get_sts_gauge_data(os.path.join(project.boundaries_dir,project.scenario_name),polygon,verbose=False) 65 65 print quantities['stage'][0,:] 66 print len(points), len(elevation), len(quantities['stage'][0,:]) 66 67 assert len(points)==len(elevation)==len(quantities['stage'][0,:]) -
anuga_work/production/perth/get_timeseries.py
r5576 r5592 17 17 18 18 #timestamp='20080724_121200_run_trial_0.6_polyline_alpha0.1_kvanputt' 19 timestamp='20080724_161830_run_final_0.6_polyline_alpha0.1_kvanputt' 19 #timestamp='20080724_161830_run_final_0.6_polyline_alpha0.1_kvanputt' 20 timestamp='20080725_173911_run_final_0.6_polyline_alpha0.1_kvanputt' 20 21 21 22 filename=project.output_dir+timestamp+sep+project.scenario_name+'.sww' … … 23 24 24 25 sww2csv_gauges(filename, 25 project.gauges_dir_name, 26 #project.gauges_dir_name, 27 project.gauges_dir_name2, 26 28 quantities = ['stage','speed','depth','elevation'], 27 29 verbose=True) -
anuga_work/production/perth/project.py
r5581 r5592 33 33 #Making assumptions about the location of scenario data 34 34 state = 'western_australia' 35 #scenario_name = 'perth_44unitsources' 35 36 scenario_name = 'perth' 36 37 scenario = 'perth_tsunami_scenario' … … 38 39 tide = 0.0 #0.6 39 40 40 alpha = 0.1 41 alpha = 0.15 41 42 friction=0.01 42 43 starttime=0 … … 152 153 #gauges 153 154 gauge_name = 'perth.csv' 155 gauge_name2 = 'thinned_MGA50+50.csv' 154 156 155 157 gauges_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'gauges'+sep 156 158 beach_gauges = gauges_dir + 'beach_gauges.csv' 157 159 gauges_dir_name = gauges_dir + gauge_name 160 gauges_dir_name2 = gauges_dir + gauge_name2 158 161 159 162 buildings_filename = gauges_dir + 'Perth_resA.csv'
Note: See TracChangeset
for help on using the changeset viewer.