Ignore:
Timestamp:
Jul 6, 2007, 2:40:57 PM (18 years ago)
Author:
ole
Message:

Work on shark bay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/shark_bay_2007/project.py

    r4577 r4601  
    4141starttime=3600
    4242setup='final'
     43#setup='trial'
    4344source='shark_bay'
     45
     46boundary_event = 'july2006'
     47#boundary_event = '10000'
    4448
    4549if setup =='trial':
     
    6064
    6165
    62 #dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)+'_'+'nobdry'
    63 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)
     66dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+\
     67             str(user)+'_'+boundary_event
    6468
    6569# elevation data filenames
     
    100104# locations for boundary conditions
    101105if source=='shark_bay':
    102     boundary_file_name = 'shark_bay_3867_18052007'
    103     boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000')
     106    if boundary_event == '10000':
     107        boundary_file_name = 'shark_bay_3867_18052007'
     108        boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000')
     109    elif boundary_event == 'july2006':
     110        boundary_file_name = 'july2006'   
     111        boundary_dir = join(anuga_dir, 'boundaries',
     112                            'shark_bay', 'july_2006_event')
     113    else:
     114        raise Exception, 'Unknown boundary event specified'
    104115
    105116boundary_name = join(boundary_dir, boundary_file_name)
     
    150161
    151162# Bounding polygon
    152 bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent.csv'))
    153 res_bounding_polygon = 250000*res_factor
     163bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent_small.csv'))
     164res_bounding_polygon = 350000*res_factor
    154165
    155166#Interior regions
    156167poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv'))
    157 res_inundated_area = 200*res_factor
     168res_inundated_area = 10*res_factor
    158169
    159170poly_tsunami_approach_area = read_polygon(join(polygons_dir, 'tsunami_approach_area.csv'))
    160 res_tsunami_approach_area = 500*res_factor
     171res_tsunami_approach_area = 50*res_factor
    161172
    162173poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv'))                                   
     
    175186                    [poly_tsunami_approach_area, res_tsunami_approach_area],
    176187                    [poly_bay_area, res_bay_area],                   
    177                     [poly_map_area, res_map_area],
    178                     [poly_model_area, res_model_area],
    179                     [poly_exclusion_area1, res_exclusion_area1]]                                       
     188                    [poly_map_area, res_map_area]]
     189                    #[poly_model_area, res_model_area],
     190                    #[poly_exclusion_area1, res_exclusion_area1]]                                       
     191
     192# FIXME (Ole): What if tags are wrong?
     193
     194#Large bounding poly
     195#boundary_tags = {'back': [1, 2, 3, 4, 5],   
     196#                 'side': [0, 6],
     197#                 'ocean': [7, 8, 9, 10, 11]}
     198
     199
     200#Small bounding poly
     201#(counter clockwise starting in upper right corner)
     202boundary_tags = {'tide': [0, 1, 2],
     203                 'ocean': [3, 4, 5, 6]}
    180204
    181205
Note: See TracChangeset for help on using the changeset viewer.