Changeset 4186


Ignore:
Timestamp:
Jan 19, 2007, 4:45:06 PM (18 years ago)
Author:
sexton
Message:

updates to slide modelling based on recent discussions with PMD (basically change in locations for potential slides and more accurate locations for the historical events, plus more accurate depth measurements)

Location:
anuga_work/production
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/dampier_2006/build_dampier.py

    r4177 r4186  
    117117if access(project.topographies_dir,F_OK) == 0:
    118118    mkdir (project.topographies_dir)
    119 #G_clipped.export_points_file(project.combined_dir_name + '.pts')
    120 G_clipped.export_points_file(project.combined_dir_name + '.xya')
     119G_clipped.export_points_file(project.combined_dir_name + '.pts')
     120#G_clipped.export_points_file(project.combined_dir_name + '.txt')
  • anuga_work/production/dampier_2006/project.py

    r4177 r4186  
    7373meshes_dir_name = meshes_dir + scenario_name
    7474
    75 polygons_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'polygons'+sep
     75polygons_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'polygons'+sep+'2007polys'+sep
    7676tide_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'tide_data'+sep
    7777
     
    102102
    103103refzone = 50
    104 south = degminsec2decimal_degrees(-20,55,0)
    105 north = degminsec2decimal_degrees(-20,15,0)
    106 west = degminsec2decimal_degrees(116,17,0)
    107 east = degminsec2decimal_degrees(117,10,0)
    108 
    109 p0 = [south, degminsec2decimal_degrees(116,32,0)]
    110 p1 = [south, west]
    111 p2 = [degminsec2decimal_degrees(-20,23,0), west]
    112 p3 = [north, degminsec2decimal_degrees(116,45,0)]
    113 p4 = [north, degminsec2decimal_degrees(117,0,0)]
    114 p5 = [p2[0], degminsec2decimal_degrees(117,8,0)]
    115 p6 = [degminsec2decimal_degrees(-20,30,0), east]
    116 p7 = [degminsec2decimal_degrees(-20,38,0), east]
    117 p8 = [south, east]
    118 
    119 poly_all, zone = convert_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8])
    120 refzone = zone
     104##south = degminsec2decimal_degrees(-20,55,0)
     105##north = degminsec2decimal_degrees(-20,15,0)
     106##west = degminsec2decimal_degrees(116,17,0)
     107##east = degminsec2decimal_degrees(117,10,0)
     108##
     109##p0 = [south, degminsec2decimal_degrees(116,32,0)]
     110##p1 = [south, west]
     111##p2 = [degminsec2decimal_degrees(-20,23,0), west]
     112##p3 = [north, degminsec2decimal_degrees(116,45,0)]
     113##p4 = [north, degminsec2decimal_degrees(117,0,0)]
     114##p5 = [p2[0], degminsec2decimal_degrees(117,8,0)]
     115##p6 = [degminsec2decimal_degrees(-20,30,0), east]
     116##p7 = [degminsec2decimal_degrees(-20,38,0), east]
     117##p8 = [south, east]
     118##
     119##poly_all, zone = convert_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8])
     120##refzone = zone
     121poly_all = read_polygon(polygons_dir+'extent.csv')
    121122print 'Area of bounding polygon', polygon_area(poly_all)/1000000.0
    122123
     
    126127# Interior region definitions
    127128###############################
    128 """
    129 poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20_pts.csv')
    130 res_pos20_neg20 = 20000
    131 
    132 poly_dampier = read_polygon(polygons_dir+'dampier_pts.csv')
     129
     130poly_region = read_polygon(polygons_dir+'region.csv')
     131res_region = 50000
     132
     133poly_dampier = read_polygon(polygons_dir+'dampier_town.csv')
    133134res_dampier = 500
    134135
    135 poly_karratha = read_polygon(polygons_dir+'karratha_pts.csv')
    136 res_karratha = 500
    137 
    138 poly_delambre = read_polygon(polygons_dir+'delambre_pts.csv')
     136poly_karratha = read_polygon(polygons_dir+'karrathav2.csv')
     137res_karratha = 15000
     138
     139poly_karratha_town = read_polygon(polygons_dir+'karratha_townv2.csv')
     140res_karratha_town = 500
     141
     142poly_delambre = read_polygon(polygons_dir+'delambre.csv')
    139143res_delambre = 1000
    140144
    141 poly_mainisland = read_polygon(polygons_dir+'mainisland_pts.csv')
    142 res_mainisland = 1000
    143 
    144 poly_NWislands = read_polygon(polygons_dir+'NWislands_pts.csv')
    145 res_NWislands = 1000
    146 
    147 plot_polygons([poly_pos20_neg20,poly_dampier,poly_karratha,poly_delambre,polylmainisland,
    148                polyNWislands,poly_all],output_run_time_dir + 'poly_pic')
    149 
    150 interior_regions = [[poly_pos20_neg20,res_pos20_neg20],[poly_dampier,res_dampier],
    151                     [poly_karratha,res_karratha],[poly_delambre,res_delambre],
    152                     [poly_mainisland,res_mainisland],[poly_NWislands,res_NWislands]]
     145poly_coast = read_polygon(polygons_dir+'coastpoly.csv')
     146res_coast = 1000
     147
     148poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv')
     149res_NWislands = 50000
     150
     151poly_island0 = read_polygon(polygons_dir+'island0.csv')
     152res_island0 = res_poly_all
     153
     154poly_island1 = read_polygon(polygons_dir+'island1.csv')
     155res_island0 = res_poly_all
     156
     157poly_island2 = read_polygon(polygons_dir+'island2.csv')
     158res_island0 = res_poly_all
     159
     160poly_island3 = read_polygon(polygons_dir+'island3.csv')
     161res_island0 = res_poly_all
     162
     163res_islands = 5000
     164
     165poly_ref_nw4 = read_polygon(polygons_dir+'ref_nw4.csv')
     166res_ref_nw4 = res_islands
     167
     168poly_island4 = read_polygon(polygons_dir+'island4.csv')
     169res_island0 = res_poly_all
     170
     171poly_ref_nw5 = read_polygon(polygons_dir+'ref_nw5.csv')
     172res_ref_nw5 = res_islands
     173
     174poly_island5 = read_polygon(polygons_dir+'island5.csv')
     175res_island0 = res_poly_all
     176
     177poly_ref_nw6 = read_polygon(polygons_dir+'ref_nw6.csv')
     178res_ref_nw6 = res_islands
     179
     180poly_island6 = read_polygon(polygons_dir+'island6.csv')
     181res_island0 = res_poly_all
     182
     183poly_ref_nw7 = read_polygon(polygons_dir+'ref_nw7.csv')
     184res_ref_nw7 = res_islands
     185
     186poly_island7 = read_polygon(polygons_dir+'island7.csv')
     187res_island0 = res_poly_all
     188
     189poly_ref_nw8 = read_polygon(polygons_dir+'ref_nw8.csv')
     190res_ref_nw8 = res_islands
     191
     192poly_island8 = read_polygon(polygons_dir+'island8.csv')
     193res_island0 = res_poly_all
     194
     195
     196##plot_polygons([poly_dampier,poly_karratha,poly_karratha_town,poly_delambre,
     197##                poly_coast,poly_NWislands,poly_island0,poly_island1,poly_island2,
     198##                poly_island3,poly_island4,poly_island5,poly_island6,
     199##                poly_island7,poly_island8,poly_ref_nw4,poly_ref_nw5,
     200##                poly_ref_nw6,poly_ref_nw7,poly_ref_nw8,poly_all],'poly_pic')
     201
     202interior_regions = [[poly_dampier,res_dampier],
     203                    [poly_karratha,res_karratha],[poly_karratha_town,res_karratha_town],
     204                    [poly_delambre,res_delambre],[poly_coast,res_coast],
     205                    #[poly_NWislands,res_NWislands],
     206                    [poly_island0,res_island0],[poly_island1,res_island0],
     207                    [poly_island2,res_island0],[poly_island3,res_island0],
     208                    [poly_island4,res_island0],[poly_island5,res_island0],
     209                    [poly_island6,res_island0],[poly_island7,res_island0],
     210                    [poly_island8,res_island0],[poly_ref_nw4,res_ref_nw4],
     211                    [poly_ref_nw5,res_ref_nw5],[poly_ref_nw6,res_ref_nw6],
     212                    [poly_ref_nw7,res_ref_nw7],[poly_ref_nw8,res_ref_nw8]]
    153213                   
    154214trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all)
    155215
    156216print 'min number triangles', trigs_min
    157 """
     217
    158218###################################################################
    159219# Clipping regions for export to asc and regions for clipping data
    160220###################################################################
    161221
    162 #poly_bathy = read_polygon(polygons_dir+'polybathy.csv')
     222poly_bathy = read_polygon(polygons_dir+'poly_bathy.csv')
    163223
    164224# exporting asc grid - Dampier
  • anuga_work/production/dampier_2006/run_dampier.py

    r4172 r4186  
    4545
    4646# filenames
    47 boundaries_name = project.boundaries_name
     47#boundaries_name = project.boundaries_name
    4848meshes_dir_name = project.meshes_dir_name+'.msh'
    49 boundaries_dir_name = project.boundaries_dir_name
     49#boundaries_dir_name = project.boundaries_dir_name
    5050
    5151tide = project.tide
     
    7272    print 'start create mesh from regions'
    7373    create_mesh_from_regions(project.poly_all,
    74                              boundary_tags={'back': [7, 8], 'side': [0, 6],
    75                                             'ocean': [1, 2, 3, 4, 5]},
     74                             boundary_tags={'back': [2,3], 'side': [0, 1, 4],
     75                                            'ocean': [5]},
    7676                             maximum_triangle_area=project.res_poly_all,
    7777                             interior_regions=project.interior_regions,
     
    137137
    138138    domain.set_quantity('elevation',
    139                     filename = project.combined_dir_name + '.txt',
     139                    filename = project.combined_dir_name + '.pts',
    140140                    use_cache = True,
    141141                    verbose = True,
     
    179179
    180180print'set_boundary'
     181##domain.set_boundary({'back': Br,
     182##                     'side': Bf,
     183##                     'ocean': Bf})
    181184domain.set_boundary({'back': Br,
    182185                     'side': Bd,
    183                      'ocean': Bf})
     186                     'ocean': Bd})
    184187print'finish set boundary'
    185188
  • anuga_work/production/newcastle_2006/export_results.py

    r4072 r4186  
    55from os import sep
    66
    7 time_dir = '20061207_035946'
     7#time_dir = '20061207_035946' #bulli
     8#time_dir = '20061212_012802' #shovel
     9time_dir = '20061212_064757' #yacaaba
     10
    811directory = project_slide.outputdir
    912name = directory + time_dir + sep + project_slide.basename
  • anuga_work/production/newcastle_2006/project_slide.py

    r4073 r4186  
    116116###################################################################
    117117
    118 slide_origin_a = [352928.37,6188303.94]
    119 slide_origin_b = [393301.80,6253255.08]
    120 slide_origin_c = [446025.35,6330307.46]
     118# historical slides
     119slide_origin_bulli = [370110,6189489]
     120slide_origin_shovel = [354753,6187397]
     121slide_origin_yacaaba = [463012,6334735]
     122
     123# potential slides
     124slide_origin_bulli_b = [405617,6249852]
     125slide_origin_bulli_c = [465283,6335210]
     126slide_origin_shovel_b = [396262,6252144]
     127slide_origin_shovel_c = [458694,6340352]
     128slide_origin_yacaaba_a = [361753,6188786]
     129slide_origin_yacaaba_b = [401897,6250643]
    121130
    122131bulli_depth = 2087.0
  • anuga_work/production/newcastle_2006/run_newcastle_slide.py

    r4073 r4186  
    148148                               slope=project_slide.yacaaba_slope,
    149149                               thickness=project_slide.yacaaba_thickness,
    150                                x0=project_slide.slide_origin_c[0],
    151                                y0=project_slide.slide_origin_c[1],
     150                               x0=project_slide.slide_origin_yacaaba_a[0],
     151                               y0=project_slide.slide_origin_yacaaba_a[1],
    152152                               alpha=project_slide.yacaaba_alpha,
    153153                               domain=domain)
  • anuga_work/production/sydney_2006/export_results.py

    r4073 r4186  
    55from os import sep
    66
    7 time_dir = '20061211_071516'
     7#time_dir = '20061211_071516' #bulli
     8#time_dir = '20061212_012705' #shovel
     9time_dir = '20061212_064807' #yacaaba
     10
    811directory = project_slide.outputdir
    912name = directory + time_dir + sep + project_slide.basename
  • anuga_work/production/sydney_2006/project_slide.py

    r4073 r4186  
    138138###################################################################
    139139
    140 slide_origin_a = [352928.37,6188303.94]
    141 slide_origin_b = [393301.80,6253255.08]
    142 slide_origin_c = [446025.35,6330307.46]
     140# historical slides
     141slide_origin_bulli = [370110,6189489]
     142slide_origin_shovel = [354753,6187397]
     143slide_origin_yacaaba = [463012,6334735]
     144
     145# potential slides
     146slide_origin_bulli_b = [405617,6249852]
     147slide_origin_bulli_c = [465283,6335210]
     148slide_origin_shovel_b = [396262,6252144]
     149slide_origin_shovel_c = [458694,6340352]
     150slide_origin_yacaaba_a = [361753,6188786]
     151slide_origin_yacaaba_b = [401897,6250643]
    143152
    144153bulli_depth = 2087.0
  • anuga_work/production/sydney_2006/run_sydney_slide.py

    r4073 r4186  
    168168                               slope=project_slide.yacaaba_slope,
    169169                               thickness=project_slide.yacaaba_thickness,
    170                                x0=project_slide.slide_origin_b[0],
    171                                y0=project_slide.slide_origin_b[1],
     170                               x0=project_slide.slide_origin_yacaaba_a[0],
     171                               y0=project_slide.slide_origin_yacaaba_a[1],
    172172                               alpha=project_slide.yacaaba_alpha,
    173173                               domain=domain)
  • anuga_work/production/wollongong_2006/export_results.py

    r4073 r4186  
    55from os import sep
    66
    7 time_dir = '20061211_060105'
     7#time_dir = '20061211_060105' #bulli
     8#time_dir = '20061212_012715' #shovel
     9time_dir = '20061212_064735' #yacaaba
     10
    811directory = project_slide.outputdir
    912name = directory + time_dir + sep + project_slide.basename
  • anuga_work/production/wollongong_2006/project_slide.py

    r4073 r4186  
    121121###################################################################
    122122
    123 slide_origin_a = [352928.37,6188303.94]
    124 slide_origin_b = [393301.80,6253255.08]
    125 slide_origin_c = [446025.35,6330307.46]
     123# historical slides
     124slide_origin_bulli = [370110,6189489]
     125slide_origin_shovel = [354753,6187397]
     126slide_origin_yacaaba = [463012,6334735]
     127
     128# potential slides
     129slide_origin_bulli_b = [405617,6249852]
     130slide_origin_bulli_c = [465283,6335210]
     131slide_origin_shovel_b = [396262,6252144]
     132slide_origin_shovel_c = [458694,6340352]
     133slide_origin_yacaaba_a = [361753,6188786]
     134slide_origin_yacaaba_b = [401897,6250643]
    126135
    127136bulli_depth = 2087.0
  • anuga_work/production/wollongong_2006/run_gong_slide.py

    r4073 r4186  
    152152                               slope=project_slide.yacaaba_slope,
    153153                               thickness=project_slide.yacaaba_thickness,
    154                                x0=project_slide.slide_origin_a[0],
    155                                y0=project_slide.slide_origin_a[1],
     154                               x0=project_slide.slide_origin_yacaaba_a[0],
     155                               y0=project_slide.slide_origin_yacaaba_a[1],
    156156                               alpha=project_slide.yacaaba_alpha,
    157157                               domain=domain)
Note: See TracChangeset for help on using the changeset viewer.