Ignore:
Timestamp:
May 29, 2006, 1:04:00 PM (18 years ago)
Author:
sexton
Message:

more updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/make_report.py

    r2991 r3005  
    172172
    173173# 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)
     174s = '\\begin{table} \label{table:gaugelocations} \n'
     175fid.write(s)
     176s = '\caption{Defined gauge locations for %s study area.}' %scenario
     177fid.write(s)
     178s = """
     179'\\begin{center}
     180\\begin{tabular}{|l|l|l|l|}\hline
     181\\bf{Gauge Name} & \\bf{Easting} & \\bf{Northing} & \\bf{Elevation}\\\\ \hline
     182"""
     183fid.write(s)
     184
     185gauges, locations = get_gauges_from_file(project.gauge_filename)
    181186
    182187for name, gauges in zip(locations, gauges):
    183188    east = gauges[0]
    184189    north = gauges[1]
     190    elev = 0.0
    185191    #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
     195s = '\\end{tabular} \n  \end{center} \n \end{table} \n \n'
    193196fid.write(s)
    194197
Note: See TracChangeset for help on using the changeset viewer.