Ignore:
Timestamp:
Apr 8, 2009, 10:07:10 AM (16 years ago)
Author:
myall
Message:

restoring 'zone' option for build_urs_boundary.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified anuga_work/production/australia_ph2/melbourne/build_urs_boundary.py

    r6692 r6758  
    9292# @param output_dir Directory to write STS data to.
    9393# @note 'event_file' is produced by EventSelection.
    94 def build_urs_boundary(event_file, output_dir,urs_file):
     94def build_urs_boundary(event_file, output_dir):
    9595    '''Build a boundary STS file from a set of MUX files.'''
    96     print 'reading', urs_file
     96
    9797    # if we are using an EventSelection multi-mux file
    9898    if project.multi_mux:
     
    137137        urs2sts(mux_filenames,
    138138                basename_out=output_dir,
    139                 ordering_filename=urs_file,
     139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141141                central_meridian=project.central_meridian,
     142                zone=project.zone
    142143                verbose=True)
    143144    else:                           # a single mux stem file, assume 1.0 weight
     
    148149        weight_factor = 1.0
    149150        mux_weights = weight_factor*num.ones(len(mux_filenames), num.Float)
     151           
     152        order_filename = project.urs_order
    150153
    151 
     154        print 'reading', order_filename
    152155        # Create ordered sts file
    153156        urs2sts(mux_filenames,
    154157                basename_out=output_dir,
    155                 ordering_filename=urs_file,
     158                ordering_filename=order_filename,
    156159                weights=mux_weights,
    157160                central_meridian=project.central_meridian,
     161                zone=project.zone
    158162                verbose=True)
    159163
    160164    # report on progress so far
    161 ##    sts_file = os.path.join(project.event_folder, project.scenario_name)
    162     quantities, elevation, time = get_sts_gauge_data(output_dir, verbose=False)
     165    sts_file = os.path.join(project.event_folder, project.scenario_name)
     166    quantities, elevation, time = get_sts_gauge_data(sts_file, verbose=False)
    163167    print len(elevation), len(quantities['stage'][0,:])
    164168
Note: See TracChangeset for help on using the changeset viewer.