Changeset 7546


Ignore:
Timestamp:
Oct 9, 2009, 5:17:27 PM (15 years ago)
Author:
monica
Message:

mandurah tsunami file setup - input elevation and polygons

Location:
anuga_work/production/wa/mandurah_2009
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/wa/mandurah_2009/build_elevation.py

    r7545 r7546  
    6464        geospatial_data[filename] = G_grid.clip(project.bounding_polygon)
    6565
    66 # Create Geospatial data from TXT files
     66#Create Geospatial data from TXT files
    6767if not project.point_filenames == []:
    6868    for filename in project.point_filenames:
     
    7979print 'Add geospatial objects' # except', project.offshore_name5
    8080G = None
     81G1 = None
     82G2 = None
    8183for key in geospatial_data:
    82     #if key == project.point_filenames[4] or key == project.ascii_filenames[1]:
    83     #    # Skip these files for now
    84     #    continue
     84   if key == 'm_peel_1m':
     85        G1 = geospatial_data[key].clip(project.clip_box)
     86
     87   if key == 'ph10mex_clipped':
     88        G2 = geospatial_data[key].clip_outside(project.clip_box)
     89
     90    G += geospatial_data[key]
     91G = G + G1 + G2
    8592   
    86     G += geospatial_data[key]
    87        
    88 #print 'Clip combined geospatial data'
    89 ##G_clip = G.clip_outside(project.poly_aoi1)
    90 ##G_all = G_clip + geospatial_data[project.point_filenames[4]]
    91 #G_clipped = G_all.clip(project.poly_all)
    92 #G_clip = G.clip(project.bounding_polygon)
    93 
    94 
    9593print 'Export combined DEM file'
    9694G.export_points_file(project.combined_elevation + '.pts')
     
    9896# Use for comparision in ARC
    9997G.export_points_file(project.combined_elevation + '.txt')
    100 
  • anuga_work/production/wa/mandurah_2009/project.py

    r7545 r7546  
    1717# Note, the user needs to set up the directory system accordingly
    1818state = 'western_australia'
    19 scenario_name = 'busselton'
    20 scenario_folder = 'busselton_tsunami_scenario'
     19scenario_name = 'mandurah'
     20scenario_folder = 'mandurah_tsunami_scenario_2009'
    2121
    2222#-------------------------------------------------------------------------------
     
    3434finaltime=80000         # final time for simulation
    3535
    36 setup = 'final'         # This can be one of three values
     36setup = 'trial'         # This can be one of three values
    3737                        #    trial - coarsest mesh, fast
    3838                        #    basic - coarse mesh
     
    5050#-------------------------------------------------------------------------------
    5151
    52 output_comment = [setup, tide, event_number, 'Bt']
     52output_comment = [setup, tide, event_number]
    5353
    5454#-------------------------------------------------------------------------------
     
    5959# Used in build_elevation.py
    6060# Format for ascii grids, as produced in ArcGIS + a projection file
    61 ascii_grid_filenames = ['busselton_v2',   # Topo
    62                         'grid_250m_clip',
    63                         'grid_250m_clip2'] # Busselton Topo
     61ascii_grid_filenames = [#'m_harvey_1m',   # Topo
     62                        'm_peel_1m',
     63                        'ph10mex_clipped'] # mandurah Topo
    6464
    6565# Format for point is x,y,elevation (with header)
    66 point_filenames = ['Busselton_Contour0.txt',    # Coastline
    67                    'Busselton_BeachSurvey.txt', # Beach survey
    68                    'Busselton_NavyFinal.txt',   # Bathymetry
    69                    'Busselton_Chart.txt',       # Bathymetry Charts
    70                    'Busselton_Digitised.txt',   # Digitised Fairsheet
    71                    'Busselton_250m.txt',        # 250m
    72                    'Bunbury_TIN.txt',           # Bunbury aoi TIN'd in ArcGIS
    73                    'Busselton_TIN.txt',         # Busselton aoi TIN'd in ArcGIS
    74                    'XYAHD_clip.txt']            # To extend boundary
     66point_filenames = ['bathymetry_all_data.txt', # All data
     67                   'coastline.txt']    # Coastline
    7568
    7669### Add csv header list to all files in point_filenames
     
    8275# Used in build_elevation.py
    8376# Format for points easting,northing (no header)
    84 bounding_polygon_filename = 'bounding_polygon_new.csv'
     77bounding_polygon_filename = 'bounding_polygon.csv'
    8578bounding_polygon_maxarea = 100000
    8679
     
    8881# Used in run_model.py
    8982# Format for points easting,northing (no header)                   
    90 interior_regions_data = [['busselton_1km.csv', 500],
    91                          ['bunbury_1km.csv', 500],
    92                          ['busselton_2km.csv', 10000],
    93                          ['bunbury_2km.csv', 10000],
    94                          ['island1.csv', 10000],
    95                          ['island2.csv', 10000],
    96                          ['coast_5km_d20m.csv', 40000]]
     83interior_regions_data = [['area_of_interest1.csv', 500],
     84                         ['area_of_interest2.csv', 500],
     85                         ['area_of_interest3.csv', 500],
     86                         ['bounding_area_of_interest.csv', 2500]]
    9787
    9888# LAND - used to set the initial stage/water to be offcoast only
    9989# Used in run_model.py.  Format for points easting,northing (no header)
    100 land_initial_conditions_filename = [['initial_condition_new.csv', 0],
    101                                     ['initial_condition_marina.csv', 0]]
     90land_initial_conditions_filename = [['initial_conditions.csv', 0]]
    10291
    10392# GAUGES - for creating timeseries at a specific point
    10493# Used in get_timeseries.py. 
    10594# Format easting,northing,name,elevation (with header)
    106 gauges_filename = 'MH_gauges2.csv'
     95# gauges_filename = 'MH_gauges2.csv'
    10796
    10897# BUILDINGS EXPOSURE - for identifying inundated houses
    10998# Used in run_building_inundation.py
    11099# Format latitude,longitude etc (geographic)
    111 building_exposure_filename = 'busselton_res_clip.csv' # from NEXIS
     100# building_exposure_filename = 'mandurah_res_clip.csv' # from NEXIS
    112101
    113102# AREA OF IMAGES - Extent of each image to find out highest runup
    114103# Header - easting,northing,id,value
    115104# Used in get_runup.py
    116 images_filename = 'define_area_clip.csv'
     105# images_filename = 'define_area_clip.csv'
    117106
    118107# BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively
     
    123112# Thinned ordering file from Hazard Map (geographic)
    124113# Format is index,latitude,longitude (with header)
    125 urs_order_filename = 'thinned_boundary_ordering_extend.csv'
     114urs_order_filename = 'urs_order.csv'
    126115
    127116# Landward bounding points
    128117# Format easting,northing (no header)
    129 landward_boundary_filename = 'landward_boundary_new.csv'
     118landward_boundary_filename = 'landward_boundary_polygon.csv'
    130119
    131120# MUX input filename.
     
    143132#-------------------------------------------------------------------------------
    144133
    145 # ASCII export grid for Busselton
    146 xminBusselton = 340000
    147 xmaxBusselton = 352000
    148 yminBusselton = 6271500
    149 ymaxBusselton = 6280000
    150 
    151 # ASCII export grid for Bunbury
    152 xminBunbury = 369000
    153 xmaxBunbury = 381000
    154 yminBunbury = 6308000
    155 ymaxBunbury = 6316500
     134# This is my clipping region for topo
     135clip_box = 'clip_box.csv'
     136
     137# ASCII export grid for mandurah
     138xminmandurah = 377708
     139xmaxmandurah = 380186
     140yminmandurah = 6399699
     141ymaxmandurah = 6401544
     142
    156143
    157144################################################################################
     
    245232# The absolute pathname for the gauges file
    246233# Used for get_timeseries.py
    247 if gauges_filename:
    248     gauges = join(gauges_folder, gauges_filename)       
     234#if gauges_filename:
     235#    gauges = join(gauges_folder, gauges_filename)       
    249236
    250237# The absolute pathname for the building file
    251238# Used for run_building_inundation.py
    252 if building_exposure_filename:
    253     building_exposure = join(gauges_folder, building_exposure_filename)
     239# if building_exposure_filename:
     240#    building_exposure = join(gauges_folder, building_exposure_filename)
    254241
    255242# The absolute pathname for the image file
    256243# Used for get_runup.py
    257 if images_filename:
    258     images = join(polygons_folder, images_filename)
     244# if images_filename:
     245#    images = join(polygons_folder, images_filename)
    259246
    260247# full path to where MUX files (or meta-files) live
Note: See TracChangeset for help on using the changeset viewer.