Changeset 6529


Ignore:
Timestamp:
Mar 17, 2009, 2:29:49 PM (16 years ago)
Author:
jgriffin
Message:

updated export_results_max.py

Location:
anuga_work/production/australia_ph2/sydney
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/sydney/Arc_asc2raster_GDA94z56.py

    r6498 r6529  
    2929##time_dirs = [time_dir1, time_dir2]
    3030
    31 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'
    32 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'
    33 time_dir3 = '20090211_135851_run_final_0_7875_jgriffin'
    34 #time_dir4 = '20090123_154945_run_final_0_7875_250m_small_jgriffin'
    35 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'
     31time_dir1 = '20090311_145740_run_final_0_58152_2956_Tb_jgriffin'
     32time_dir2 = '20090311_145828_run_final_0_58152_2956_Bf_jgriffin'
     33time_dir3 = '20090313_154712_run_final_0_58222_2956_Bf_jgriffin'
     34time_dir4 = '20090313_154810_run_final_0_58326_2956_Bf_jgriffin'
     35time_dir5 = '20090316_142137_run_final_0_58326_2956_Bf_jgriffin'
    3636##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'
    3737
    3838
    39 time_dirs = [time_dir3]#, time_dir4] #, time_dir3, time_dir4, time_dir5, time_dir6]
     39time_dirs = [time_dir3, time_dir4 , time_dir3, time_dir4, time_dir5]#, time_dir6]
    4040
    4141for time_dir in time_dirs:
     
    6262
    6363    generate_filename = []
    64     input_ascii = glob.glob(folder + '*max.asc')
     64    input_ascii = glob.glob(folder + '*stage_max.asc')
    6565    print time_dir
    6666
  • anuga_work/production/australia_ph2/sydney/export_results_max.py

    r6498 r6529  
    11"""
    22Generates ascii grids of nominated areas -
    3 Input: sww file from run_pt_hedland.py
     3Input: sww file from run_perth.py
    44       boundaries for grids from project.py
    55Outputs: ascii grids of specified variables
     
    1313import project, os
    1414import sys
     15from os.path import join
    1516from anuga.lib.maxasc.maxasc import MaxAsc
    1617from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
    1718from anuga.shallow_water.data_manager import sww2dem
    1819from os import sep
    19 from os.path import join
     20
    2021
    2122directory = project.output_folder
    22 print directory
    2323
    24 time_dir1 = '20090311_145740_run_final_0_58152_2956_Tb_jgriffin'
    25 time_dir2 = '20090311_145828_run_final_0_58152_2956_Bf_jgriffin'
    26 #time_dir3 = '20090123_154945_run_final_0_7875_250m_small_jgriffin'
    27 time_dirs = [time_dir1,time_dir2]#,time_dir2,time_dir3]#, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
     24time_dir1 = '20090316_142137_run_final_0_58326_2956_Bf_jgriffin'
     25##time_dir2 = '20090311_152929_run_final_0_70385_1203_Tb_jgriffin'
     26##time_dir3 = '20090311_153009_run_final_0_70454_1203_Bf_jgriffin'
     27##time_dir4 = '20090311_153054_run_final_0_70339_1203_Bf_jgriffin'
     28time_dirs = [time_dir1]#,time_dir2,time_dir3,time_dir4] 
    2829
    29 #cellsize = 20
    3030cellsize = 250
     31##cellsize = 5
    3132
    32 timestep = None    # None means no timestep!
    33 #timestep = 0
     33#timestep = None    # None means no timestep!
     34timestep = 0
    3435
    3536######
     
    3738######
    3839
    39 #area = ['']         # strings must match keys in var_equations below
    40 area = ['All']       # 'All' means no special areas - the whole thing
     40#area = ['Bunbury', 'Busselton']  # strings must match keys in var_equations below
     41area = ['All']      # 'All' means no special areas - the whole thing
    4142
    4243######
     
    5152
    5253# one or more key strings from var_equations above
    53 #var = ['stage', 'speed','depth']
    54 var = ['stage','elevation']
     54var = ['elevation','stage']
    5555
    5656######
     
    8282
    8383            name1 = join(directory, time_dir, project.scenario_name)
    84             name2 = join(directory, time_dir, project.scenario_name)+'_time_66360_0'
    85             #name3 = join(directory, time_dir, project.scenario_name)+'_time_33360_0'
    86             #name4 = join(directory, time_dir, project.scenario_name)+'_time_50040_0'
    87             #name5 = join(directory, time_dir, project.scenario_name)+'_time_66720_0'
    88 
    89             names = [name1, name2]# , name3, name4, name5]
     84##            name2 = join(directory, time_dir, project.scenario_name)+'_time_66360_0'
     85##            name3 = join(directory, time_dir, project.scenario_name)+'_time_26640_0'
     86##            name4 = join(directory, time_dir, project.scenario_name)+'_time_39960_0'
     87##            name5 = join(directory, time_dir, project.scenario_name)+'_time_53280_0'
     88##            name6 = join(directory, time_dir, project.scenario_name)+'_time_66600_0'
     89##            name7 = join(directory, time_dir, project.scenario_name)+'_time_79920_0'
     90           
     91            names = [name1]#, name2]#, name3,name4,name5,name6,name7]
    9092     
    9193            asc_name = []   
     
    112114                asc_name.append(outname + '.asc')
    113115   
    114             maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc'
     116            maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc'
    115117
    116118            print 'max asc outname ', maxasc_outname
  • anuga_work/production/australia_ph2/sydney/project.py

    r6511 r6529  
    2929tide = 0                # difference between MSL and HAT
    3030zone = 56              # specify zone of model
    31 event_number = 58222    # the event number or the mux file name
     31event_number = 58326    # the event number or the mux file name
    3232alpha = 0.1             # smoothing parameter for mesh
    3333friction=0.01           # manning's friction coefficient
     
    3939wave = 'Bf'             # Bf (sts wave) Tb (index wave)
    4040
    41 setup = 'trial'         # This can be one of three values
     41setup = 'final'         # This can be one of three values
    4242                        #    trial - coarsest mesh, fast
    4343                        #    basic - coarse mesh
Note: See TracChangeset for help on using the changeset viewer.