Changeset 6560
- Timestamp:
- Mar 20, 2009, 4:02:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/build_busselton.py
r6062 r6560 62 62 offshore_in_dir_name4 = project.offshore_in_dir_name4 63 63 offshore_in_dir_name5 = project.offshore_in_dir_name5 64 offshore_in_dir_name6 = project.offshore_in_dir_name6 65 offshore_in_dir_name7 = project.offshore_in_dir_name7 64 66 65 67 # output elevation directory filenames … … 73 75 offshore_dir_name4 = project.offshore_dir_name4 74 76 offshore_dir_name5 = project.offshore_dir_name5 77 offshore_dir_name6 = project.offshore_dir_name6 78 offshore_dir_name7 = project.offshore_dir_name7 79 75 80 # creates DEM from asc data 76 81 print "creates DEMs from asc data" 77 82 convert_dem_from_ascii2netcdf(onshore_in_dir_name, basename_out=onshore_dir_name, use_cache=True, verbose=True) 78 convert_dem_from_ascii2netcdf(offshore_in_dir_name 5, basename_out=offshore_dir_name5, use_cache=True, verbose=True)83 convert_dem_from_ascii2netcdf(offshore_in_dir_name7, basename_out=offshore_dir_name7, use_cache=True, verbose=True) 79 84 80 85 # creates pts file for onshore DEM 81 86 print "creates pts file for onshore DEM" 82 87 dem2pts(onshore_dir_name ,use_cache=True,verbose=True) 83 dem2pts(offshore_dir_name 5,use_cache=True,verbose=True)88 dem2pts(offshore_dir_name7 ,use_cache=True,verbose=True) 84 89 85 90 # create onshore pts files … … 103 108 G_off4 = Geospatial_data(file_name = offshore_in_dir_name4) 104 109 print'create Geospatial data9 objects from topographies' 105 G_off5 = Geospatial_data(file_name = offshore_dir_name5 + '.pts') 110 G_off5 = Geospatial_data(file_name = offshore_in_dir_name5) 111 print'create Geospatial data9 objects from topographies' 112 G_off6 = Geospatial_data(file_name = offshore_in_dir_name6) 113 print'create Geospatial data9 objects from topographies' 114 G_off7 = Geospatial_data(file_name = offshore_dir_name7 + '.pts') 115 116 106 117 107 118 … … 111 122 112 123 print'add all geospatial objects' 113 G = G1 + G2 + G3 + G_off + G_off1 + G_off2 + G_off3 + G_off4 124 G = G1 + G2 + G3 + G_off + G_off1 + G_off2 + G_off3 + G_off4 114 125 115 126 print'clip combined geospatial object by bounding polygon' 116 127 G_clip = G.clip_outside(project.poly_aoi1) 117 G_all = G_clip + G_off5 128 G_all = G_clip + G_off5 + G_off6 + G_off7 118 129 G_clipped = G_all.clip(project.poly_all) 119 130
Note: See TracChangeset
for help on using the changeset viewer.