Changeset 6263


Ignore:
Timestamp:
Feb 3, 2009, 2:49:34 PM (16 years ago)
Author:
ole
Message:

Fiddling

Location:
anuga_work/production/busselton/standardised_version
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/standardised_version/build_busselton.py

    r6262 r6263  
    1 """
    2 Script for building the elevation data to run a tsunami inundation scenario
    3 for busselton, WA, Australia.
     1"""Build the elevation data to run a tsunami inundation scenario
     2for Busselton, WA, Australia.
    43
    54Input: elevation data from project.py
     
    1716
    1817# Related major packages
    19 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
     18from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf
     19from anuga.shallow_water.data_manager import dem2pts
     20from anuga.shallow_water.data_manager import start_screen_catcher
     21from anuga.shallow_water.data_manager import copy_code_files
    2022from anuga.geospatial_data.geospatial_data import Geospatial_data
    21 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files
    2223
    2324# Application specific imports
    2425import project   # Definition of file names and polygons
     26
    2527
    2628#------------------------------------------------------------------------------
     
    2830# output to file
    2931#------------------------------------------------------------------------------
    30 
    3132copy_code_files(project.output_build_time_dir,__file__,
    32                 os.path.dirname(project.__file__)+os.sep+ project.__name__+'.py' )
     33                os.path.dirname(project.__file__)+os.sep+\
     34                project.__name__+'.py' )
    3335start_screen_catcher(project.output_build_time_dir)
    3436
    3537
    36 #-------------------------------------------------------------------------------
     38#------------------------------------------------------------------------------
    3739# Preparation of topographic data
    3840#
     
    4042# Do for coarse and fine data
    4143# Fine pts file to be clipped to area of interest
    42 #-------------------------------------------------------------------------------
     44#------------------------------------------------------------------------------
    4345
    4446print 'project.poly_all', project.poly_all
     
    8385G_clipped.export_points_file(project.combined_dir_name + '.pts')
    8486print 'Do txt version too'
    85 G_clipped.export_points_file(project.combined_dir_name + '.txt') # Use for comparision in ARC
     87# Use for comparision in ARC
     88G_clipped.export_points_file(project.combined_dir_name + '.txt')
    8689
  • anuga_work/production/busselton/standardised_version/run_busselton.py

    r6262 r6263  
    1 """Script for running a tsunami inundation scenario for busselton, WA, Australia.
     1"""Run a tsunami inundation scenario for Busselton, WA, Australia.
    22
    3 The scenario is defined by a triangular mesh created from project.polygon,
    4 the elevation data is compiled into a pts file through build_busselton.py
    5 and a simulated tsunami is generated through an sts file from build_boundary.py.
     3The scenario is defined by a triangular mesh created from project.polygon, the
     4elevation data is compiled into a pts file through build_busselton.py and a
     5simulated tsunami is generated through an sts file from build_boundary.py.
    66
    77Input: sts file (build_boundary.py for respective event)
     
    4242#-----------------------------------------------------------------------
    4343# Copy scripts to time stamped output directory and capture screen
    44 # output to file
     44# output to file. Copy script must be before screen_catcher
    4545#-----------------------------------------------------------------------
    46 
    47 copy script must be before screen_catcher
    4846copy_code_files(project.output_run_time_dir, __file__,
    49                 os.path.dirname(project.__file__)+os.sep+ project.__name__+'.py' )
    50 start_screen_catcher(project.output_run_time_dir, myid, numprocs)
     47                os.path.dirname(project.__file__)+os.sep+\
     48                project.__name__+'.py' )
     49start_screen_catcher(project.output_run_time_dir, 0, 1)
    5150
    5251
     
    8988domain.set_datadir(project.output_run_time_dir)
    9089domain.set_minimum_storable_height(0.01)    # Don't store depth less than 1cm
     90
    9191
    9292#-------------------------------------------------------------------------
     
    140140
    141141print 'Simulation took %.2f seconds' %(time.time()-t0)
    142 
    143    
    144    
    145 
    146      
    147    
Note: See TracChangeset for help on using the changeset viewer.