Changeset 5784 for anuga_work/production/perth/build_perth.py
- Timestamp:
- Sep 25, 2008, 1:14:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/build_perth.py
r5781 r5784 1 1 """ 2 Script for building the elevation data to run tsunami inundation scenario2 Script for building the elevation data to run a tsunami inundation scenario 3 3 for Perth, WA, Australia. 4 4 … … 7 7 The run_perth.py is reliant on the output of this script. 8 8 9 Ole Nielsen and Duncan Gray, GA - 2005 and Jane Sexton, Nick Bartzis, GA - 200610 9 """ 11 10 … … 50 49 # Fine pts file to be clipped to area of interest 51 50 #------------------------------------------------------------------------------- 52 print "project.poly_all",project.poly_all53 print "project.combined_dir_name",project.combined_dir_name51 print "project.poly_all", project.poly_all 52 print "project.combined_dir_name", project.combined_dir_name 54 53 55 54 # input elevation directory filenames … … 85 84 convert_dem_from_ascii2netcdf(island_in_dir_name3, basename_out=island_dir_name3, use_cache=True, verbose=True) 86 85 87 # creates pts file for onshore DEM86 # creates pts file for onshore DEM 88 87 print "creates pts file for onshore DEM" 89 88 dem2pts(onshore_dir_name ,use_cache=True,verbose=True) 90 89 91 # creates pts file for island DEM90 # creates pts file for island DEM 92 91 dem2pts(island_dir_name, use_cache=True, verbose=True) 93 92 dem2pts(island_dir_name1, use_cache=True, verbose=True) … … 95 94 dem2pts(island_dir_name3, use_cache=True, verbose=True) 96 95 97 #------------------------------------------------------------------------------- 98 # Combine datasets into project.combined_dir_name 99 #------------------------------------------------------------------------------- 100 96 # create onshore pts files 101 97 print'create Geospatial data1 objects from topographies' 102 98 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts') … … 109 105 print'create Geospatial data5 objects from topographies' 110 106 G5 = Geospatial_data(file_name = island_dir_name3 + '.pts') 107 108 # create coastal and offshore pts files 111 109 print'create Geospatial data6 objects from topographies' 112 110 G_coast = Geospatial_data(file_name = coast_in_dir_name) … … 120 118 G_off3 = Geospatial_data(file_name = offshore_in_dir_name3) 121 119 120 #------------------------------------------------------------------------------- 121 # Combine, clip and export dataset 122 #------------------------------------------------------------------------------- 122 123 123 124 print'add all geospatial objects' … … 130 131 if access(project.topographies_dir,F_OK) == 0: 131 132 mkdir (project.topographies_dir) 132 #G_clipped.export_points_file(project.combined_dir_name + '.pts')133 G_clipped.export_points_file(project.combined_dir_name + '.txt') #Use for comparision in ARC133 G_clipped.export_points_file(project.combined_dir_name + '.pts') 134 #G_clipped.export_points_file(project.combined_dir_name + '.txt') #Use for comparision in ARC 134 135 135 import sys136 sys.exit()
Note: See TracChangeset
for help on using the changeset viewer.