Changeset 4559
- Timestamp:
- Jun 25, 2007, 4:13:16 PM (17 years ago)
- Location:
- anuga_work/production/broome_2006
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/broome_2006/build_broome.py
r4533 r4559 68 68 offshore_dir_name1 = project_urs.offshore_dir_name1 69 69 offshore_dir_name2 = project_urs.offshore_dir_name2 70 ''' 70 71 71 # creates DEM from asc data 72 72 print "creates DEMs from asc data" … … 109 109 if access(project_urs.topographies_dir,F_OK) == 0: 110 110 mkdir (project_urs.topographies_dir) 111 print'export',project_urs.combined_dir_name+ '_unclipped' +'.txt'112 G.export_points_file(project_urs.combined_dir_name+ '_unclipped' +'.txt')111 print'export',project_urs.combined_dir_name+ '.txt' 112 G.export_points_file(project_urs.combined_dir_name+ '.txt') 113 113 114 114 print'split' … … 123 123 124 124 125 125 ''' 126 126 print'project_urs.combined_dir_name + 1.xya',project_urs.combined_dir_name + '1.xya' 127 127 G_all=Geospatial_data(file_name = project_urs.combined_dir_name + '1.xya') … … 133 133 G_all_2.export_points_file(project_urs.combined_dir_name+'_other1' + '.xya') 134 134 135 ''' 135 136 136 #------------------------------------------------------------------------- 137 137 # Convert URS to SWW file for boundary conditions … … 146 146 147 147 148 ''' 148 149 149 150 150 151 151 -
anuga_work/production/broome_2006/project_urs.py
r4546 r4559 32 32 33 33 #tide = -5.3 34 #tide = 035 tide = 4.934 tide = 0 35 #tide = 4.9 36 36 37 37 #Maybe will try to make project a class to allow these parameters to be passed in. … … 70 70 71 71 #final topo name 72 combined_name ='broome_combined_elevation '72 combined_name ='broome_combined_elevation_z51' 73 73 combined_name1 ='broome_combined_elevation1' 74 74 combined_name_unclipped1 ='broome_combined_elevation_unclipped1' … … 124 124 output_dir = anuga_dir+'outputs'+sep 125 125 output_build_time_dir = output_dir+build_time+'_'+source+sep 126 output_run_time_dir = output_dir +run_time+dir_comment+sep127 #output_run_time_dir = output_dir +'20070605_234438_run_final_0_exmouth_nbartzis'+sep126 #output_run_time_dir = output_dir +run_time+dir_comment+sep 127 output_run_time_dir = output_dir +'20070622_004008_run_final_0_onslow_nbartzis'+sep 128 128 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 129 129 … … 163 163 164 164 #poly_3 = read_polygon(polygons_dir+'Broome_town_pts.csv') 165 poly_3 = read_polygon(polygons_dir+'broome_town_new_pts .csv')165 poly_3 = read_polygon(polygons_dir+'broome_town_new_ptsa.csv') 166 166 res_3 = 2000*res_factor 167 167 168 168 #poly_4 = read_polygon(polygons_dir+'Broome_inner_town_pts.csv') 169 poly_4 = read_polygon(polygons_dir+'broome_inner_town_ pts.csv')169 poly_4 = read_polygon(polygons_dir+'broome_inner_town_new_ptsa.csv') 170 170 res_4 = 500*res_factor 171 171 … … 188 188 northingmin = 8007000.0 189 189 northingmax = 8022000.0 190 191 # exporting asc grid for speed 192 #eastingmin = 412900.0 193 #eastingmax = 422700.0 194 #northingmin = 8008555.0 195 #northingmax = 8021350.0 -
anuga_work/production/broome_2006/run_broome_urs.py
r4546 r4559 50 50 # output to file 51 51 #------------------------------------------------------------------------------ 52 print "Processor Name:",get_processor_name() 52 53 53 54 #copy script must be before screen_catcher … … 66 67 kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww' 67 68 69 start_screen_catcher(kwargs['output_dir'], myid, numprocs,extra_info='export',print_to_screen=True) 70 ''' 68 71 print 'output_dir',kwargs['output_dir'] 69 72 if myid == 0: … … 226 229 #kwargs 'completed' must be added to write the final parameters to file 227 230 kwargs['completed']=str(time.time()-t0) 228 if myid == 0: 229 store_parameters(**kwargs) 231 232 ''' 233 if myid == 0: 234 # store_parameters(**kwargs) 230 235 231 236 print 'memory usage before del domain',mem_usage() 232 del domain237 #del domain 233 238 print 'memory usage after del domain',mem_usage() 234 239 235 240 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 241 print'swwfile',swwfile 242 236 243 export_grid(swwfile, extra_name_out = 'town', 237 quantities = ['elevation','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 244 quantities = ['speed','depth','elevation','stage'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 245 # quantities = ['speed','depth'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 238 246 timestep = None, 239 247 reduction = max,
Note: See TracChangeset
for help on using the changeset viewer.