Changeset 6028
- Timestamp:
- Nov 28, 2008, 11:50:28 AM (16 years ago)
- Location:
- anuga_work/production/patong
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/patong/asc2raster_WGS84z47N.py
r5971 r6028 26 26 27 27 28 time_dir1 = '2008111 3_153848_run_final_0_kvanputt'28 time_dir1 = '20081117_142008_run_final_0_kvanputt' 29 29 30 30 time_dirs = [time_dir1] … … 38 38 39 39 # Process: Create File GDB... 40 gp.CreateFileGDB_management(folder, "raster")40 # gp.CreateFileGDB_management(folder, "raster") 41 41 42 42 gp.Workspace = raster_gbd … … 49 49 50 50 generate_filename = [] 51 input_ascii = glob.glob(folder + '* .asc')51 input_ascii = glob.glob(folder + '*ion.asc') 52 52 53 53 for infile in input_ascii: -
anuga_work/production/patong/build_patong.py
r5971 r6028 82 82 83 83 print 'clipping outside extents' 84 G3_clip1 = G3.clip_outside(project.extent_elev_dir1, verbose=True) 84 G1_clip = G1.clip(project.extent_elev_dir4, verbose=True) 85 G3_clip1 = G3.clip_outside(project.extent_elev_dir4, verbose=True) 85 86 G3_clip2 =G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True) 86 87 G4_clip = G4.clip_outside(project.extent_elev_dir3, verbose=True) … … 88 89 #print 'hello', dir(G3_clip1), dir(G3_clip1), dir(G4_clip) 89 90 print'add all geospatial objects' 90 G = G1 + G2 + G3_clip1 + G3_clip2 + G4_clip91 G = G1_clip + G2 + G3_clip1 + G3_clip2 + G4_clip 91 92 92 93 print'clip combined geospatial object by bounding polygon' -
anuga_work/production/patong/export_results_max.py
r5971 r6028 13 13 import project, os 14 14 import sys 15 from anuga.lib.maxasc.maxasc import MaxAsc 15 16 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 16 17 from anuga.shallow_water.data_manager import sww2dem 17 18 from os import sep 18 import maxasc19 19 20 20 directory = project.output_dir 21 21 22 time_dir1 = '200811 13_153848_run_final_0_kvanputt'22 time_dir1 = '20081126_141801_run_final_0.8_kvanputt' 23 23 24 24 time_dirs = [time_dir1] … … 49 49 50 50 # one or more key strings from var_equations above 51 var = ['stage', 'elevation' ]51 var = ['stage', 'elevation', 'depth', 'speed'] 52 52 53 53 ###### … … 110 110 ## print 'asc_name ', str(asc_name) 111 111 ## 112 ## maxasc.MaxAsc(maxasc_outname, asc_name)112 ## MaxAsc(maxasc_outname, asc_name) -
anuga_work/production/patong/project.py
r5971 r6028 42 42 # Model specific parameters. One or all can be changed each time the 43 43 # run_scenario script is executed 44 tide = 0 #0.844 tide = 0.8 #0.8 45 45 alpha = 0.1 # smoothing parameter for mesh 46 46 friction=0.01 # manning's friction coefficient … … 163 163 extent_elev_dir2 = read_polygon(polygons_dir + 'saddle_10m.txt') 164 164 extent_elev_dir3 = read_polygon(polygons_dir + 'patong_1s.txt') 165 extent_elev_dir4 = read_polygon(polygons_dir + 'patong_10m_aos.txt') 165 166 166 167 #Land, to set the initial stage/water to be offcoast only … … 179 180 res_aos1 = 1000*res_factor 180 181 182 # Area of Shallow water and coastal land that needs a finer res than 1000000 183 poly_sw = read_polygon(polygons_dir+'sw.csv') 184 res_sw = 2000*res_factor 185 181 186 # Combined all regions, must check that all are included! 182 interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1]] 187 interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1] 188 ,[poly_sw,res_sw]] 183 189 184 190 -
anuga_work/production/patong/run_patong.py
r5971 r6028 224 224 225 225 kwargs={} 226 kwargs['file_name']=project.dir_comment 226 227 kwargs['finaltime']=project.finaltime 227 228 kwargs['output_dir']=project.output_run_time_dir
Note: See TracChangeset
for help on using the changeset viewer.