Changeset 3005 for production/onslow_2006/make_report.py
- Timestamp:
- May 29, 2006, 1:04:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/make_report.py
r2991 r3005 172 172 173 173 # Generate latex output for gauges 174 s = '\\begin{center} \n \\begin{tabular}{|l|l|l|}\hline \n \\bf{Gauge 175 Name} & \\bf{Easting} & \\bf{Northing} \\\\ \hline \n' fid.write(s) 176 #s = '\\begin{center} \n \\begin{tabular}{|l|l|l|l|}\hline \n \\bf{Gauge 177 #Name} & \\bf Easting} & \\bf Northing} & \\bf Elevation \\\\ \hline \n 178 179 gauges, locations = 180 get_gauges_from_file(project.gauge_filename) 174 s = '\\begin{table} \label{table:gaugelocations} \n' 175 fid.write(s) 176 s = '\caption{Defined gauge locations for %s study area.}' %scenario 177 fid.write(s) 178 s = """ 179 '\\begin{center} 180 \\begin{tabular}{|l|l|l|l|}\hline 181 \\bf{Gauge Name} & \\bf{Easting} & \\bf{Northing} & \\bf{Elevation}\\\\ \hline 182 """ 183 fid.write(s) 184 185 gauges, locations = get_gauges_from_file(project.gauge_filename) 181 186 182 187 for name, gauges in zip(locations, gauges): 183 188 east = gauges[0] 184 189 north = gauges[1] 190 elev = 0.0 185 191 #elev = gauges[2] 186 s = '%s & %.2f & %.2f \\\\ \hline \n' %(name.replace('_',' '), east, 187 north) 188 #s = '%s & %.2f & %.2f & %.2f \\\\ \hline \n %(name.replace('_',' '), 189 east, north, elev) 190 fid.write(s) 191 192 s = '\\end{tabular} \n \\end{center} \n \n' 192 s = '%s & %.2f & %.2f & %.2f \\\\ \hline \n' %(name.replace('_',' '), east, north, elev) 193 fid.write(s) 194 195 s = '\\end{tabular} \n \end{center} \n \end{table} \n \n' 193 196 fid.write(s) 194 197
Note: See TracChangeset
for help on using the changeset viewer.