Changeset 6758 for anuga_work/production/australia_ph2/melbourne
- Timestamp:
- Apr 8, 2009, 10:07:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified anuga_work/production/australia_ph2/melbourne/build_urs_boundary.py ¶
r6692 r6758 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 ,urs_file):94 def build_urs_boundary(event_file, output_dir): 95 95 '''Build a boundary STS file from a set of MUX files.''' 96 print 'reading', urs_file 96 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= urs_file,139 ordering_filename=project.urs_order, 140 140 weights=mux_weights, 141 141 central_meridian=project.central_meridian, 142 zone=project.zone 142 143 verbose=True) 143 144 else: # a single mux stem file, assume 1.0 weight … … 148 149 weight_factor = 1.0 149 150 mux_weights = weight_factor*num.ones(len(mux_filenames), num.Float) 151 152 order_filename = project.urs_order 150 153 151 154 print 'reading', order_filename 152 155 # Create ordered sts file 153 156 urs2sts(mux_filenames, 154 157 basename_out=output_dir, 155 ordering_filename= urs_file,158 ordering_filename=order_filename, 156 159 weights=mux_weights, 157 160 central_meridian=project.central_meridian, 161 zone=project.zone 158 162 verbose=True) 159 163 160 164 # 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) 163 167 print len(elevation), len(quantities['stage'][0,:]) 164 168
Note: See TracChangeset
for help on using the changeset viewer.