Changeset 4366


Ignore:
Timestamp:
Apr 11, 2007, 3:43:40 PM (18 years ago)
Author:
nick
Message:

updates to broome

Location:
anuga_work/production/broome_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/broome_2006/build_broome.py

    r4358 r4366  
    6767offshore_dir_name1 = project.offshore_dir_name1
    6868offshore_dir_name2 = project.offshore_dir_name2
    69 
     69'''
    7070# creates DEM from asc data
    7171print "creates DEMs from asc data"
     
    8383dem2pts(offshore_dir_name1, use_cache=True, verbose=True)
    8484dem2pts(offshore_dir_name2, use_cache=True, verbose=True)
    85 
    86 print'create Geospatial data1 objects from topographies'
     85'''
     86print'create Geospatial data1 objects from topographies',onshore_dir_name + '.pts'
    8787G1 = Geospatial_data(file_name = onshore_dir_name + '.pts')
    88 print'create Geospatial data2 objects from coast'
     88print'create Geospatial data2 objects from coast', coast_in_dir_name + '.txt'
    8989G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt')
    9090#print'create Geospatial data3 objects from island'
    9191#G3 = Geospatial_data(file_name = island_dir_name + '.pts')
    92 print'create Geospatial data3 objects from offshore'
     92print'create Geospatial data3 objects from offshore',offshore_in_dir_name + '.txt'
    9393G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt')
    94 print'create Geospatial data4 objects from offshore1'
     94print'create Geospatial data4 objects from offshore1',offshore_dir_name1 + '.pts'
    9595G_off1 = Geospatial_data(file_name = offshore_dir_name1 + '.pts')
    96 print'create Geospatial data4 objects from offshore2'
     96print'create Geospatial data4 objects from offshore2',offshore_dir_name2 + '.pts'
    9797G_off2 = Geospatial_data(file_name = offshore_dir_name2 + '.pts')
    9898
     
    105105#print'shape of clipped data', G_clipped.get_data_points().shape
    106106
     107print'export combined DEM file'
     108if access(project.topographies_dir,F_OK) == 0:
     109    mkdir (project.topographies_dir)
     110print'export',project.combined_dir_name+'_unclipped' + '.txt'
     111G.export_points_file(project.combined_dir_name+'_unclipped' + '.txt')
     112'''
    107113print'split'
    108114G_small, G_other = G_clipped.split(.10,verbose=True)
    109115
    110 print'export combined DEM file'
    111 if access(project.topographies_dir,F_OK) == 0:
    112     mkdir (project.topographies_dir)
     116
     117print 'export',project.combined_dir_name + '.txt'
    113118G_clipped.export_points_file(project.combined_dir_name + '.txt')
     119print 'export', project.combined_small_dir_name + '.txt'
    114120G_small.export_points_file(project.combined_small_dir_name + '.txt')
    115121#G_clipped.export_points_file(project.combined_dir_name + '.xya')
    116 
     122'''
    117123
    118124'''
  • anuga_work/production/broome_2006/project.py

    r4358 r4366  
    119119
    120120poly_all = read_polygon(polygons_dir+'extent.csv')
    121 res_poly_all = 150000
     121res_poly_all = 500000
    122122
    123123###############################
     
    126126
    127127poly_0 = read_polygon(polygons_dir+'neg20_coast_contour_pts.csv')
    128 res_0 = 10000
     128res_0 = 100000
     129
    129130poly_1 = read_polygon(polygons_dir+'broome_north_coast_inside_extent.csv')
    130 res_1 = 5000
     131res_1 = 50000
    131132
    132133poly_2 = read_polygon(polygons_dir+'broome_south_coast_inside_extent.csv')
    133 res_2 = 5000
     134res_2 = 50000
    134135
    135136poly_3 = read_polygon(polygons_dir+'Broome_town_pts.csv')
    136 res_3 = 2000
     137res_3 = 20000
    137138
    138139poly_4 = read_polygon(polygons_dir+'Broome_inner_town_pts.csv')
    139 res_4 = 500
     140res_4 = 5000
    140141#assert zone == refzone
    141142
Note: See TracChangeset for help on using the changeset viewer.