Changeset 5344
- Timestamp:
- May 20, 2008, 11:35:54 AM (16 years ago)
- Location:
- anuga_work/development/convergence_okushiri_2008
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/convergence_okushiri_2008/compare_timeseries.py
r5343 r5344 28 28 #------------------------- 29 29 30 finaltime = 22.531 timestep = 0.0530 finaltime = 450 31 timestep = 1 32 32 33 gauge_locations = [[0.000, 1.696]] # Boundary gauge34 gauge_locations += [[ 4.521, 1.196], [4.521, 1.696], [4.521, 2.196]] #Ch 5-7-933 gauge_locations = [[0.000, 678.4]] # Boundary gauge 34 gauge_locations += [[1808.4, 478.4], [1808.4, 678.4], [1808.4, 878.4]] #Ch 5-7-9 35 35 gauge_names = ['Boundary', 'ch5', 'ch7', 'ch9'] 36 36 … … 44 44 #------------------------- 45 45 46 print 'Reading', project .boundary_filename47 fid = NetCDFFile(project .boundary_filename, 'r')46 print 'Reading', project_truescale.boundary_filename 47 fid = NetCDFFile(project_truescale.boundary_filename, 'r') 48 48 input_time = fid.variables['time'][:] 49 49 validation_data['Boundary'] = fid.variables['stage'][:] 50 50 51 51 reference_time = [] 52 fid = open(project .validation_filename)52 fid = open(project_truescale.validation_filename) 53 53 lines = fid.readlines() 54 54 fid.close() … … 62 62 for j, key in enumerate(gauge_names[1:]): # Omit boundary gauge 63 63 value = float(fields[1:][j]) # Omit time 64 validation_data[key].append(value /100) # Convert cm2m64 validation_data[key].append(value) 65 65 66 66 … … 82 82 sww_filename = sys.argv[1] 83 83 else: 84 sww_filename = project .output_filename84 sww_filename = project_truescale.output_filename 85 85 86 86 f = file_function(sww_filename, … … 102 102 103 103 print 'Max runup elevation: ', q 104 print 'Max runup elevation (scaled by 400): ', q*400105 104 print 'Max runup location: ', loc 106 107 #from create_okushiri import gulleys108 #assert is_inside_polygon(loc, gulleys)109 105 110 106
Note: See TracChangeset
for help on using the changeset viewer.