Changeset 4091 for anuga_work/production/perth_2006/project.py
- Timestamp:
- Dec 19, 2006, 9:19:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth_2006/project.py
r4081 r4091 46 46 coast_name = 'waterline' 47 47 offshore_name = 'perth_bathymetry' 48 offshore1_name = 'missing_fairsheets' 48 49 49 50 #final topo name 50 51 combined_name ='perth_combined_elevation' 52 combined_smaller_name = 'perth_combined_elevation_smaller' 53 51 54 52 55 topographies_in_dir = home+sep+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep … … 63 66 coast_in_dir_name = topographies_in_dir + coast_name 64 67 offshore_in_dir_name = topographies_in_dir + offshore_name 68 offshore1_in_dir_name = topographies_in_dir + offshore1_name 65 69 66 70 onshore_dir_name = topographies_dir + onshore_name … … 76 80 combined_dir_name = topographies_dir + combined_name 77 81 combined_time_dir_name = topographies_time_dir + combined_name 82 combined_smaller_name_dir = topographies_dir + combined_smaller_name 78 83 #combined_time_dir_final_name = topographies_time_dir + combined_final_name 79 84 80 85 81 #Derive subdirectories and filenames82 86 83 87 meshes_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'meshes'+sep … … 88 92 89 93 90 boundaries_source = ' mag_9_corrected'94 boundaries_source = '????' 91 95 #boundaries locations 92 96 boundaries_in_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+'urs'+sep+boundaries_source+sep … … 96 100 #boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep 97 101 #boundaries_time_dir_name = boundaries_time_dir + boundaries_name #Used by post processing 98 #ideas99 #boundaries_time_dir = boundaries_in_dir+'urs'+sep+boundaries_source+sep100 102 101 103 #output locations … … 111 113 112 114 113 114 115 116 117 118 119 115 ############################### 120 116 # Domain definitions … … 123 119 124 120 bounding_polygon = read_polygon(polygons_dir+'bounding_poly.csv') 121 res_bounding = 1000000 125 122 126 123 refzone = 50 127 124 128 125 129 #Interior regions 126 ############################### 127 # Interior region definitions 128 ############################### 130 129 131 #cipma_polygon, zone = convert_from_latlon_to_utm([k0, k1, k2, k3]) 130 poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20pts.csv') 131 res_pos20_neg20 = 500000 132 133 poly_cbd = read_polygon(polygons_dir+'cbd_pts.csv') 134 res_cbd = 50000 135 136 poly_penguin = read_polygon(polygons_dir+'penguin_pts.csv') 137 res_penguin = 50000 132 138 #assert zone == refzone 133 139 134 poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20pts.csv') 140 trigs_bound = polygon_area(bounding_polygon)/res_bounding 141 trigs_pos = polygon_area(poly_pos20_neg20)/res_pos20_neg20 142 trigs_cbd = polygon_area(poly_cbd)/res_cbd 143 trigs_penguin = polygon_area(poly_penguin)/res_penguin 144 trigs_min = trigs_bound + trigs_pos + trigs_cbd + trigs_penguin 135 145 136 poly_cbd = read_polygon(polygons_dir+'cbd_pts.csv') 137 138 poly_penguin = read_polygon(polygons_dir+'penguin_pts.csv') 139 #assert zone == refzone 140 141 print "bounding_polygon", bounding_polygon 142 print 'Area of bounding poly', polygon_area(bounding_polygon)/1000000.0 143 print 'Area of pos20_neg20pts', polygon_area(poly_pos20_neg20)/1000000.0 144 print 'Area of poly_cbd', polygon_area(poly_cbd)/1000000.0 145 print 'Area of poly_penguin', polygon_area(poly_penguin)/1000000.0 146 print 'Area of bounding poly', trigs_bound 147 print 'Area of pos20_neg20pts', trigs_pos 148 print 'Area of poly_cbd', trigs_cbd 149 print 'Area of poly_penguin', trigs_penguin 150 print 'min number triangles', trigs_min 146 151 147 152 … … 149 154 # Clipping regions for export to asc and regions for clipping data 150 155 ################################################################### 151 ''' 156 152 157 # exporting asc grid 153 158 eastingmin = 406215.87 … … 156 161 northingmax = 8032834.52 157 162 158 ###############################159 # Interior region definitions160 ###############################161 163 162 # perth digitized polygons163 poly_perth1 = read_polygon(polygondir+'perth_Local_Polygon_update.csv')164 poly_perth2 = read_polygon(polygondir+'perth_Close2_update.csv')165 poly_perth3 = read_polygon(polygondir+'perth_Coast_update.csv')166 #poly_perth4 = read_polygon(polygondir+'Cable_Beach_revised.csv')167 164 168 plot_polygons([polyAll,poly_perth1,poly_perth2,poly_perth3],'boundingpoly2',verbose=False)169 print 'Area of local polygon', polygon_area(poly_perth1)/1000000.0170 print 'Area of close polygon', polygon_area(poly_perth2)/1000000.0171 print 'Area of coastal polygon', polygon_area(poly_perth3)/1000000.0172 #print 'Area of cable beach polygon', polygon_area(poly_perth4)/1000000.0173 '''174
Note: See TracChangeset
for help on using the changeset viewer.