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

updated commments for perth scripts

File:
1 edited

Legend:

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

    r5781 r5784  
    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
     
    5049# Fine pts file to be clipped to area of interest
    5150#-------------------------------------------------------------------------------
    52 print"project.poly_all",project.poly_all
    53 print"project.combined_dir_name",project.combined_dir_name
     51print "project.poly_all", project.poly_all
     52print "project.combined_dir_name", project.combined_dir_name
    5453
    5554# input elevation directory filenames
     
    8584convert_dem_from_ascii2netcdf(island_in_dir_name3, basename_out=island_dir_name3, use_cache=True, verbose=True)
    8685
    87 #creates pts file for onshore DEM
     86# creates pts file for onshore DEM
    8887print "creates pts file for onshore DEM"
    8988dem2pts(onshore_dir_name ,use_cache=True,verbose=True)
    9089
    91 #creates pts file for island DEM
     90# creates pts file for island DEM
    9291dem2pts(island_dir_name, use_cache=True, verbose=True)
    9392dem2pts(island_dir_name1, use_cache=True, verbose=True)
     
    9594dem2pts(island_dir_name3, use_cache=True, verbose=True)
    9695
    97 #-------------------------------------------------------------------------------
    98 # Combine datasets into project.combined_dir_name
    99 #-------------------------------------------------------------------------------
    100 
     96# create onshore pts files
    10197print'create Geospatial data1 objects from topographies'
    10298G1 = Geospatial_data(file_name = onshore_dir_name + '.pts')
     
    109105print'create Geospatial data5 objects from topographies'
    110106G5 = Geospatial_data(file_name = island_dir_name3 + '.pts')
     107
     108# create coastal and offshore pts files
    111109print'create Geospatial data6 objects from topographies'
    112110G_coast = Geospatial_data(file_name = coast_in_dir_name)
     
    120118G_off3 = Geospatial_data(file_name = offshore_in_dir_name3)
    121119
     120#-------------------------------------------------------------------------------
     121# Combine, clip and export dataset
     122#-------------------------------------------------------------------------------
    122123
    123124print'add all geospatial objects'
     
    130131if access(project.topographies_dir,F_OK) == 0:
    131132    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 ARC
     133G_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
    134135
    135 import sys
    136 sys.exit()
Note: See TracChangeset for help on using the changeset viewer.