Changeset 6325


Ignore:
Timestamp:
Feb 13, 2009, 8:36:46 AM (16 years ago)
Author:
rwilson
Message:

Cleaned up the new single MUX file bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/standardised_version/build_urs_boundary.py

    r6324 r6325  
    136136
    137137        # Call legacy function to create STS file.
    138         # This should be replaced in the future.
    139         print 'reading', project.urs_order
    140         print 'creating STS file'
    141         print 'mux_filenames=%s' % str(mux_filenames)
    142         print 'basename_out=%s' % str(output_dir)
    143         print 'ordering_filename=%s' % str(project.urs_order)
    144         print 'weights=%s' % str(mux_weights)
    145         print 'mean_stage=%s' % str(project.tide)
     138        print 'creating sts file'
    146139        urs2sts(mux_filenames,
    147140                basename_out=output_dir,
     
    150143                mean_stage=project.tide,
    151144                verbose=True)
    152     else:                           # a single mux stem file
     145    else:                           # a single mux stem file, assume 1.0 weight
    153146        urs_filenames = [os.path.join(mux_dir, event_file)]
    154147
    155148        weight_factor = 1.0
    156         weights = weight_factor*num.ones(len(urs_filenames), num.float)
     149        weights = weight_factor*num.ones(len(urs_filenames), num.Float)
    157150           
    158         order_filename = os.path.join(project.order_filename_dir)
     151        order_filename = project.order_filename_dir
    159152
    160153        print 'reading', order_filename
     
    169162                verbose=True)
    170163
    171     # report on stuff so far
     164    # report on progress so far
    172165    quantities, elevation, time = get_sts_gauge_data(project.event_folder,
    173166                                                     verbose=False)
Note: See TracChangeset for help on using the changeset viewer.