Ignore:
Timestamp:
Sep 25, 2008, 1:34:14 PM (16 years ago)
Author:
kristy
Message:

Correlating with Janes updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/perth/build_perth_250m.py

    r5782 r5785  
    11"""
    2 Script for building the elevation data to run tsunami inundation scenario
     2Script for building the elevation data to run a tsunami inundation scenario
    33for Perth, WA, Australia.
    44
     
    77The run_perth.py is reliant on the output of this script.
    88
    9 Ole Nielsen and Duncan Gray, GA - 2005 and Jane Sexton, Nick Bartzis, GA - 2006
    109"""
    1110
     
    2928
    3029# Application specific imports
    31 import project_250m   # Definition of file names and polygons
     30import project   # Definition of file names and polygons
    3231
    3332#------------------------------------------------------------------------------
     
    5049# Fine pts file to be clipped to area of interest
    5150#-------------------------------------------------------------------------------
    52 print"project_250m.poly_all",project_250m.poly_all
    53 print"project_250m.combined_dir_name",project_250m.combined_dir_name
     51print "project_250m.poly_all", project_250m.poly_all
     52print "project_250m.combined_dir_name", project_250m.combined_dir_name
    5453
    5554# input elevation directory filenames
     
    6362convert_dem_from_ascii2netcdf(onshore_in_dir_name, basename_out=onshore_dir_name, use_cache=True, verbose=True)
    6463
    65 #creates pts file for onshore DEM
     64# creates pts file for onshore DEM
    6665print "creates pts file for onshore DEM"
    6766dem2pts(onshore_dir_name ,use_cache=True,verbose=True)
    6867
    69 #-------------------------------------------------------------------------------
    70 # Combine datasets into project_250m.combined_dir_name
    71 #-------------------------------------------------------------------------------
    72 
     68# create onshore pts files
    7369print'create Geospatial data1 objects from topographies'
    7470G = Geospatial_data(file_name = onshore_dir_name + '.pts')
     71
     72#-------------------------------------------------------------------------------
     73# Combine, clip and export dataset
     74#-------------------------------------------------------------------------------
    7575
    7676print'clip combined geospatial object by bounding polygon'
     
    8383#G_clipped.export_points_file(project_250m.combined_dir_name + '.txt') #Use for comparision in ARC
    8484
    85 import sys
    86 sys.exit()
Note: See TracChangeset for help on using the changeset viewer.