Changeset 4482


Ignore:
Timestamp:
May 24, 2007, 9:29:44 AM (17 years ago)
Author:
nick
Message:

updates to exmouth

Location:
anuga_work/production/exmouth_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/exmouth_2006/build_exmouth.py

    r4476 r4482  
    2828from anuga.geospatial_data.geospatial_data import *
    2929from anuga.abstract_2d_finite_volumes.util import start_screen_catcher, copy_code_files
     30from anuga_parallel.parallel_abstraction import get_processor_name
    3031
    3132# Application specific imports
     
    4243start_screen_catcher(project.output_build_time_dir)
    4344
     45print "Processor Name:",get_processor_name()
    4446print 'USER:    ', project.user
    4547
  • anuga_work/production/exmouth_2006/run_exmouth.py

    r4476 r4482  
    3030from anuga.shallow_water import Field_boundary
    3131from Numeric import allclose
     32from anuga.shallow_water.data_manager import export_grid
    3233
    3334from anuga.pmesh.mesh_interface import create_mesh_from_regions
     
    228229    barrier()
    229230
     231    export_grid(kwargs['aa_scenario_name'], extra_name_out = 'town',
     232                quantities = ['elevation','stage'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
     233                timestep = None,
     234                reduction = max,
     235                cellsize = 25,
     236                NODATA_value = -9999,
     237                easting_min = project.eastingmin,
     238                easting_max = project.eastingmax,
     239                northing_min = project.northingmin,
     240                northing_max = project.northingmax,
     241                verbose = False,
     242                origin = None,
     243                datum = 'WGS84',
     244                format = 'asc')
     245   
     246    swwfile = kwargs['output_dir']+kwargs['aa_scenario_name']+'.sww'
     247    buildings_filename = project.buildings_filename
     248    buildings_filename_out = file_loc + project.buildings_filename_out
     249               
     250    inundation_damage(swwfile, buildings_filename, buildings_filename_out)
     251    print '\n Augmented building file written to %s \n' \
     252           %buildings_filename_out
     253
    230254
    231255#-------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.