Changeset 2954
- Timestamp:
- May 24, 2006, 9:47:45 AM (19 years ago)
- Location:
- production/pt_hedland_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/pt_hedland_2006/project.py
r2947 r2954 10 10 from coordinate_transforms.redfearn import degminsec2decimal_degrees 11 11 from time import localtime, strftime 12 13 from geospatial_data import * 12 14 13 15 … … 43 45 user = getenv('LOGNAME') 44 46 print 'USER:', user 45 46 # home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation'47 # home = expanduser('~')48 47 49 48 #Derive subdirectories and filenames … … 130 129 d2 = [658264.0, 7926314.0] 131 130 d3 = [552686.0, 7871580.0] 132 d4 = [604415.81, 7733013.56] 133 d5 = [656561.15, 7732615.11] 134 d6 = [708940.32, 7750510.33] 131 #d4 = [604415.81, 7733013.56] 132 d4 = [630000.0, 7733013.56] 133 #d5 = [656561.15, 7732615.11] 134 d5 = [657000.0, 7732615.11] 135 #d6 = [708940.32, 7750510.33] 136 d6 = [682000.0, 7740510.33] 135 137 136 138 polyAll = [d0, d1, d2, d3, d4, d5, d6] … … 153 155 poly_region = [j0, j1, j2, j3] 154 156 157 coast_buffer_file = datadir+'buff_poly_pts_test.xya' 158 G = Geospatial_data(file_name=coast_buffer_file,delimiter=' ') 159 poly_coast = G.get_data_points() 160 #print 'get_data_points()',G.get_data_points() 161 162 -
production/pt_hedland_2006/run_pt_hedland.py
r2930 r2954 29 29 from pyvolution.combine_pts import combine_rectangular_points_files 30 30 from pyvolution.pmesh2domain import pmesh_to_domain_instance 31 from geospatial_data import add_points_files31 #from geospatial_data import add_points_files 32 32 33 33 # Application specific imports … … 121 121 # derive poly_coast from project.coast_name using alpha_shape 122 122 interior_regions = [[project.poly_pt_hedland, pt_hedland_res], 123 [project.poly_ region, region_res]]123 [project.poly_coast, coast_res]] 124 124 125 125 print 'number of interior regions', len(interior_regions) … … 137 137 count += 1 138 138 139 figname = 'pt_hedland_polys'140 plot_polygons([project.polyAll,project.poly_pt_hedland,project.poly_region],141 figname,142 verbose = True)139 #figname = 'pt_hedland_polys' 140 #plot_polygons([project.polyAll,project.poly_pt_hedland,project.poly_region], 141 # figname, 142 # verbose = True) 143 143 144 144 if count == 0: … … 149 149 import sys; sys.exit() 150 150 151 151 print 'start create mesh from regions' 152 152 from caching import cache 153 153 _ = cache(create_mesh_from_regions, … … 157 157 {'boundary_tags': {'topright': [0], 'top': [1],'topleft': [2], 'left': [3], 158 158 'bottomleft': [4], 'bottomright': [5], 'right': [6]}, 159 'maximum_triangle_area': 500000,159 'maximum_triangle_area': 10000000, 160 160 'filename': meshname, 161 161 'interior_regions': interior_regions}, … … 199 199 ) 200 200 201 print 'hi1'202 201 #print 'have sent quantities OK - now exiting' 203 202 #import sys; sys.exit()
Note: See TracChangeset
for help on using the changeset viewer.