Changeset 3300 for production/onslow_2006
- Timestamp:
- Jul 11, 2006, 11:30:36 AM (18 years ago)
- Location:
- production/onslow_2006
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/export_results.py
r3285 r3300 8 8 9 9 #time_dir = '20060704_063005' #HAT 10 #time_dir = '20060704_063112' #LAT 11 time_dir = '20060704_063234' #MSL 10 #time_dir = '20060706_235246' #LAT 11 #time_dir = '20060704_063234' #MSL 12 #time_dir = '20060515_001733' #DTED data 12 13 directory = project.outputdir 13 14 name = directory + time_dir +sep + 'source' 15 # to develop grid of MOST output 16 #directory = project.boundarydir 17 #name = directory + project.boundary_basename 14 18 15 19 #normal screen output is stored in 'outname' 16 screen_output_name = directory + time_dir + sep + "export_output.txt" 17 screen_error_name = directory + time_dir + sep + "export_error.txt" 20 #screen_output_name = directory + time_dir + sep + "export_output.txt" 21 #screen_error_name = directory + time_dir + sep + "export_error.txt" 22 # for MOST output 23 #screen_output_name = directory + "export_output.txt" 24 #screen_error_name = directory + "export_error.txt" 18 25 19 26 #used to catch screen output to file … … 24 31 #print 'Which variable do you want to export?' 25 32 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) 26 which_var = 233 which_var = 4 27 34 #sys.stderr.write(sys.stdout.data) 28 35 if which_var == 0: # Stage -
production/onslow_2006/get_building_inundation.py
r3285 r3300 30 30 # Inputs 31 31 #timestampdir = '20060704_063005' # HAT 32 #timestampdir = '2006070 4_063112' # LAT32 #timestampdir = '20060706_235246' # LAT 33 33 timestampdir = '20060704_063234' # MSL 34 #timestampdir = '20060515_001733' # MSL DTED 34 35 file_loc = project.outputdir + timestampdir + sep 35 36 swwfile = file_loc + project.basename + '.sww' … … 101 102 zero_depth = 0.0 102 103 zero_momentum = 0.0 103 if inside_polygon(g,project.polyAll) == True: 104 for i, t in enumerate(T): 105 w = f(t, point_id = k)[0] 106 z = f(t, point_id = k)[1] 107 uh = f(t, point_id = k)[2] 108 vh = f(t, point_id = k)[3] 109 depth = w-z 110 m = sqrt(uh*uh + vh*vh) 111 #vel = m / (depth + 1.e-30) 112 if depth > max_depth: max_depth = depth 113 if m > max_momentum: max_momentum = m 114 else: 115 max_depth = 0.0 116 max_momentum = 0.0 117 104 #if inside_polygon(g,project.polyAll) == True: 105 for i, t in enumerate(T): 106 w = f(t, point_id = k)[0] 107 z = f(t, point_id = k)[1] 108 uh = f(t, point_id = k)[2] 109 vh = f(t, point_id = k)[3] 110 depth = w-z 111 m = sqrt(uh*uh + vh*vh) 112 #vel = m / (depth + 1.e-30) 113 if depth > max_depth: max_depth = depth 114 if m > max_momentum: max_momentum = m 115 #else: 116 # max_depth = 0.0 117 # max_momentum = 0.0 118 print 'gauge ', g 119 print 'max depth', max_depth 118 120 lines[k+1] = lines[k+1].strip() +\ 119 121 ',%f' %max_depth +\ -
production/onslow_2006/make_report.py
r3285 r3300 81 81 production_dirs = {'20060704_063234': 'MSL', 82 82 '20060704_063005': 'HAT', 83 '2006070 4_063112': 'LAT'}83 '20060706_235246': 'LAT'} 84 84 85 85 max_maps = {'MSL': 'MSL_map', -
production/onslow_2006/report/summary.tex
r3253 r3300 1 1 This report has described the impact to Onslow from a tsunami 2 2 generated by a Mw 9 earthquake on the Sunda Arc subduction zone 3 occurring at Mean Sea Level. 3 occurring at Highest Astronomical Tide, Lowest Astronomical Tide 4 and Mean Sea Level. 4 5 There is no knowledge of the return period for this event. The 5 6 modelling methodology, assumptions and data sources which are
Note: See TracChangeset
for help on using the changeset viewer.