Changeset 6271
- Timestamp:
- Feb 4, 2009, 1:51:49 PM (16 years ago)
- Location:
- anuga_work/production/patong
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/patong/build_patong.py
r6269 r6271 82 82 83 83 print 'clipping outside extents' 84 G1_clip = G1.clip(project.extent_elev_dir4, verbose=True)85 G3_clip1 = G3.clip_outside(project.extent_elev_dir 4, verbose=True)84 #G1_clip = G1.clip(project.extent_elev_dir4, verbose=True) 85 G3_clip1 = G3.clip_outside(project.extent_elev_dir1, verbose=True) 86 86 G3_clip2 = G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True) 87 87 G4_clip = G4.clip_outside(project.extent_elev_dir3, verbose=True) 88 88 89 89 #print 'hello', dir(G3_clip1), dir(G3_clip1), dir(G4_clip) 90 print 'add all geospatial objects'91 G = G1 _clip + G2 + G3_clip1+ G3_clip2 + G4_clip90 print 'Add all geospatial objects' 91 G = G1 + G2 + G3_clip2 + G4_clip 92 92 93 print 'clip combined geospatial object by bounding polygon'93 print 'Clip combined geospatial object by bounding polygon' 94 94 G_clipped = G.clip(project.poly_all) 95 95 96 print'export combined DEM file' 97 if access(project.topographies_dir,F_OK) == 0: 98 mkdir (project.topographies_dir) 96 print 'Oxport combined DEM file' 99 97 G_clipped.export_points_file(project.combined_dir_name + '.pts') 100 98 G_clipped.export_points_file(project.combined_dir_name + '.txt') #Use for comparision in ARC -
anuga_work/production/patong/project.py
r6264 r6271 48 48 finaltime=15000 # final time for simulation 15000 49 49 50 setup=' final' # Final can be replaced with trial or basic.50 setup='trial' # Final can be replaced with trial or basic. 51 51 # Either will result in a coarser mesh that will allow a 52 52 # faster, but less accurate, simulation. … … 89 89 elevation2 = 'patong_10m_small_grid_for_anuga_sub_Project.txt' 90 90 elevation3 = 'patong_bay_1s_grid_Project.txt' 91 elevation4 = 'andaman_3s_grid_Clip _Project.txt'91 elevation4 = 'andaman_3s_grid_Clip2_Project.txt' 92 92 93 93 # gauges - used in get_timeseries.py
Note: See TracChangeset
for help on using the changeset viewer.