Changeset 2954


Ignore:
Timestamp:
May 24, 2006, 9:47:45 AM (18 years ago)
Author:
nick
Message:

update pt hedland

Location:
production/pt_hedland_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • production/pt_hedland_2006/project.py

    r2947 r2954  
    1010from coordinate_transforms.redfearn import degminsec2decimal_degrees
    1111from time import localtime, strftime
     12
     13from geospatial_data import *
    1214
    1315
     
    4345    user = getenv('LOGNAME')
    4446    print 'USER:', user
    45 
    46 #    home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation'
    47 #    home = expanduser('~')
    4847
    4948#Derive subdirectories and filenames
     
    130129d2 = [658264.0, 7926314.0]
    131130d3 = [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]
     132d4 = [630000.0, 7733013.56]
     133#d5 = [656561.15, 7732615.11]
     134d5 = [657000.0, 7732615.11]
     135#d6 = [708940.32, 7750510.33]
     136d6 = [682000.0, 7740510.33]
    135137
    136138polyAll = [d0, d1, d2, d3, d4, d5, d6]
     
    153155poly_region = [j0, j1, j2, j3]
    154156
     157coast_buffer_file = datadir+'buff_poly_pts_test.xya'
     158G = Geospatial_data(file_name=coast_buffer_file,delimiter=' ')
     159poly_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  
    2929from pyvolution.combine_pts import combine_rectangular_points_files
    3030from pyvolution.pmesh2domain import pmesh_to_domain_instance
    31 from geospatial_data import add_points_files
     31#from geospatial_data import add_points_files
    3232
    3333# Application specific imports
     
    121121# derive poly_coast from project.coast_name using alpha_shape
    122122interior_regions = [[project.poly_pt_hedland, pt_hedland_res],
    123                     [project.poly_region, region_res]]
     123                    [project.poly_coast, coast_res]]
    124124
    125125print 'number of interior regions', len(interior_regions)
     
    137137        count += 1
    138138
    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)
    143143
    144144if count == 0:
     
    149149    import sys; sys.exit()
    150150   
    151 
     151print 'start create mesh from regions'
    152152from caching import cache
    153153_ = cache(create_mesh_from_regions,
     
    157157          {'boundary_tags': {'topright': [0], 'top': [1],'topleft': [2], 'left': [3],
    158158                             'bottomleft': [4], 'bottomright': [5], 'right': [6]},
    159            'maximum_triangle_area': 500000,
     159           'maximum_triangle_area': 10000000,
    160160           'filename': meshname,           
    161161           'interior_regions': interior_regions},
     
    199199                    )
    200200
    201 print 'hi1'
    202201#print 'have sent quantities OK - now exiting'
    203202#import sys; sys.exit()
Note: See TracChangeset for help on using the changeset viewer.