Ignore:
Timestamp:
Mar 10, 2008, 3:59:09 PM (16 years ago)
Author:
nick
Message:

update busselton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/build_busselton.py

    r4132 r5149  
    2727from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
    2828from anuga.geospatial_data.geospatial_data import *
    29 from anuga.abstract_2d_finite_volumes.util import start_screen_catcher, copy_code_files
     29from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters
    3030
    3131# Application specific imports
     
    3939start_screen_catcher(project.output_build_time_dir)
    4040
    41 print 'time stamp: ',project.gtime
     41print 'time stamp: ',project.time
    4242print 'USER: ', project.user
    4343
     
    5959onshore_in_dir_name = project.onshore_in_dir_name
    6060coast_in_dir_name = project.coast_in_dir_name
     61coast_in_dir_name1 = project.coast_in_dir_name1
    6162#island_in_dir_name = project.island_in_dir_name
    6263offshore_in_dir_name = project.offshore_in_dir_name
     
    6465onshore_dir_name = project.onshore_dir_name
    6566coast_dir_name = project.coast_dir_name
     67coast_dir_name1 = project.coast_dir_name1
    6668#island_dir_name = project.island_dir_name
    6769offshore_dir_name = project.offshore_dir_name
     
    8688
    8789print'create Geospatial data1 objects from topographies'
    88 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts')
    89 G2 = Geospatial_data(file_name = coast_in_dir_name + '.xya')
    90 #G3 = Geospatial_data(file_name = island_dir_name + '.pts')
    91 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.xya')
     90G1 = Geospatial_data(file_name = onshore_dir_name + '.pts',verbose=True)
     91G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt',verbose=True)
     92G3 = Geospatial_data(file_name = coast_in_dir_name1 + '.txt',verbose=True)
     93#G3 = Geospatial_data(file_name = island_dir_name + '.pts',verbose=True)
     94G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt',verbose=True)
    9295
    9396print'add all geospatial objects'
    94 G = G1 + G2 + G_off
     97G = G1 + G2 + G3 + G_off
    9598
    9699print'clip combined geospatial object by bounding polygon'
     
    102105if access(project.topographies_dir,F_OK) == 0:
    103106    mkdir (project.topographies_dir)
    104 G.export_points_file(project.combined_dir_name + '.xya')
     107G.export_points_file(project.combined_dir_name + '.txt')
    105108#G_clipped.export_points_file(project.combined_dir_name + '.xya')
    106109
     110print'project.combined_dir_name + .txt',project.combined_dir_name + '.txt'
     111#G_all=Geospatial_data(file_name = project.combined_dir_name + '.txt')
     112print'split'
     113G_all_1, = G.split(.10)
     114print'export 1'
     115G_all_1.export_points_file(project.combined_dir_name+'_small' + '.txt')
     116#print'export 2'
     117#G_all_2.export_points_file(project.combined_dir_name+'_other1' + '.xya')
     118
    107119'''
    108 print'project.combined_dir_name + 1.xya',project.combined_dir_name + '1.xya'
    109 G_all=Geospatial_data(file_name = project.combined_dir_name + '1.xya')
    110 print'split'
    111 G_all_1, G_all_2 = G_all.split(.10)
    112 print'export 1'
    113 G_all_1.export_points_file(project.combined_dir_name+'_small1' + '.xya')
    114 print'export 2'
    115 G_all_2.export_points_file(project.combined_dir_name+'_other1' + '.xya')
    116 
    117 
    118120#-------------------------------------------------------------------------
    119121# Convert URS to SWW file for boundary conditions
Note: See TracChangeset for help on using the changeset viewer.