Changeset 6203
- Timestamp:
- Jan 19, 2009, 12:07:31 PM (16 years ago)
- Location:
- anuga_work/production/patong
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/patong/build_patong2.py
r6202 r6203 75 75 76 76 print 'add G1 + G2' 77 G5 = G1 +G277 G5 = G1 + G2 78 78 79 79 #------------------------------------------------------------------------------- … … 81 81 #------------------------------------------------------------------------------- 82 82 83 <<<<<<< .mine 84 ##print 'clipping outside extents' 85 ##G1_clip = G1.clip(project.extent_elev_dir4, verbose=True) 86 ##G3_clip1 = G3.clip_outside(project.extent_elev_dir4, verbose=True) 87 ##G3_clip2 =G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True) 88 ##G4_clip = G4.clip_outside(project.extent_elev_dir3, verbose=True) 89 ## 90 ###print 'hello', dir(G3_clip1), dir(G3_clip1), dir(G4_clip) 91 ##print'add all geospatial objects' 92 ##G = G1_clip + G2 + G3_clip1 + G3_clip2 + G4_clip 93 94 G3_clip1 = G3.clip_outside(project.extent_elev_dir1, verbose=True) 95 G3_clip2 = G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True) 96 ======= 83 97 print 'clipping outside extents' 84 98 G1_clip = G1.clip(project.extent_elev_dir4, verbose=True) 85 99 G3_clip1 = G3.clip_outside(project.extent_elev_dir4, verbose=True) 86 100 G3_clip2 = G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True) 101 >>>>>>> .r6199 87 102 G4_clip = G4.clip_outside(project.extent_elev_dir3, verbose=True) 88 103 89 #print 'hello', dir(G3_clip1), dir(G3_clip1), dir(G4_clip) 90 print'add all geospatial objects' 91 G = G1_clip + G2 + G3_clip1 + G3_clip2 + G4_clip 104 G = G3_clip2 + G5 + G4_clip 92 105 93 106 print'clip combined geospatial object by bounding polygon' -
anuga_work/production/patong/export_results_max.py
r6028 r6203 20 20 directory = project.output_dir 21 21 22 time_dir1 = '20081126_141801_run_final_0.8_kvanputt' 22 time_dir1 = '20090106_122422_run_trial_0.8_poly_kvanputt' 23 time_dir2 = '20090106_122015_run_trial_0.8_kvanputt' 23 24 24 time_dirs = [time_dir1 ]25 time_dirs = [time_dir1, time_dir2] 25 26 26 27 … … 28 29 #cellsize = 250 29 30 30 timestep = None # None means no timestep!31 #timestep = 031 #timestep = None # None means no timestep! 32 timestep = 0 32 33 33 34 ###### … … 49 50 50 51 # one or more key strings from var_equations above 51 var = ['stage', 'elevation' , 'depth', 'speed']52 var = ['stage', 'elevation'] 52 53 53 54 ###### -
anuga_work/production/patong/project.py
r6194 r6203 74 74 # Important to distinguish each run - ensure str(user) is included! 75 75 # Note, the user is free to include as many parameters as desired 76 dir_comment='_'+setup+'_'+str(tide)+'_ '+str(user)76 dir_comment='_'+setup+'_'+str(tide)+'_poly_'+str(user) 77 77 78 78 #------------------------------------------------------------------------------ … … 136 136 137 137 # where the combined elevation file sits 138 combined_dir_name = topographies_dir + combined_name 138 combined_dir_name = topographies_dir + combined_name + '_data' 139 139 combined_smaller_name_dir = topographies_dir + combined_smaller_name 140 140 141 141 # where the mesh sits (this is created during the run_patong.py) 142 meshes_dir_name = meshes_dir + scenario_name+' .msh'142 meshes_dir_name = meshes_dir + scenario_name+'_poly.msh' 143 143 144 144 # where the boundary ordering files sit (this is used within build_boundary.py) … … 171 171 # Initial bounding polygon for data clipping 172 172 poly_all = read_polygon(polygons_dir+'poly_all.csv') 173 res_poly_all = 10000 0*res_factor173 res_poly_all = 10000*res_factor 174 174 175 175 # Area of Interest 1 elevation from -10m to 20m
Note: See TracChangeset
for help on using the changeset viewer.