Changeset 3261
- Timestamp:
- Jun 30, 2006, 12:34:20 PM (18 years ago)
- Location:
- production/onslow_2006
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/export_results.py
r2956 r3261 7 7 from os import sep 8 8 9 time_dir = "20060 426_004129"9 time_dir = "20060629_085137" 10 10 directory = project.outputdir 11 11 name = directory + time_dir +sep + "source" … … 22 22 #print 'Which variable do you want to export?' 23 23 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) 24 which_var = 224 which_var = 4 25 25 #sys.stderr.write(sys.stdout.data) 26 26 if which_var == 0: # Stage -
production/onslow_2006/project.py
r3249 r3261 21 21 22 22 # 30m data to be provided 23 onshore_name = 'onslow_onshore_30m_dted' # get from Neil/Ingo (DEM or topo data) 24 23 onshore_name_dted = 'onslow_onshore_30m_dted2' # get from Neil/Ingo (DEM or topo data) 24 25 # 20m data to be provided 26 onshore_name_dli = 'onslow_onshore_20m_dli' # get from Neil/Ingo (DEM or topo data) 27 28 coast_name = 'onslow_coast' 29 islands_name = 'onslow_islands_dted2' 25 30 offshore_name = 'onslow_offshore_points' 26 31 … … 92 97 coarsedemname = datadir + coarsename 93 98 94 onshore_dem_name = datadir + onshore_name 99 onshore_dem_name = datadir + onshore_name_dli 95 100 96 101 offshore_dem_name = datadir + offshore_name 97 102 coast_dem_name = datadir + coast_name 103 islands_dem_name = datadir + islands_name 98 104 combined_dem_name = datadir + 'onslow_combined_elevation' 99 105 -
production/onslow_2006/run_onslow.py
r3249 r3261 50 50 51 51 onshore_dem_name = project.onshore_dem_name 52 52 islands_dem_name = project.islands_dem_name 53 coast_points = project.coast_dem_name 53 54 offshore_points = project.offshore_dem_name 54 55 … … 73 74 sys.stderr = Screen_Catcher(screen_error_name) 74 75 75 ''' 76 76 77 copied_files = False 77 78 78 79 # files to be used 79 files_used = [onshore_dem_name, offshore_points, ]80 files_used = [onshore_dem_name, offshore_points, coast_points,] 80 81 81 82 if sys.platform != 'win32': … … 93 94 convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True) 94 95 95 #creates pts file f romDEM96 #creates pts file for onshore DEM 96 97 dem2pts(onshore_dem_name, 97 98 easting_min=project.eastingmin, … … 102 103 verbose=True) 103 104 105 convert_dem_from_ascii2netcdf(islands_dem_name, use_cache=True, verbose=True) 106 107 #creates pts file for islands DEM 108 dem2pts(islands_dem_name, use_cache=True, verbose=True) 109 104 110 print'create G1' 105 111 G1 = Geospatial_data(file_name = project.offshore_dem_name + '.xya') … … 108 114 G2 = Geospatial_data(file_name = project.onshore_dem_name + '.pts') 109 115 110 print'add G1+G2' 111 G = G1 + G2 116 print'create G3' 117 G3 = Geospatial_data(file_name = project.coast_dem_name + '.xya') 118 119 print'create G4' 120 G4 = Geospatial_data(file_name = project.islands_dem_name + '.pts') 121 122 print'add G1+G2+G3+G4' 123 G = G1 + G2 + G3 + G4 112 124 113 125 print'export G' 114 126 G.export_points_file(project.combined_dem_name + '.pts') 115 ''' 127 116 128 117 129 #------------------------------------------------------------------------------- … … 131 143 ''' 132 144 #new 133 region_res = 25000145 region_res = 50000 134 146 coast_res = 25000 135 147 onslow_res = 500 136 148 interior_regions = [[project.poly_onslow, onslow_res], 137 [project.poly_coast, coast_res] ]#,138 #[project.poly_region, region_res]]149 [project.poly_coast, coast_res], 150 [project.poly_region, region_res]] 139 151 140 152 print 'number of interior regions', len(interior_regions) … … 147 159 'bottom': [4], 'bottomright': [5], 148 160 'topright':[6]}, 149 'maximum_triangle_area': 100000,161 'maximum_triangle_area': 250000, 150 162 'filename': meshname, 151 163 'interior_regions': interior_regions}, … … 270 282 domain.write_boundary_statistics(tags = 'top') 271 283 272 for t in domain.evolve(yieldstep = 60, finaltime = 17760284 for t in domain.evolve(yieldstep = 1, finaltime = 17760 273 285 ,skip_initial_step = True): 274 286 domain.write_time()
Note: See TracChangeset
for help on using the changeset viewer.