Changeset 5785 for anuga_work/production/perth/build_perth_250m.py
- Timestamp:
- Sep 25, 2008, 1:34:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/build_perth_250m.py
r5782 r5785 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 … … 29 28 30 29 # Application specific imports 31 import project _250m# Definition of file names and polygons30 import project # Definition of file names and polygons 32 31 33 32 #------------------------------------------------------------------------------ … … 50 49 # Fine pts file to be clipped to area of interest 51 50 #------------------------------------------------------------------------------- 52 print "project_250m.poly_all",project_250m.poly_all53 print "project_250m.combined_dir_name",project_250m.combined_dir_name51 print "project_250m.poly_all", project_250m.poly_all 52 print "project_250m.combined_dir_name", project_250m.combined_dir_name 54 53 55 54 # input elevation directory filenames … … 63 62 convert_dem_from_ascii2netcdf(onshore_in_dir_name, basename_out=onshore_dir_name, use_cache=True, verbose=True) 64 63 65 # creates pts file for onshore DEM64 # creates pts file for onshore DEM 66 65 print "creates pts file for onshore DEM" 67 66 dem2pts(onshore_dir_name ,use_cache=True,verbose=True) 68 67 69 #------------------------------------------------------------------------------- 70 # Combine datasets into project_250m.combined_dir_name 71 #------------------------------------------------------------------------------- 72 68 # create onshore pts files 73 69 print'create Geospatial data1 objects from topographies' 74 70 G = Geospatial_data(file_name = onshore_dir_name + '.pts') 71 72 #------------------------------------------------------------------------------- 73 # Combine, clip and export dataset 74 #------------------------------------------------------------------------------- 75 75 76 76 print'clip combined geospatial object by bounding polygon' … … 83 83 #G_clipped.export_points_file(project_250m.combined_dir_name + '.txt') #Use for comparision in ARC 84 84 85 import sys86 sys.exit()
Note: See TracChangeset
for help on using the changeset viewer.