Changeset 4247


Ignore:
Timestamp:
Feb 9, 2007, 2:46:55 PM (17 years ago)
Author:
sexton
Message:

dampier timeseries update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/dampier_2006/get_timeseries.py

    r4222 r4247  
    2323   
    2424# sww file created from URS boundary
    25 production_dirs = {'20070129_063817_run': '10000 yr wave height',
     25production_dirs = {#'20070206_005106_run': '10000 yr wave height'}
    2626                   'boundaries': 'URS boundary condition'}
    2727
    28 is_parallel = True
     28is_parallel = False
    2929if is_parallel == True:
    30     nodes = 8
     30    nodes = 2
    3131   
    3232# Generate figures
     
    4242            if label_id == 'boundaries':
    4343                file_loc = project.boundaries_in_dir
    44                 swwfile = file_loc + sep + 'o.sww'
    45             else:
    46                 file_loc = project.output_dir + label_id + sep
    47                 sww_extra = '_P%s_%s' %(i,nodes)
    48                 swwfile = file_loc + project.scenario_name + sww_extra + '.sww'
     44                swwfile = file_loc + sep + '20061102_221245_build' + sep + 'dampier.sww'
     45                print 'hi'
     46            #else:
     47            #file_loc = project.output_dir + label_id + sep
     48            #sww_extra = '_P%s_%s' %(i,nodes)
     49            #swwfile = file_loc + project.scenario_name + sww_extra + '.sww'
    4950            swwfiles[swwfile] = label_id
    5051
    51             texname, elev_output = sww2timeseries(swwfiles,
    52                                                   project.gauges_dir_name,
    53                                                   production_dirs,
    54                                                   report = False,
    55                                                   #reportname = reportname,
    56                                                   plot_quantity = ['stage', 'momentum'],
    57                                                   surface = False,
    58                                                   time_min = None,
    59                                                   time_max = None,
    60                                                   title_on = False,
    61                                                   verbose = True)
     52        texname, elev_output = sww2timeseries(swwfiles,
     53                                              project.gauges_dir_name,
     54                                              production_dirs,
     55                                              report = False,
     56                                              #reportname = reportname,
     57                                              plot_quantity = ['stage', 'momentum'],
     58                                              generate_fig = False,
     59                                              surface = False,
     60                                              time_min = None,
     61                                              time_max = None,
     62                                              title_on = False,
     63                                              verbose = True)
    6264           
    6365            #latex_output.append(texname)
     
    6668   
    6769    for label_id in production_dirs.keys():
    68 
    69         file_loc = project.output_dir + label_id + sep
    70         swwfile = file_loc + project.scenario_name + '.sww'
     70       
     71        if label_id == 'boundaries':
     72                file_loc = project.boundaries_in_dir
     73                swwfile = file_loc + sep + '20061102_221245_build' + sep + 'dampier.sww'
     74        else:
     75            file_loc = project.output_dir + label_id + sep
     76            swwfile = file_loc + project.scenario_name + '.sww'
    7177        swwfiles[swwfile] = label_id
    7278       
Note: See TracChangeset for help on using the changeset viewer.