- Timestamp:
- Feb 23, 2009, 2:17:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/standardised_version/build_urs_boundary.py
r6335 r6376 40 40 # Get maximum wave height throughout timeseries at each index point 41 41 #--------------------------------------------------------------------------- 42 43 # create directory for generate STS file, if necessary 44 if not os.path.exists(project.event_sts): 45 os.mkdir(project.event_sts) 46 42 47 43 maxname = 'max_sts_stage.csv' 48 44 print 'get_sts_gauge_data: maxname=%s' % maxname 49 fid_max = open(os.path.join(project.event_ sts, maxname), 'w')45 fid_max = open(os.path.join(project.event_folder, maxname), 'w') 50 46 fid_max.write('index, x, y, max_stage \n') 51 47 for j in range(len(x)): … … 62 58 63 59 minname = 'min_sts_stage.csv' 64 fid_min = open(os.path.join(project.event_ sts, minname), 'w')60 fid_min = open(os.path.join(project.event_folder, minname), 'w') 65 61 fid_min.write('index, x, y, max_stage \n') 66 62 for j in range(len(x)): … … 72 68 fid_min.write('%d, %.6f, %.6f, %.6f\n' %(index, x[j], y[j], min(stage))) 73 69 74 out_file = os.path.join(project.event_ sts,70 out_file = os.path.join(project.event_folder, 75 71 basename+'_'+str(index)+'.csv') 76 72 fid_sts = open(out_file, 'w') … … 102 98 if project.multi_mux: 103 99 # get the mux+weight data from the meta-file (in <boundaries>) 104 mux_event_file = os.path.join(project. boundaries_folder, event_file)100 mux_event_file = os.path.join(project.event_folder, event_file) 105 101 print 'using multi-mux file', mux_event_file 106 102 try: … … 146 142 verbose=True) 147 143 else: # a single mux stem file, assume 1.0 weight 148 mux_file = os.path.join(project. mux_data_folder, event_file)144 mux_file = os.path.join(project.event_folder, event_file) 149 145 mux_filenames = [mux_file] 150 146 print 'using single-mux file', mux_file
Note: See TracChangeset
for help on using the changeset viewer.