Changeset 4542
- Timestamp:
- Jun 13, 2007, 4:36:08 PM (18 years ago)
- Location:
- anuga_work/production
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/broome_2006/project_urs.py
r4533 r4542 18 18 host = get_host_name() 19 19 #needed when running using mpirun, mpirun doesn't inherit umask from .bashrc 20 #umask(002)20 umask(002) 21 21 22 22 … … 41 41 finaltime=25000 42 42 setup='final' 43 extra=' onslow'43 extra='exmouth' 44 44 45 45 if setup =='trial': … … 107 107 #boundaries locations 108 108 #boundaries_name = 'broome_3854_17042007' #dampier 109 #boundaries_name = 'broome_3103_18052007' #exmouth110 boundaries_name = 'broome_3859_16052007' #onslow109 boundaries_name = 'broome_3103_18052007' #exmouth 110 #boundaries_name = 'broome_3859_16052007' #onslow 111 111 112 112 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'1_10000'+sep 113 113 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep 114 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep115 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep114 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep 115 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep 116 116 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 117 117 boundaries_dir = anuga_dir+'boundaries'+sep … … 122 122 output_build_time_dir = output_dir+build_time+sep 123 123 output_run_time_dir = output_dir +run_time+dir_comment+sep 124 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 124 output_run_time_dir = output_dir +'20070605_234438_run_final_0_exmouth_nbartzis'+sep 125 #output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 125 126 126 127 #gauges … … 177 178 178 179 # exporting asc grid 179 e _min_area= 412000.0180 e _max_area= 423000.0181 n _min_area= 8007000.0182 n _max_area= 8022000.0180 eastingmin = 412000.0 181 eastingmax = 423000.0 182 northingmin = 8007000.0 183 northingmax = 8022000.0 -
anuga_work/production/broome_2006/run_broome_urs.py
r4533 r4542 33 33 34 34 from anuga.pmesh.mesh_interface import create_mesh_from_regions 35 from anuga. abstract_2d_finite_volumes.utilimport start_screen_catcher, copy_code_files,store_parameters35 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters 36 36 from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier 37 37 from anuga_parallel.parallel_abstraction import get_processor_name … … 71 71 # kwargs['bathy_file']=project_urs.combined_small_dir_name + '.pts' 72 72 kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww' 73 73 start_screen_catcher(kwargs['output_dir'], myid, numprocs) 74 74 75 print 'output_dir',kwargs['output_dir'] 75 76 if myid == 0: … … 81 82 barrier() 82 83 83 start_screen_catcher(kwargs['output_dir'], myid, numprocs)84 #start_screen_catcher(kwargs['output_dir'], myid, numprocs) 84 85 85 86 print "Processor Name:",get_processor_name() … … 205 206 #---------------------------------------------------------------------------- 206 207 # Evolve system through time 207 #---------------------------------------------------------------------------- 208 208 #-------------------------------------------------------------------- 209 209 t0 = time.time() 210 210 … … 243 243 cellsize = 25, 244 244 NODATA_value = -9999, 245 easting_min = project .eastingmin,246 easting_max = project .eastingmax,247 northing_min = project .northingmin,248 northing_max = project .northingmax,245 easting_min = project_urs.eastingmin, 246 easting_max = project_urs.eastingmax, 247 northing_min = project_urs.northingmin, 248 northing_max = project_urs.northingmax, 249 249 verbose = False, 250 250 origin = None, … … 252 252 format = 'asc') 253 253 254 buildings_filename = project .buildings_filename255 buildings_filename_out = project .buildings_filename_out254 buildings_filename = project_urs.buildings_filename 255 buildings_filename_out = project_urs.buildings_filename_out 256 256 257 257 inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out) 258 258 print '\n Augmented building file written to %s \n' %buildings_filename_out 259 260 259 260 261 261 #------------------------------------------------------------- 262 262 if __name__ == "__main__": … … 267 267 time_thinning = project_urs.time_thinning, 268 268 dir_comment=project_urs.dir_comment) 269 270 -
anuga_work/production/exmouth_2006/project.py
r4534 r4542 38 38 starttime=3600 39 39 finaltime=25000 40 setup=' final'41 extra=' onslow'40 setup='store' 41 extra='dampier' 42 42 43 43 if setup =='trial': … … 112 112 113 113 #boundaries locations 114 #boundaries_name = 'exmouth_3854_17042007' #dampier114 boundaries_name = 'exmouth_3854_17042007' #dampier 115 115 #boundaries_name = 'exmouth_3103_18052007' #exmouth 116 boundaries_name = 'exmouth_3859_16052007' #onslow117 118 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep116 #boundaries_name = 'exmouth_3859_16052007' #onslow 117 118 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep 119 119 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep 120 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep120 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep 121 121 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 122 122 boundaries_dir = anuga_dir+'boundaries'+sep … … 127 127 output_build_time_dir = output_dir+build_time+sep 128 128 output_run_time_dir = output_dir +run_time+dir_comment+sep 129 #output_run_time_dir = output_dir +'20070 530_063246_run_final_0_dampier_nbartzis'+sep129 #output_run_time_dir = output_dir +'20070604_022250_run_final_0_onslow_nbartzis'+sep 130 130 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 131 131 -
anuga_work/production/exmouth_2006/run_exmouth.py
r4533 r4542 226 226 if myid == 0: 227 227 store_parameters(**kwargs) 228 barrier()229 230 228 231 229 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 232 230 export_grid(swwfile, extra_name_out = 'town', 233 quantities = ['elevation','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 231 # quantities = ['depth'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 232 quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 234 233 timestep = None, 235 234 reduction = max, … … 240 239 northing_min = project.northingmin, 241 240 northing_max = project.northingmax, 242 verbose = False,241 verbose = True, 243 242 origin = None, 244 243 datum = 'WGS84', … … 250 249 inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out) 251 250 print '\n Augmented building file written to %s \n' %buildings_filename_out 252 253 251 252 barrier() 253 254 254 #------------------------------------------------------------- 255 255 if __name__ == "__main__": -
anuga_work/production/onslow_2006/project_urs.py
r4533 r4542 30 30 31 31 #tide = -1.5 32 tide = 0.033 #tide = 1.532 #tide = 0.0 33 tide = 1.5 34 34 35 35 #Maybe will try to make project a class to allow these parameters to be passed in. … … 39 39 finaltime=25000 40 40 setup='final' 41 extra='exmouth'41 source='dampier' 42 42 43 43 if setup =='trial': … … 62 62 yieldstep=240 63 63 64 dir_comment='_'+setup+'_'+str(tide)+'_'+str( extra)+'_'+str(user)64 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user) 65 65 66 66 #Making assumptions about the location of scenario data … … 119 119 tide_dir = anuga_dir+'tide_data'+sep 120 120 121 122 if source =='dampier': 123 boundaries_name = 'onslow_3854_17042007' #Dampier gun 124 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep 125 126 if source=='onslow': 127 boundaries_name = 'onslow_3859_16052007' #onslow_hedland_broome gun 128 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep 129 130 if source=='exmouth': 131 boundaries_name = 'onslow_3103_18052007' #exmouth gun 132 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep 133 134 #boundaries locations 121 135 boundaries_source = '' 122 #boundaries_name = 'onslow_3854_17042007' #Dampier gun123 #boundaries_name = 'onslow_3859_16052007' #onslow_hedland_broome gun124 boundaries_name = 'onslow_3103_18052007' #exmouth gun125 126 #boundaries locations127 136 #boundaries_in_dir = anuga_dir+'boundaries'+sep 128 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'1_10000'+sep129 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep130 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep131 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep132 137 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 133 138 … … 139 144 output_build_time_dir = output_dir+build_time+sep 140 145 output_run_time_dir = output_dir +run_time+dir_comment+sep 141 #output_run_time_dir = output_dir +'20070 531_002753_run_final_0.0_onslow_nbartzis'+sep146 #output_run_time_dir = output_dir +'20070608_062811_run_final_1.5_exmouth_nbartzis'+sep 142 147 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 143 148 -
anuga_work/production/onslow_2006/run_onslow_urs.py
r4533 r4542 227 227 if myid == 0: 228 228 store_parameters(**kwargs) 229 barrier()229 230 230 231 231 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 232 232 print 'swwfile',swwfile 233 233 export_grid(swwfile, extra_name_out = 'town', 234 quantities = ['elevation','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 234 # quantities = ['depth'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 235 quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 235 236 timestep = None, 236 237 reduction = max, … … 246 247 format = 'asc') 247 248 248 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name']+'.sww'249 249 buildings_filename = project_urs.buildings_filename 250 250 buildings_filename_out = project_urs.buildings_filename_out … … 253 253 print '\n Augmented building file written to %s \n' \ 254 254 %buildings_filename_out 255 255 # barrier() 256 256 257 257 #------------------------------------------------------------- -
anuga_work/production/pt_hedland_2006/project_urs.py
r4533 r4542 11 11 from anuga.utilities.system_tools import get_user_name, get_host_name 12 12 13 codename = 'project.py'14 13 15 14 home = getenv('INUNDATIONHOME') + sep +'data'+sep #Sandpit's parent dir … … 39 38 finaltime=25000 40 39 setup='final' 41 extra='dampier'40 source='onslow' 42 41 43 42 if setup =='trial': … … 54 53 print'final' 55 54 res_factor=1 56 time_thinning= 455 time_thinning=1 57 56 yieldstep=60 58 59 dir_comment='_'+setup+'_'+str(tide)+'_'+str(extra)+'_'+str(user) 57 if setup =='store': 58 print'store' 59 res_factor=10 60 time_thinning=48 61 yieldstep=240 62 63 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user) 60 64 61 65 # onshore data from 30m DTED level 2 … … 102 106 103 107 #boundaries locations 104 boundaries_name = 'pt_hedland_3854_17042007' #dampier 105 #boundaries_name = 'pt_hedland_3103_18052007' #exmouth 106 #boundaries_name = 'pt_hedland_3859_16052007' #onslow 107 108 109 if source =='dampier': 110 boundaries_name = 'pt_hedland_3854_17042007' #Dampier gun 111 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep 112 113 if source=='onslow': 114 boundaries_name = 'pt_hedland_3859_16052007' #onslow_hedland_broome gun 115 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep 116 117 if source=='exmouth': 118 boundaries_name = 'pt_hedland_3103_18052007' #exmouth gun 119 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep 120 108 121 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'1_10000'+sep 109 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'dampier'+sep+'1_10000'+sep110 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep111 #boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep112 122 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 113 123 boundaries_dir = anuga_dir+'boundaries'+sep … … 116 126 #output locations 117 127 output_dir = anuga_dir+'outputs'+sep 118 output_build_time_dir = output_dir+build_time+'_'+ extra+sep128 output_build_time_dir = output_dir+build_time+'_'+source+sep 119 129 output_run_time_dir = output_dir +run_time+dir_comment+sep 120 130 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing … … 148 158 149 159 # region to export (used from export_results.py) 150 e _min_area= 648000151 e _max_area= 675000152 n _min_area= 7745000153 n _max_area= 7761000154 155 export_region = [[e_min_area,n_min_area],[e_min_area,n_max_area],156 [e_max_area,n_max_area],[e_max_area,n_min_area]]160 eastingmin = 648000 161 eastingmax = 675000 162 northingmin = 7745000 163 northingmax = 7761000 164 165 #export_region = [[e_min_area,n_min_area],[e_min_area,n_max_area], 166 # [e_max_area,n_max_area],[e_max_area,n_min_area]] 157 167 158 refzone = 50168 #refzone = 50 159 169 160 170 from anuga.coordinate_transforms.redfearn import redfearn -
anuga_work/production/pt_hedland_2006/run_pt_hedland_urs.py
r4467 r4542 30 30 from anuga.shallow_water import Field_boundary 31 31 from Numeric import allclose 32 from anuga.shallow_water.data_manager import export_grid 32 33 33 34 from anuga.pmesh.mesh_interface import create_mesh_from_regions 34 from anuga. abstract_2d_finite_volumes.utilimport start_screen_catcher, copy_code_files,store_parameters35 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters 35 36 from anuga_parallel.parallel_api import distribute, numprocs, myid, barrier 36 37 from anuga_parallel.parallel_abstraction import get_processor_name 37 38 from anuga.caching import myhash 39 from anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage 38 40 # Application specific imports 39 41 import project_urs # Definition of file names and polygons … … 65 67 kwargs['bathy_file']=project_urs.combined_dir_name + '.txt' 66 68 # kwargs['bathy_file']=project_urs.combined_small_dir_name + '.pts' 67 kwargs['boundary_file']=project_urs.boundaries_ dir_name + '.sww'69 kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww' 68 70 # kwargs['Completed']='' 71 72 start_screen_catcher(kwargs['output_dir'], myid, numprocs) 69 73 70 74 print 'output_dir',kwargs['output_dir'] … … 76 80 77 81 barrier() 78 79 start_screen_catcher(kwargs['output_dir'], myid, numprocs)80 82 81 83 print "Processor Name:",get_processor_name() … … 224 226 if myid == 0: 225 227 store_parameters(**kwargs) 226 barrier() 227 228 229 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 230 export_grid(swwfile, extra_name_out = 'town', 231 quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 232 timestep = None, 233 reduction = max, 234 cellsize = 25, 235 NODATA_value = -9999, 236 easting_min = project_urs.eastingmin, 237 easting_max = project_urs.eastingmax, 238 northing_min = project_urs.northingmin, 239 northing_max = project_urs.northingmax, 240 verbose = True, 241 origin = None, 242 datum = 'WGS84', 243 format = 'asc') 244 245 buildings_filename = project_urs.buildings_filename 246 buildings_filename_out = project_urs.buildings_filename_out 247 248 inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out) 249 print '\n Augmented building file written to %s \n' %buildings_filename_out 250 251 barrier() 228 252 #------------------------------------------------------------- 229 253 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.