Changeset 4358
- Timestamp:
- Apr 4, 2007, 12:44:04 PM (18 years ago)
- Location:
- anuga_work/production/broome_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/broome_2006/build_broome.py
r4290 r4358 81 81 82 82 #creates pts file for island DEM 83 dem2pts(offshore_ in_dir_name1, use_cache=True, verbose=True)84 dem2pts(offshore_ in_dir_name2, use_cache=True, verbose=True)83 dem2pts(offshore_dir_name1, use_cache=True, verbose=True) 84 dem2pts(offshore_dir_name2, use_cache=True, verbose=True) 85 85 86 86 print'create Geospatial data1 objects from topographies' … … 93 93 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt') 94 94 print'create Geospatial data4 objects from offshore1' 95 G_off1 = Geospatial_data(file_name = offshore_ in_dir_name1 + '.pts')95 G_off1 = Geospatial_data(file_name = offshore_dir_name1 + '.pts') 96 96 print'create Geospatial data4 objects from offshore2' 97 G_off2 = Geospatial_data(file_name = offshore_ in_dir_name2 + '.pts')97 G_off2 = Geospatial_data(file_name = offshore_dir_name2 + '.pts') 98 98 99 99 print'add all geospatial objects' … … 101 101 102 102 print'clip combined geospatial object by bounding polygon' 103 G_clipped = G.clip(project. bounding_polygon)103 G_clipped = G.clip(project.poly_all) 104 104 #FIXME: add a clip function to pts 105 105 #print'shape of clipped data', G_clipped.get_data_points().shape 106 106 107 107 print'split' 108 G_ main, G_small = G_clipped.split(.10)108 G_small, G_other = G_clipped.split(.10,verbose=True) 109 109 110 110 print'export combined DEM file' -
anuga_work/production/broome_2006/project.py
r4290 r4358 119 119 120 120 poly_all = read_polygon(polygons_dir+'extent.csv') 121 res_poly_all = 500000121 res_poly_all = 150000 122 122 123 123 ############################### … … 125 125 ############################### 126 126 127 poly_1 = read_polygon(polygons_dir+'broome_north_coast.csv') 128 res_1 = 50000 127 poly_0 = read_polygon(polygons_dir+'neg20_coast_contour_pts.csv') 128 res_0 = 10000 129 poly_1 = read_polygon(polygons_dir+'broome_north_coast_inside_extent.csv') 130 res_1 = 5000 129 131 130 poly_2 = read_polygon(polygons_dir+'broome_south_coast .csv')131 res_2 = 5000 0132 poly_2 = read_polygon(polygons_dir+'broome_south_coast_inside_extent.csv') 133 res_2 = 5000 132 134 133 135 poly_3 = read_polygon(polygons_dir+'Broome_town_pts.csv') 134 res_3 = 10000136 res_3 = 2000 135 137 136 138 poly_4 = read_polygon(polygons_dir+'Broome_inner_town_pts.csv') 137 res_4 = 1000139 res_4 = 500 138 140 #assert zone == refzone 139 141 140 interior_regions = [[poly_ 1,res_1],[poly_2,res_2]142 interior_regions = [[poly_0,res_0],[poly_1,res_1],[poly_2,res_2] 141 143 ,[poly_3,res_3],[poly_4,res_4]] 142 144
Note: See TracChangeset
for help on using the changeset viewer.