Changeset 5578
- Timestamp:
- Jul 25, 2008, 5:21:30 PM (15 years ago)
- Location:
- anuga_work/production
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/build_boundary.py
r5575 r5578 52 52 verbose=True) 53 53 54 # Read in boundary from ordered sts file55 urs_boundary_polygon=create_sts_boundary(scenario_name)56 54 57 55 … … 60 58 61 59 62 -
anuga_work/production/busselton/run_busselton.py
r5575 r5578 18 18 from os import sep 19 19 from os.path import dirname, basename 20 import os 20 21 from os import mkdir, access, F_OK 21 22 from shutil import copy … … 30 31 from anuga.shallow_water import Field_boundary 31 32 from Numeric import allclose 32 from anuga.shallow_water.data_manager import export_grid 33 from anuga.shallow_water.data_manager import export_grid, create_sts_boundary 33 34 34 35 from anuga.pmesh.mesh_interface import create_mesh_from_regions … … 77 78 78 79 # Read in boundary from ordered sts file 79 urs_bounding_polygon=create_sts_boundary( project.scenario_name)80 urs_bounding_polygon=create_sts_boundary(os.path.join(project.boundaries_dir,project.scenario_name)) 80 81 81 82 # Reading the landward defined points, this incorporates the original clipping 82 83 # polygon minus the 100m contour 83 landward_bounding_polygon = read_polygon(project. polygons_dir+'landward_bounding_polygon.txt')84 landward_bounding_polygon = read_polygon(project.boundaries_dir+'landward_bounding_polygon.txt') 84 85 85 86 # Combine sts polyline with landward points … … 104 105 print 'start create mesh from regions' 105 106 106 create_mesh_from_regions( project.poly_all,107 boundary_tags= project.boundary_tags,107 create_mesh_from_regions(bounding_polygon, 108 boundary_tags=boundary_tags, 108 109 maximum_triangle_area=project.res_poly_all, 109 110 interior_regions=project.interior_regions, … … 255 256 kwargs['bathy_file']=project.combined_dir_name+'.txt' 256 257 # kwargs['bathy_file']=project.combined_small_dir_name + '.pts' 257 kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww'258 258 259 kwargs['file_name']=project.home+'detail.csv' 259 260 kwargs['aa_scenario_name']=project.scenario_name -
anuga_work/production/perth/build_boundary.py
r5576 r5578 21 21 suffix='-z.grd' 22 22 23 24 25 26 23 urs_filenames={} 27 24 for filename in os.listdir(dir): … … 29 26 30 27 urs_filenames[basename] = True 31 32 28 33 29 # Make list of basenames … … 55 51 verbose=True) 56 52 57 # Read in boundary from ordered sts file58 urs_boundary_polygon=create_sts_boundary(scenario_name)59 53 60 54 61 55 62 56 63 64 65 -
anuga_work/production/perth/run_perth.py
r5569 r5578 17 17 # Standard modules 18 18 from os import sep 19 import os 19 20 from os.path import dirname, basename 20 21 from os import mkdir, access, F_OK … … 77 78 78 79 # Read in boundary from ordered sts file 79 urs_bounding_polygon=create_sts_boundary( project.scenario_name)80 urs_bounding_polygon=create_sts_boundary(os.path.join(project.boundaries_dir,project.scenario_name)) 80 81 81 82 # Reading the landward defined points, this incorporates the original clipping
Note: See TracChangeset
for help on using the changeset viewer.