Changeset 6784 for anuga_work
- Timestamp:
- Apr 14, 2009, 10:15:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/melbourne/build_urs_boundary.py
r6760 r6784 92 92 # @param output_dir Directory to write STS data to. 93 93 # @note 'event_file' is produced by EventSelection. 94 def build_urs_boundary(event_file, output_dir ):94 def build_urs_boundary(event_file, output_dir,urs_file): 95 95 '''Build a boundary STS file from a set of MUX files.''' 96 96 print 'reading', urs_file 97 97 # if we are using an EventSelection multi-mux file 98 98 if project.multi_mux: … … 137 137 urs2sts(mux_filenames, 138 138 basename_out=output_dir, 139 ordering_filename= project.urs_order,139 ordering_filename=urs_file, 140 140 weights=mux_weights, 141 141 central_meridian=project.central_meridian, … … 149 149 weight_factor = 1.0 150 150 mux_weights = weight_factor*num.ones(len(mux_filenames), num.Float) 151 152 order_filename = project.urs_order153 151 154 print 'reading', order_filename 152 155 153 # Create ordered sts file 156 154 urs2sts(mux_filenames, 157 155 basename_out=output_dir, 158 ordering_filename= order_filename,156 ordering_filename=urs_file, 159 157 weights=mux_weights, 160 158 central_meridian=project.central_meridian, … … 163 161 164 162 # report on progress so far 165 sts_file = os.path.join(project.event_folder, project.scenario_name)166 quantities, elevation, time = get_sts_gauge_data( sts_file, verbose=False)163 ## sts_file = os.path.join(project.event_folder, project.scenario_name) 164 quantities, elevation, time = get_sts_gauge_data(output_dir, verbose=False) 167 165 print len(elevation), len(quantities['stage'][0,:]) 168 166
Note: See TracChangeset
for help on using the changeset viewer.