Changeset 4559


Ignore:
Timestamp:
Jun 25, 2007, 4:13:16 PM (17 years ago)
Author:
nick
Message:

update Broome

Location:
anuga_work/production/broome_2006
Files:
4 edited

Legend:

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

    r4533 r4559  
    6868offshore_dir_name1 = project_urs.offshore_dir_name1
    6969offshore_dir_name2 = project_urs.offshore_dir_name2
    70 '''
     70
    7171# creates DEM from asc data
    7272print "creates DEMs from asc data"
     
    109109if access(project_urs.topographies_dir,F_OK) == 0:
    110110    mkdir (project_urs.topographies_dir)
    111 print'export',project_urs.combined_dir_name+'_unclipped' + '.txt'
    112 G.export_points_file(project_urs.combined_dir_name+'_unclipped' + '.txt')
     111print'export',project_urs.combined_dir_name+ '.txt'
     112G.export_points_file(project_urs.combined_dir_name+ '.txt')
    113113
    114114print'split'
     
    123123
    124124
    125 
     125'''
    126126print'project_urs.combined_dir_name + 1.xya',project_urs.combined_dir_name + '1.xya'
    127127G_all=Geospatial_data(file_name = project_urs.combined_dir_name + '1.xya')
     
    133133G_all_2.export_points_file(project_urs.combined_dir_name+'_other1' + '.xya')
    134134
    135 '''
     135
    136136#-------------------------------------------------------------------------
    137137# Convert URS to SWW file for boundary conditions
     
    146146
    147147
     148'''
    148149
    149150
    150151
    151 
  • anuga_work/production/broome_2006/project_urs.py

    r4546 r4559  
    3232
    3333#tide = -5.3
    34 #tide = 0
    35 tide = 4.9
     34tide = 0
     35#tide = 4.9
    3636
    3737#Maybe will try to make project a class to allow these parameters to be passed in.
     
    7070
    7171#final topo name
    72 combined_name ='broome_combined_elevation'
     72combined_name ='broome_combined_elevation_z51'
    7373combined_name1 ='broome_combined_elevation1'
    7474combined_name_unclipped1 ='broome_combined_elevation_unclipped1'
     
    124124output_dir = anuga_dir+'outputs'+sep
    125125output_build_time_dir = output_dir+build_time+'_'+source+sep
    126 output_run_time_dir = output_dir +run_time+dir_comment+sep
    127 #output_run_time_dir = output_dir +'20070605_234438_run_final_0_exmouth_nbartzis'+sep
     126#output_run_time_dir = output_dir +run_time+dir_comment+sep
     127output_run_time_dir = output_dir +'20070622_004008_run_final_0_onslow_nbartzis'+sep
    128128output_run_time_dir_name = output_run_time_dir + scenario_name  #Used by post processing
    129129
     
    163163
    164164#poly_3 = read_polygon(polygons_dir+'Broome_town_pts.csv')
    165 poly_3 = read_polygon(polygons_dir+'broome_town_new_pts.csv')
     165poly_3 = read_polygon(polygons_dir+'broome_town_new_ptsa.csv')
    166166res_3 = 2000*res_factor
    167167
    168168#poly_4 = read_polygon(polygons_dir+'Broome_inner_town_pts.csv')
    169 poly_4 = read_polygon(polygons_dir+'broome_inner_town_pts.csv')
     169poly_4 = read_polygon(polygons_dir+'broome_inner_town_new_ptsa.csv')
    170170res_4 = 500*res_factor
    171171
     
    188188northingmin = 8007000.0
    189189northingmax = 8022000.0
     190
     191# exporting asc grid for speed
     192#eastingmin = 412900.0
     193#eastingmax = 422700.0
     194#northingmin = 8008555.0
     195#northingmax = 8021350.0
  • anuga_work/production/broome_2006/run_broome_urs.py

    r4546 r4559  
    5050    # output to file
    5151    #------------------------------------------------------------------------------
     52    print "Processor Name:",get_processor_name()
    5253
    5354    #copy script must be before screen_catcher
     
    6667    kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww'
    6768   
     69    start_screen_catcher(kwargs['output_dir'], myid, numprocs,extra_info='export',print_to_screen=True)
     70    '''
    6871    print 'output_dir',kwargs['output_dir']
    6972    if myid == 0:
     
    226229    #kwargs 'completed' must be added to write the final parameters to file
    227230    kwargs['completed']=str(time.time()-t0)
    228     if myid == 0:
    229         store_parameters(**kwargs)
     231   
     232    '''
     233    if myid == 0:
     234#        store_parameters(**kwargs)
    230235       
    231236        print 'memory usage before del domain',mem_usage()
    232         del domain
     237        #del domain
    233238        print 'memory usage after del domain',mem_usage()
    234239   
    235240        swwfile = kwargs['output_dir']+kwargs['aa_scenario_name']
     241        print'swwfile',swwfile
     242       
    236243        export_grid(swwfile, extra_name_out = 'town',
    237                 quantities = ['elevation','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
     244                quantities = ['speed','depth','elevation','stage'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
     245#                quantities = ['speed','depth'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
    238246                timestep = None,
    239247                reduction = max,
Note: See TracChangeset for help on using the changeset viewer.