Changeset 4308
- Timestamp:
- Mar 21, 2007, 2:17:41 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/get_timeseries.py
r4282 r4308 23 23 24 24 # sww file created from URS boundary 25 production_dirs = {#'20070206_005106_run': '10000 yr wave height'} 26 '20070223_031527_run': 'URS boundary condition'} 25 production_dirs = {'boundaries': '10000 yr wave height' 26 #'20070307_224017_run': 'URS boundary normal' 27 } 27 28 29 28 30 is_parallel = False 29 31 if is_parallel == True: … … 33 35 swwfiles = {} 34 36 37 #J:\inundation\data\western_australia\onslow_tsunami_scenario_2006\anuga\boundaries SU-AU_high_res1.sww 38 39 #boundary_dir_filename= os.path.join(home,data,state,'onslow_tsunami_scenario_2006',an,bo,'SU-AU_high_res1.sww') 40 #gauges_dir_name_simple = 35 41 if is_parallel == True: 42 print 'buggur' 43 36 44 37 for i in range(nodes):38 print 'Sending node %d of %d' %(i,nodes)39 swwfiles = {}40 #reportname = report_name + '_%s' %(i)41 for label_id in production_dirs.keys():42 if label_id == 'boundaries':43 file_loc = project.boundaries_in_dir44 swwfile = file_loc + sep + '20070223_031527_run' + sep + 'dampier.sww'45 print 'hi'46 #else:47 #file_loc = project.output_dir + label_id + sep48 #sww_extra = '_P%s_%s' %(i,nodes)49 #swwfile = file_loc + project.scenario_name + sww_extra + '.sww'50 swwfiles[swwfile] = label_id51 52 texname, elev_output = sww2timeseries(swwfiles,53 project.gauges_dir_name_test,54 production_dirs,55 report = False,56 #reportname = reportname,57 plot_quantity = ['stage', 'momentum'],58 generate_fig = False,59 surface = False,60 time_min = None,61 time_max = None,62 title_on = False,63 verbose = True)64 65 #latex_output.append(texname)66 67 45 else: 68 46 … … 70 48 71 49 if label_id == 'boundaries': 50 print 'boundaries' 72 51 file_loc = project.boundaries_in_dir 73 swwfile = file_loc + sep + '20070223_031527_run' + sep + 'dampier.sww' 52 swwfile = project.boundaries_dir_name3 + '.sww' 53 # swwfile = boundary_dir_filename 74 54 else: 75 55 file_loc = project.output_dir + label_id + sep … … 78 58 79 59 texname, elev_output = sww2timeseries(swwfiles, 80 project.gauges_dir_name_ test,60 project.gauges_dir_name_simple, 81 61 production_dirs, 82 62 report = False, 83 63 #reportname = report_name, 84 plot_quantity = ['stage', 'momentum'], 64 # plot_quantity = ['stage', 'momentum'], 65 plot_quantity = ['stage', 'xmomentum', 'ymomentum'], 85 66 surface = False, 86 67 time_min = None, … … 88 69 title_on = False, 89 70 verbose = True) 71 -
anuga_work/production/dampier_2006/project.py
r4291 r4308 99 99 boundaries_dir_name3 = boundaries_dir + boundaries_name+'_test_8500_12000' 100 100 boundaries_dir_name4 = boundaries_dir + boundaries_name+'_8500_12000_no_zone' 101 boundaries_dir_name5 = boundaries_dir + boundaries_name+'_not-gridded' 101 boundaries_dir_name5 = boundaries_dir + '20061026_173920_build'+sep+'dampier' 102 boundaries_dir_name6 = boundaries_dir + 'SU-AU' 102 103 103 104 #boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep … … 113 114 gauge_name = 'dampier_gauges_up2.csv' #'dampier.csv' 114 115 gauge_name_test = 'dampier_gauges_up_test.csv' #'dampier.csv' 116 gauge_name_simple = 'dampier_gauges_simple.csv' 115 117 gauges_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'gauges'+sep 116 118 gauges_dir_name = gauges_dir + gauge_name 117 119 gauges_dir_name_test = gauges_dir + gauge_name_test 120 gauges_dir_name_simple = gauges_dir + gauge_name_simple 118 121 119 122 … … 176 179 177 180 poly_coast = read_polygon(polygons_dir+'coastpoly.csv') 178 res_coast = 1000179 #res_coast = 10000181 #res_coast = 1000 182 res_coast = 10000 180 183 181 184 poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv') -
anuga_work/production/dampier_2006/run_dampier.py
r4282 r4308 166 166 # filename = project.combined_dir_name + '.pts', 167 167 # MUST USE TXT FILES FOR CACHING TO WORK! 168 filename = project.combined_smalle r_dir_name + '.txt',168 filename = project.combined_smallest_dir_name + '.txt', 169 169 use_cache = True, 170 170 verbose = True, … … 203 203 print 'Reading Boundary file',project.boundaries_dir_name4 + '.sww' 204 204 #Bf = File_boundary(boundaries_dir_name + '.sww', 205 Bf = File_boundary(project.boundaries_dir_name 4+ '.sww',206 domain, time_thinning= 4, use_cache=True, verbose=True)205 Bf = File_boundary(project.boundaries_dir_name3 + '.sww', 206 domain, time_thinning=24, use_cache=True, verbose=True) 207 207 208 208 print 'finished reading boundary file' … … 226 226 t0 = time.time() 227 227 228 for t in domain.evolve(yieldstep = 60, finaltime = 9000):228 for t in domain.evolve(yieldstep = 60, finaltime = 3400): 229 229 domain.write_time() 230 230 domain.write_boundary_statistics(tags = 'ocean') … … 233 233 # domain.write_time() 234 234 # domain.write_boundary_statistics(tags = 'ocean') 235 235 ''' 236 236 for t in domain.evolve(yieldstep = 60, finaltime = 28800 237 237 ,skip_initial_step = True): … … 243 243 domain.write_time() 244 244 domain.write_boundary_statistics(tags = 'ocean') 245 245 ''' 246 246 x, y = domain.get_maximum_inundation_location() 247 247 q = domain.get_maximum_inundation_elevation()
Note: See TracChangeset
for help on using the changeset viewer.