Changeset 4366
- Timestamp:
- Apr 11, 2007, 3:43:40 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
r4358 r4366 67 67 offshore_dir_name1 = project.offshore_dir_name1 68 68 offshore_dir_name2 = project.offshore_dir_name2 69 69 ''' 70 70 # creates DEM from asc data 71 71 print "creates DEMs from asc data" … … 83 83 dem2pts(offshore_dir_name1, use_cache=True, verbose=True) 84 84 dem2pts(offshore_dir_name2, use_cache=True, verbose=True) 85 86 print'create Geospatial data1 objects from topographies' 85 ''' 86 print'create Geospatial data1 objects from topographies',onshore_dir_name + '.pts' 87 87 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts') 88 print'create Geospatial data2 objects from coast' 88 print'create Geospatial data2 objects from coast', coast_in_dir_name + '.txt' 89 89 G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt') 90 90 #print'create Geospatial data3 objects from island' 91 91 #G3 = Geospatial_data(file_name = island_dir_name + '.pts') 92 print'create Geospatial data3 objects from offshore' 92 print'create Geospatial data3 objects from offshore',offshore_in_dir_name + '.txt' 93 93 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt') 94 print'create Geospatial data4 objects from offshore1' 94 print'create Geospatial data4 objects from offshore1',offshore_dir_name1 + '.pts' 95 95 G_off1 = Geospatial_data(file_name = offshore_dir_name1 + '.pts') 96 print'create Geospatial data4 objects from offshore2' 96 print'create Geospatial data4 objects from offshore2',offshore_dir_name2 + '.pts' 97 97 G_off2 = Geospatial_data(file_name = offshore_dir_name2 + '.pts') 98 98 … … 105 105 #print'shape of clipped data', G_clipped.get_data_points().shape 106 106 107 print'export combined DEM file' 108 if access(project.topographies_dir,F_OK) == 0: 109 mkdir (project.topographies_dir) 110 print'export',project.combined_dir_name+'_unclipped' + '.txt' 111 G.export_points_file(project.combined_dir_name+'_unclipped' + '.txt') 112 ''' 107 113 print'split' 108 114 G_small, G_other = G_clipped.split(.10,verbose=True) 109 115 110 print'export combined DEM file' 111 if access(project.topographies_dir,F_OK) == 0: 112 mkdir (project.topographies_dir) 116 117 print 'export',project.combined_dir_name + '.txt' 113 118 G_clipped.export_points_file(project.combined_dir_name + '.txt') 119 print 'export', project.combined_small_dir_name + '.txt' 114 120 G_small.export_points_file(project.combined_small_dir_name + '.txt') 115 121 #G_clipped.export_points_file(project.combined_dir_name + '.xya') 116 122 ''' 117 123 118 124 ''' -
anuga_work/production/broome_2006/project.py
r4358 r4366 119 119 120 120 poly_all = read_polygon(polygons_dir+'extent.csv') 121 res_poly_all = 150000121 res_poly_all = 500000 122 122 123 123 ############################### … … 126 126 127 127 poly_0 = read_polygon(polygons_dir+'neg20_coast_contour_pts.csv') 128 res_0 = 10000 128 res_0 = 100000 129 129 130 poly_1 = read_polygon(polygons_dir+'broome_north_coast_inside_extent.csv') 130 res_1 = 5000 131 res_1 = 50000 131 132 132 133 poly_2 = read_polygon(polygons_dir+'broome_south_coast_inside_extent.csv') 133 res_2 = 5000 134 res_2 = 50000 134 135 135 136 poly_3 = read_polygon(polygons_dir+'Broome_town_pts.csv') 136 res_3 = 2000 137 res_3 = 20000 137 138 138 139 poly_4 = read_polygon(polygons_dir+'Broome_inner_town_pts.csv') 139 res_4 = 500 140 res_4 = 5000 140 141 #assert zone == refzone 141 142
Note: See TracChangeset
for help on using the changeset viewer.