Changeset 4186
- Timestamp:
- Jan 19, 2007, 4:45:06 PM (18 years ago)
- Location:
- anuga_work/production
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r4177 r4186 117 117 if access(project.topographies_dir,F_OK) == 0: 118 118 mkdir (project.topographies_dir) 119 #G_clipped.export_points_file(project.combined_dir_name + '.pts')120 G_clipped.export_points_file(project.combined_dir_name + '.xya')119 G_clipped.export_points_file(project.combined_dir_name + '.pts') 120 #G_clipped.export_points_file(project.combined_dir_name + '.txt') -
anuga_work/production/dampier_2006/project.py
r4177 r4186 73 73 meshes_dir_name = meshes_dir + scenario_name 74 74 75 polygons_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'polygons'+sep 75 polygons_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'polygons'+sep+'2007polys'+sep 76 76 tide_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'tide_data'+sep 77 77 … … 102 102 103 103 refzone = 50 104 south = degminsec2decimal_degrees(-20,55,0) 105 north = degminsec2decimal_degrees(-20,15,0) 106 west = degminsec2decimal_degrees(116,17,0) 107 east = degminsec2decimal_degrees(117,10,0) 108 109 p0 = [south, degminsec2decimal_degrees(116,32,0)] 110 p1 = [south, west] 111 p2 = [degminsec2decimal_degrees(-20,23,0), west] 112 p3 = [north, degminsec2decimal_degrees(116,45,0)] 113 p4 = [north, degminsec2decimal_degrees(117,0,0)] 114 p5 = [p2[0], degminsec2decimal_degrees(117,8,0)] 115 p6 = [degminsec2decimal_degrees(-20,30,0), east] 116 p7 = [degminsec2decimal_degrees(-20,38,0), east] 117 p8 = [south, east] 118 119 poly_all, zone = convert_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8]) 120 refzone = zone 104 ##south = degminsec2decimal_degrees(-20,55,0) 105 ##north = degminsec2decimal_degrees(-20,15,0) 106 ##west = degminsec2decimal_degrees(116,17,0) 107 ##east = degminsec2decimal_degrees(117,10,0) 108 ## 109 ##p0 = [south, degminsec2decimal_degrees(116,32,0)] 110 ##p1 = [south, west] 111 ##p2 = [degminsec2decimal_degrees(-20,23,0), west] 112 ##p3 = [north, degminsec2decimal_degrees(116,45,0)] 113 ##p4 = [north, degminsec2decimal_degrees(117,0,0)] 114 ##p5 = [p2[0], degminsec2decimal_degrees(117,8,0)] 115 ##p6 = [degminsec2decimal_degrees(-20,30,0), east] 116 ##p7 = [degminsec2decimal_degrees(-20,38,0), east] 117 ##p8 = [south, east] 118 ## 119 ##poly_all, zone = convert_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8]) 120 ##refzone = zone 121 poly_all = read_polygon(polygons_dir+'extent.csv') 121 122 print 'Area of bounding polygon', polygon_area(poly_all)/1000000.0 122 123 … … 126 127 # Interior region definitions 127 128 ############################### 128 """ 129 poly_ pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20_pts.csv')130 res_ pos20_neg20 = 20000131 132 poly_dampier = read_polygon(polygons_dir+'dampier_ pts.csv')129 130 poly_region = read_polygon(polygons_dir+'region.csv') 131 res_region = 50000 132 133 poly_dampier = read_polygon(polygons_dir+'dampier_town.csv') 133 134 res_dampier = 500 134 135 135 poly_karratha = read_polygon(polygons_dir+'karratha_pts.csv') 136 res_karratha = 500 137 138 poly_delambre = read_polygon(polygons_dir+'delambre_pts.csv') 136 poly_karratha = read_polygon(polygons_dir+'karrathav2.csv') 137 res_karratha = 15000 138 139 poly_karratha_town = read_polygon(polygons_dir+'karratha_townv2.csv') 140 res_karratha_town = 500 141 142 poly_delambre = read_polygon(polygons_dir+'delambre.csv') 139 143 res_delambre = 1000 140 144 141 poly_mainisland = read_polygon(polygons_dir+'mainisland_pts.csv') 142 res_mainisland = 1000 143 144 poly_NWislands = read_polygon(polygons_dir+'NWislands_pts.csv') 145 res_NWislands = 1000 146 147 plot_polygons([poly_pos20_neg20,poly_dampier,poly_karratha,poly_delambre,polylmainisland, 148 polyNWislands,poly_all],output_run_time_dir + 'poly_pic') 149 150 interior_regions = [[poly_pos20_neg20,res_pos20_neg20],[poly_dampier,res_dampier], 151 [poly_karratha,res_karratha],[poly_delambre,res_delambre], 152 [poly_mainisland,res_mainisland],[poly_NWislands,res_NWislands]] 145 poly_coast = read_polygon(polygons_dir+'coastpoly.csv') 146 res_coast = 1000 147 148 poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv') 149 res_NWislands = 50000 150 151 poly_island0 = read_polygon(polygons_dir+'island0.csv') 152 res_island0 = res_poly_all 153 154 poly_island1 = read_polygon(polygons_dir+'island1.csv') 155 res_island0 = res_poly_all 156 157 poly_island2 = read_polygon(polygons_dir+'island2.csv') 158 res_island0 = res_poly_all 159 160 poly_island3 = read_polygon(polygons_dir+'island3.csv') 161 res_island0 = res_poly_all 162 163 res_islands = 5000 164 165 poly_ref_nw4 = read_polygon(polygons_dir+'ref_nw4.csv') 166 res_ref_nw4 = res_islands 167 168 poly_island4 = read_polygon(polygons_dir+'island4.csv') 169 res_island0 = res_poly_all 170 171 poly_ref_nw5 = read_polygon(polygons_dir+'ref_nw5.csv') 172 res_ref_nw5 = res_islands 173 174 poly_island5 = read_polygon(polygons_dir+'island5.csv') 175 res_island0 = res_poly_all 176 177 poly_ref_nw6 = read_polygon(polygons_dir+'ref_nw6.csv') 178 res_ref_nw6 = res_islands 179 180 poly_island6 = read_polygon(polygons_dir+'island6.csv') 181 res_island0 = res_poly_all 182 183 poly_ref_nw7 = read_polygon(polygons_dir+'ref_nw7.csv') 184 res_ref_nw7 = res_islands 185 186 poly_island7 = read_polygon(polygons_dir+'island7.csv') 187 res_island0 = res_poly_all 188 189 poly_ref_nw8 = read_polygon(polygons_dir+'ref_nw8.csv') 190 res_ref_nw8 = res_islands 191 192 poly_island8 = read_polygon(polygons_dir+'island8.csv') 193 res_island0 = res_poly_all 194 195 196 ##plot_polygons([poly_dampier,poly_karratha,poly_karratha_town,poly_delambre, 197 ## poly_coast,poly_NWislands,poly_island0,poly_island1,poly_island2, 198 ## poly_island3,poly_island4,poly_island5,poly_island6, 199 ## poly_island7,poly_island8,poly_ref_nw4,poly_ref_nw5, 200 ## poly_ref_nw6,poly_ref_nw7,poly_ref_nw8,poly_all],'poly_pic') 201 202 interior_regions = [[poly_dampier,res_dampier], 203 [poly_karratha,res_karratha],[poly_karratha_town,res_karratha_town], 204 [poly_delambre,res_delambre],[poly_coast,res_coast], 205 #[poly_NWislands,res_NWislands], 206 [poly_island0,res_island0],[poly_island1,res_island0], 207 [poly_island2,res_island0],[poly_island3,res_island0], 208 [poly_island4,res_island0],[poly_island5,res_island0], 209 [poly_island6,res_island0],[poly_island7,res_island0], 210 [poly_island8,res_island0],[poly_ref_nw4,res_ref_nw4], 211 [poly_ref_nw5,res_ref_nw5],[poly_ref_nw6,res_ref_nw6], 212 [poly_ref_nw7,res_ref_nw7],[poly_ref_nw8,res_ref_nw8]] 153 213 154 214 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all) 155 215 156 216 print 'min number triangles', trigs_min 157 """ 217 158 218 ################################################################### 159 219 # Clipping regions for export to asc and regions for clipping data 160 220 ################################################################### 161 221 162 #poly_bathy = read_polygon(polygons_dir+'polybathy.csv')222 poly_bathy = read_polygon(polygons_dir+'poly_bathy.csv') 163 223 164 224 # exporting asc grid - Dampier -
anuga_work/production/dampier_2006/run_dampier.py
r4172 r4186 45 45 46 46 # filenames 47 boundaries_name = project.boundaries_name47 #boundaries_name = project.boundaries_name 48 48 meshes_dir_name = project.meshes_dir_name+'.msh' 49 boundaries_dir_name = project.boundaries_dir_name49 #boundaries_dir_name = project.boundaries_dir_name 50 50 51 51 tide = project.tide … … 72 72 print 'start create mesh from regions' 73 73 create_mesh_from_regions(project.poly_all, 74 boundary_tags={'back': [ 7, 8], 'side': [0, 6],75 'ocean': [ 1, 2, 3, 4,5]},74 boundary_tags={'back': [2,3], 'side': [0, 1, 4], 75 'ocean': [5]}, 76 76 maximum_triangle_area=project.res_poly_all, 77 77 interior_regions=project.interior_regions, … … 137 137 138 138 domain.set_quantity('elevation', 139 filename = project.combined_dir_name + '. txt',139 filename = project.combined_dir_name + '.pts', 140 140 use_cache = True, 141 141 verbose = True, … … 179 179 180 180 print'set_boundary' 181 ##domain.set_boundary({'back': Br, 182 ## 'side': Bf, 183 ## 'ocean': Bf}) 181 184 domain.set_boundary({'back': Br, 182 185 'side': Bd, 183 'ocean': B f})186 'ocean': Bd}) 184 187 print'finish set boundary' 185 188 -
anuga_work/production/newcastle_2006/export_results.py
r4072 r4186 5 5 from os import sep 6 6 7 time_dir = '20061207_035946' 7 #time_dir = '20061207_035946' #bulli 8 #time_dir = '20061212_012802' #shovel 9 time_dir = '20061212_064757' #yacaaba 10 8 11 directory = project_slide.outputdir 9 12 name = directory + time_dir + sep + project_slide.basename -
anuga_work/production/newcastle_2006/project_slide.py
r4073 r4186 116 116 ################################################################### 117 117 118 slide_origin_a = [352928.37,6188303.94] 119 slide_origin_b = [393301.80,6253255.08] 120 slide_origin_c = [446025.35,6330307.46] 118 # historical slides 119 slide_origin_bulli = [370110,6189489] 120 slide_origin_shovel = [354753,6187397] 121 slide_origin_yacaaba = [463012,6334735] 122 123 # potential slides 124 slide_origin_bulli_b = [405617,6249852] 125 slide_origin_bulli_c = [465283,6335210] 126 slide_origin_shovel_b = [396262,6252144] 127 slide_origin_shovel_c = [458694,6340352] 128 slide_origin_yacaaba_a = [361753,6188786] 129 slide_origin_yacaaba_b = [401897,6250643] 121 130 122 131 bulli_depth = 2087.0 -
anuga_work/production/newcastle_2006/run_newcastle_slide.py
r4073 r4186 148 148 slope=project_slide.yacaaba_slope, 149 149 thickness=project_slide.yacaaba_thickness, 150 x0=project_slide.slide_origin_ c[0],151 y0=project_slide.slide_origin_ c[1],150 x0=project_slide.slide_origin_yacaaba_a[0], 151 y0=project_slide.slide_origin_yacaaba_a[1], 152 152 alpha=project_slide.yacaaba_alpha, 153 153 domain=domain) -
anuga_work/production/sydney_2006/export_results.py
r4073 r4186 5 5 from os import sep 6 6 7 time_dir = '20061211_071516' 7 #time_dir = '20061211_071516' #bulli 8 #time_dir = '20061212_012705' #shovel 9 time_dir = '20061212_064807' #yacaaba 10 8 11 directory = project_slide.outputdir 9 12 name = directory + time_dir + sep + project_slide.basename -
anuga_work/production/sydney_2006/project_slide.py
r4073 r4186 138 138 ################################################################### 139 139 140 slide_origin_a = [352928.37,6188303.94] 141 slide_origin_b = [393301.80,6253255.08] 142 slide_origin_c = [446025.35,6330307.46] 140 # historical slides 141 slide_origin_bulli = [370110,6189489] 142 slide_origin_shovel = [354753,6187397] 143 slide_origin_yacaaba = [463012,6334735] 144 145 # potential slides 146 slide_origin_bulli_b = [405617,6249852] 147 slide_origin_bulli_c = [465283,6335210] 148 slide_origin_shovel_b = [396262,6252144] 149 slide_origin_shovel_c = [458694,6340352] 150 slide_origin_yacaaba_a = [361753,6188786] 151 slide_origin_yacaaba_b = [401897,6250643] 143 152 144 153 bulli_depth = 2087.0 -
anuga_work/production/sydney_2006/run_sydney_slide.py
r4073 r4186 168 168 slope=project_slide.yacaaba_slope, 169 169 thickness=project_slide.yacaaba_thickness, 170 x0=project_slide.slide_origin_ b[0],171 y0=project_slide.slide_origin_ b[1],170 x0=project_slide.slide_origin_yacaaba_a[0], 171 y0=project_slide.slide_origin_yacaaba_a[1], 172 172 alpha=project_slide.yacaaba_alpha, 173 173 domain=domain) -
anuga_work/production/wollongong_2006/export_results.py
r4073 r4186 5 5 from os import sep 6 6 7 time_dir = '20061211_060105' 7 #time_dir = '20061211_060105' #bulli 8 #time_dir = '20061212_012715' #shovel 9 time_dir = '20061212_064735' #yacaaba 10 8 11 directory = project_slide.outputdir 9 12 name = directory + time_dir + sep + project_slide.basename -
anuga_work/production/wollongong_2006/project_slide.py
r4073 r4186 121 121 ################################################################### 122 122 123 slide_origin_a = [352928.37,6188303.94] 124 slide_origin_b = [393301.80,6253255.08] 125 slide_origin_c = [446025.35,6330307.46] 123 # historical slides 124 slide_origin_bulli = [370110,6189489] 125 slide_origin_shovel = [354753,6187397] 126 slide_origin_yacaaba = [463012,6334735] 127 128 # potential slides 129 slide_origin_bulli_b = [405617,6249852] 130 slide_origin_bulli_c = [465283,6335210] 131 slide_origin_shovel_b = [396262,6252144] 132 slide_origin_shovel_c = [458694,6340352] 133 slide_origin_yacaaba_a = [361753,6188786] 134 slide_origin_yacaaba_b = [401897,6250643] 126 135 127 136 bulli_depth = 2087.0 -
anuga_work/production/wollongong_2006/run_gong_slide.py
r4073 r4186 152 152 slope=project_slide.yacaaba_slope, 153 153 thickness=project_slide.yacaaba_thickness, 154 x0=project_slide.slide_origin_ a[0],155 y0=project_slide.slide_origin_ a[1],154 x0=project_slide.slide_origin_yacaaba_a[0], 155 y0=project_slide.slide_origin_yacaaba_a[1], 156 156 alpha=project_slide.yacaaba_alpha, 157 157 domain=domain)
Note: See TracChangeset
for help on using the changeset viewer.