Changeset 4177
- Timestamp:
- Jan 15, 2007, 2:58:45 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r4172 r4177 55 55 # Fine pts file to be clipped to area of interest 56 56 #------------------------------------------------------------------------------- 57 print"project. bounding_polygon",project.bounding_polygon57 print"project.poly_all",project.poly_all 58 58 print"project.combined_dir_name",project.combined_dir_name 59 59 … … 96 96 97 97 print'create Geospatial onshore objects from topographies' 98 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts') 99 print'create Geospatial coastalobjects from topographies'100 G2 = Geospatial_data(file_name = coast_in_dir_name + '.xya') 101 print'create Geospatial nickel bayobjects from topographies'102 G 3 = Geospatial_data(file_name = offshore1_dir_name + '.pts')103 print'create Geospatial clipped TIN offshore objects from topographies' 104 G4 = Geospatial_data(file_name = offshore2_dir_name + '.pts') 105 print'create Geospatial offshore objects from topographies' 106 G_off =Geospatial_data(file_name = offshore_in_dir_name + '.xya')98 #print'create Geospatial coastal objects from topographies' 99 #print'create Geospatial nickel bay objects from topographies' 100 #print'create Geospatial clipped TIN offshore objects from topographies' 101 #print'create Geospatial offshore objects from topographies' 102 G = Geospatial_data(file_name = onshore_dir_name + '.pts') +\ 103 Geospatial_data(file_name = coast_in_dir_name + '.xya') +\ 104 Geospatial_data(file_name = offshore1_dir_name + '.pts') +\ 105 Geospatial_data(file_name = offshore2_dir_name + '.pts') +\ 106 Geospatial_data(file_name = offshore_in_dir_name + '.xya') 107 107 108 108 print'add all geospatial objects' 109 G = G1 + G2 + G3 + G4 + G_off109 #G = G1 + G2 + G3 + G4 + G_off 110 110 111 111 print'clip combined geospatial object by bounding polygon' -
anuga_work/production/dampier_2006/project.py
r4172 r4177 7 7 from time import localtime, strftime, gmtime 8 8 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon, number_mesh_triangles 9 from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees, convert_ points_from_latlon_to_utm9 from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees, convert_from_latlon_to_utm 10 10 from anuga.utilities.system_tools import get_user_name 11 11 … … 35 35 36 36 # onshore data provided by WA DLI 37 onshore_name = 'd ampier_dli_ext' # original37 onshore_name = 'dli' # original 38 38 39 39 # AHO + DPI data + colin French coastline 40 coast_name = ' waterline'41 offshore_name = ' dampier_bathymetry'42 offshore1_name = ' nickelbay'43 offshore2_name = ' tinclip'40 coast_name = 'coastline' 41 offshore_name = 'bathymetry' 42 offshore1_name = 'elev_501' 43 offshore2_name = 'inferrec_e' 44 44 45 45 #final topo name … … 47 47 combined_smaller_name = 'dampier_combined_elevation_smaller' 48 48 49 topographies_in_dir = home+sep+state+sep+scenario+sep+'elevation_final'+sep+' points'+sep49 topographies_in_dir = home+sep+state+sep+scenario+sep+'elevation_final'+sep+'070112'+sep+'points'+sep 50 50 topographies_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'topographies'+sep 51 51 topographies_time_dir = topographies_dir+build_time+sep … … 126 126 # Interior region definitions 127 127 ############################### 128 128 """ 129 129 poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20_pts.csv') 130 130 res_pos20_neg20 = 20000 … … 155 155 156 156 print 'min number triangles', trigs_min 157 157 """ 158 158 ################################################################### 159 159 # Clipping regions for export to asc and regions for clipping data 160 160 ################################################################### 161 161 162 poly_bathy = read_polygon(polygons_dir+'polybathy.csv')162 #poly_bathy = read_polygon(polygons_dir+'polybathy.csv') 163 163 164 164 # exporting asc grid - Dampier … … 169 169 170 170 # exporting asc grid - Karratha 171 e_min_area =172 e_max_area =173 n_min_area =174 n_max_area =171 ##e_min_area = 172 ##e_max_area = 173 ##n_min_area = 174 ##n_max_area = 175 175 176 176 """
Note: See TracChangeset
for help on using the changeset viewer.