Changeset 9337


Ignore:
Timestamp:
Sep 17, 2014, 4:28:53 PM (11 years ago)
Author:
davies
Message:

Adding code for patong bounding polygon + bug fixes

Location:
trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/project.py

    r9336 r9337  
    1919import numpy
    2020from anuga.utilities import spatialInputUtil as su
    21 import anuga
    2221from anuga_parallel import myid, barrier, send, receive, numprocs
    2322
     
    4544#
    4645
    47 finaltime = 0.05 * 3600.0
     46finaltime = 10.  # 0.05 * 3600.0
    4847
    4948# Model time between output file timesteps in seconds
     
    243242
    244243if pt_areas is not None:
    245     region_point_areas = su.readregion_point_areas(
     244    region_point_areas = su.readRegionPointAreas(
    246245        pt_areas,
    247246        convert_length_to_area=True)
     
    336335
    337336def setup_directory_structure():
    338     """
    339     Make output directories, send important data to files
     337    """Make output directories, send important data to files
     338
     339    This has no arguments, and returns nothing, but has lots of important side
     340    effects
    340341    """
    341342
     
    378379
    379380    def sav_lines(lines, filename='check.txt'):
     381        """quick convenience function
     382        """
    380383        new_a = numpy.array(lines)
    381384        numpy.savetxt(filename, new_a)
  • trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/raster_outputs.py

    r9336 r9337  
    145145      the rasters to
    146146    - proj4string defining the coordinate system
    147     - myTimeStep -- option from util.Make_Geotif
     147    - my_time_step -- option from util.Make_Geotif
    148148      use 'max' to plot the maxima
    149149      use [0, 5, 10] to plot the
     
    210210                tmp_arr,
    211211                output_quantities=[quant + '_MAX'],
    212                 cell_size=cell_size,
     212                CellSize=cell_size,
    213213                proj4string=proj4string,
    214214                verbose=True,
     
    221221        util.Make_Geotif(
    222222            sww_file,
    223             my_time_step=[0],
     223            myTimeStep=[0],
    224224            output_quantities=['elevation', 'friction'],
    225             cell_size=cell_size,
     225            CellSize=cell_size,
    226226            proj4string=proj4string,
    227227            verbose=True,
     
    232232        util.Make_Geotif(
    233233            sww_file,
    234             my_time_step=my_time_step,
     234            myTimeStep=my_time_step,
    235235            output_quantities=[
    236236                'depth',
     
    241241                'friction',
    242242            ],
    243             cell_size=cell_size,
     243            CellSize=cell_size,
    244244            proj4string=proj4string,
    245245            verbose=True,
     
    263263        elevation_raster,
    264264        raster_extent,
    265         cell_size,
     265        CellSize,
    266266        clip_polygon,
    267267        clip_polygon_layer,
  • trunk/anuga_work/development/gareth/template_scenarios/tsunami/tsunami2/scripts/setup_initial_conditions.py

    r9336 r9337  
    120120    # The 'saddle 10m' dataset
    121121
    122     sf = '../anuga/topographies/patong_10m_small_grid_for_anuga_sub_Project.txt'
     122    sf =\
     123        '../anuga/topographies/patong_10m_small_grid_for_anuga_sub_Project.txt'
    123124    elevation_saddle_10m = \
    124125        numpy.genfromtxt(sf, delimiter=',', skip_header=1)
Note: See TracChangeset for help on using the changeset viewer.