Changeset 5149 for anuga_work/production/busselton/build_busselton.py
- Timestamp:
- Mar 10, 2008, 3:59:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/build_busselton.py
r4132 r5149 27 27 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 28 28 from anuga.geospatial_data.geospatial_data import * 29 from anuga. abstract_2d_finite_volumes.util import start_screen_catcher, copy_code_files29 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters 30 30 31 31 # Application specific imports … … 39 39 start_screen_catcher(project.output_build_time_dir) 40 40 41 print 'time stamp: ',project. gtime41 print 'time stamp: ',project.time 42 42 print 'USER: ', project.user 43 43 … … 59 59 onshore_in_dir_name = project.onshore_in_dir_name 60 60 coast_in_dir_name = project.coast_in_dir_name 61 coast_in_dir_name1 = project.coast_in_dir_name1 61 62 #island_in_dir_name = project.island_in_dir_name 62 63 offshore_in_dir_name = project.offshore_in_dir_name … … 64 65 onshore_dir_name = project.onshore_dir_name 65 66 coast_dir_name = project.coast_dir_name 67 coast_dir_name1 = project.coast_dir_name1 66 68 #island_dir_name = project.island_dir_name 67 69 offshore_dir_name = project.offshore_dir_name … … 86 88 87 89 print'create Geospatial data1 objects from topographies' 88 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts') 89 G2 = Geospatial_data(file_name = coast_in_dir_name + '.xya') 90 #G3 = Geospatial_data(file_name = island_dir_name + '.pts') 91 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.xya') 90 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts',verbose=True) 91 G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt',verbose=True) 92 G3 = Geospatial_data(file_name = coast_in_dir_name1 + '.txt',verbose=True) 93 #G3 = Geospatial_data(file_name = island_dir_name + '.pts',verbose=True) 94 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt',verbose=True) 92 95 93 96 print'add all geospatial objects' 94 G = G1 + G2 + G _off97 G = G1 + G2 + G3 + G_off 95 98 96 99 print'clip combined geospatial object by bounding polygon' … … 102 105 if access(project.topographies_dir,F_OK) == 0: 103 106 mkdir (project.topographies_dir) 104 G.export_points_file(project.combined_dir_name + '. xya')107 G.export_points_file(project.combined_dir_name + '.txt') 105 108 #G_clipped.export_points_file(project.combined_dir_name + '.xya') 106 109 110 print'project.combined_dir_name + .txt',project.combined_dir_name + '.txt' 111 #G_all=Geospatial_data(file_name = project.combined_dir_name + '.txt') 112 print'split' 113 G_all_1, = G.split(.10) 114 print'export 1' 115 G_all_1.export_points_file(project.combined_dir_name+'_small' + '.txt') 116 #print'export 2' 117 #G_all_2.export_points_file(project.combined_dir_name+'_other1' + '.xya') 118 107 119 ''' 108 print'project.combined_dir_name + 1.xya',project.combined_dir_name + '1.xya'109 G_all=Geospatial_data(file_name = project.combined_dir_name + '1.xya')110 print'split'111 G_all_1, G_all_2 = G_all.split(.10)112 print'export 1'113 G_all_1.export_points_file(project.combined_dir_name+'_small1' + '.xya')114 print'export 2'115 G_all_2.export_points_file(project.combined_dir_name+'_other1' + '.xya')116 117 118 120 #------------------------------------------------------------------------- 119 121 # Convert URS to SWW file for boundary conditions
Note: See TracChangeset
for help on using the changeset viewer.