Changeset 6040


Ignore:
Timestamp:
Dec 1, 2008, 11:44:16 AM (16 years ago)
Author:
kristy
Message:

modified for all six runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/geraldton/export_results_max.py

    r5987 r6040  
    1313import project, os
    1414import sys
     15from anuga.lib.maxasc.maxasc import MaxAsc
    1516from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
    1617from anuga.shallow_water.data_manager import sww2dem
    1718from os import sep
    18 import maxasc
     19
    1920
    2021directory = project.output_dir
    2122
    22 time_dir1 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'
    23 ##time_dir2 = '20081114_155508_run_final_0.6_27283_alpha0.1_kvanputt' Perth
    24 ##time_dir3 = '20081114_155610_run_final_0.6_27255_alpha0.1_kvanputt'
    25 ##time_dir4 = '20081114_155642_run_final_0_27255_alpha0.1_kvanputt'
    26 ##time_dir5 = '20081114_155725_run_final_0_68693_alpha0.1_kvanputt'
    27 ##time_dir6 = '20081114_155802_run_final_0.6_68693_alpha0.1_kvanputt'
     23time_dir1 = '20081117_141353_run_final_0_27283_alpha0.1_kvanputt'
     24time_dir2 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'
     25time_dir3 = '20081117_141520_run_final_0_27255_alpha0.1_kvanputt'
     26time_dir4 = '20081117_141558_run_final_0.6_27255_alpha0.1_kvanputt'
     27time_dir5 = '20081117_141634_run_final_0_68693_alpha0.1_kvanputt'
     28time_dir6 = '20081117_141717_run_final_0.6_68693_alpha0.1_kvanputt'
    2829
    29 time_dirs = [time_dir1] #, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
     30time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
    3031
    3132 
     
    8586
    8687            name1 = directory+time_dir+sep+project.scenario_name
    87 ##            name2 = directory+time_dir+sep+project.scenario_name+'_time_39900_0'
    88 ##            name3 = directory+time_dir+sep+project.scenario_name+'_time_79800_0'
    89 
    90             names = [name1] #, name2, name3]
     88            name2 = directory+time_dir+sep+project.scenario_name+'_time_41820_0'
     89           
     90            names = [name1, name2]
    9191     
    92 ##            asc_name = []   
     92            asc_name = []   
    9393               
    9494            for name in names:
     
    110110                            verbose = True,
    111111                            format = 'asc')
    112 ##
    113 ##                asc_name.append(outname + '.asc')
    114 ##   
    115 ##            maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc'
    116 ##
    117 ##            print 'max asc outname ', maxasc_outname
    118 ##            print 'asc_name ', str(asc_name)
    119 ##           
    120 ##            maxasc.MaxAsc(maxasc_outname, asc_name)
     112
     113                asc_name.append(outname + '.asc')
     114   
     115            maxasc_outname = directory+time_dir+sep+project.scenario_name+'_'+which_area+'_'+which_var+'_max.asc'
     116
     117            print 'max asc outname ', maxasc_outname
     118            print 'asc_name ', str(asc_name)
     119           
     120            MaxAsc(maxasc_outname, asc_name)
Note: See TracChangeset for help on using the changeset viewer.