Ignore:
Timestamp:
Dec 19, 2006, 9:19:27 AM (17 years ago)
Author:
nick
Message:

updates to dampier and perth

File:
1 edited

Legend:

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

    r4081 r4091  
    4646coast_name = 'waterline'
    4747offshore_name = 'perth_bathymetry'
     48offshore1_name = 'missing_fairsheets'
    4849
    4950#final topo name
    5051combined_name ='perth_combined_elevation'
     52combined_smaller_name = 'perth_combined_elevation_smaller'
     53
    5154
    5255topographies_in_dir = home+sep+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep
     
    6366coast_in_dir_name = topographies_in_dir + coast_name
    6467offshore_in_dir_name = topographies_in_dir + offshore_name
     68offshore1_in_dir_name = topographies_in_dir + offshore1_name
    6569
    6670onshore_dir_name = topographies_dir + onshore_name
     
    7680combined_dir_name = topographies_dir + combined_name
    7781combined_time_dir_name = topographies_time_dir + combined_name
     82combined_smaller_name_dir = topographies_dir + combined_smaller_name
    7883#combined_time_dir_final_name = topographies_time_dir + combined_final_name
    7984
    8085
    81 #Derive subdirectories and filenames
    8286
    8387meshes_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'meshes'+sep
     
    8892
    8993
    90 boundaries_source = 'mag_9_corrected'
     94boundaries_source = '????'
    9195#boundaries locations
    9296boundaries_in_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+'urs'+sep+boundaries_source+sep
     
    96100#boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep
    97101#boundaries_time_dir_name = boundaries_time_dir + boundaries_name  #Used by post processing
    98 #ideas
    99 #boundaries_time_dir = boundaries_in_dir+'urs'+sep+boundaries_source+sep
    100102
    101103#output locations
     
    111113
    112114
    113 
    114 
    115 
    116 
    117 
    118 
    119115###############################
    120116# Domain definitions
     
    123119
    124120bounding_polygon = read_polygon(polygons_dir+'bounding_poly.csv')
     121res_bounding = 1000000
    125122
    126123refzone = 50
    127124
    128125
    129 #Interior regions
     126###############################
     127# Interior region definitions
     128###############################
    130129
    131 #cipma_polygon, zone = convert_from_latlon_to_utm([k0, k1, k2, k3])
     130poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20pts.csv')
     131res_pos20_neg20 = 500000
     132
     133poly_cbd = read_polygon(polygons_dir+'cbd_pts.csv')
     134res_cbd = 50000
     135
     136poly_penguin = read_polygon(polygons_dir+'penguin_pts.csv')
     137res_penguin = 50000
    132138#assert zone == refzone
    133139
    134 poly_pos20_neg20 = read_polygon(polygons_dir+'pos20_neg20pts.csv')
     140trigs_bound = polygon_area(bounding_polygon)/res_bounding
     141trigs_pos = polygon_area(poly_pos20_neg20)/res_pos20_neg20
     142trigs_cbd = polygon_area(poly_cbd)/res_cbd
     143trigs_penguin = polygon_area(poly_penguin)/res_penguin
     144trigs_min = trigs_bound + trigs_pos + trigs_cbd + trigs_penguin
    135145
    136 poly_cbd = read_polygon(polygons_dir+'cbd_pts.csv')
    137 
    138 poly_penguin = read_polygon(polygons_dir+'penguin_pts.csv')
    139 #assert zone == refzone
    140 
    141 print "bounding_polygon", bounding_polygon
    142 print 'Area of bounding poly', polygon_area(bounding_polygon)/1000000.0
    143 print 'Area of pos20_neg20pts', polygon_area(poly_pos20_neg20)/1000000.0
    144 print 'Area of poly_cbd', polygon_area(poly_cbd)/1000000.0
    145 print 'Area of poly_penguin', polygon_area(poly_penguin)/1000000.0
     146print 'Area of bounding poly', trigs_bound
     147print 'Area of pos20_neg20pts', trigs_pos
     148print 'Area of poly_cbd', trigs_cbd
     149print 'Area of poly_penguin', trigs_penguin
     150print 'min number triangles', trigs_min
    146151
    147152
     
    149154# Clipping regions for export to asc and regions for clipping data
    150155###################################################################
    151 '''
     156
    152157# exporting asc grid
    153158eastingmin = 406215.87
     
    156161northingmax = 8032834.52
    157162
    158 ###############################
    159 # Interior region definitions
    160 ###############################
    161163
    162 # perth digitized polygons
    163 poly_perth1 = read_polygon(polygondir+'perth_Local_Polygon_update.csv')
    164 poly_perth2 = read_polygon(polygondir+'perth_Close2_update.csv')
    165 poly_perth3 = read_polygon(polygondir+'perth_Coast_update.csv')
    166 #poly_perth4 = read_polygon(polygondir+'Cable_Beach_revised.csv')
    167164
    168 plot_polygons([polyAll,poly_perth1,poly_perth2,poly_perth3],'boundingpoly2',verbose=False)
    169 print 'Area of local polygon', polygon_area(poly_perth1)/1000000.0
    170 print 'Area of close polygon', polygon_area(poly_perth2)/1000000.0
    171 print 'Area of coastal polygon', polygon_area(poly_perth3)/1000000.0
    172 #print 'Area of cable beach polygon', polygon_area(poly_perth4)/1000000.0
    173 '''
    174 
Note: See TracChangeset for help on using the changeset viewer.