6.7   "C_pomonella_First_Flight.html" Template

#errorCatcher Echo
#def round1(val): $eval('%6.1f' % $round($val, 1))
#set $temp_unit = $unit.label.outTemp
#set $date_format = "%d %b"
#set $now_format = "%m/%d/%Y"
#set $temp_format = "%5.1f"
#set $dd_format = "%5.1f"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head profile="http://www.w3.org/2005/10/profile">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>${station.location} -- ${cydia.label}</title>
    <link rel="stylesheet" type="text/css" href="../weewx.css"/>
    <link rel="stylesheet" type="text/css" href="../cydia.css"/>
  </head>

  <body>
      <div id="masthead">
        <h1>${station.location}</h1>
        <h2>${cydia.label}</h2>
          <h2>${cydia.datetime.nolabel($now_format)}</h2>
      </div>
      <div id="content">
        <div id="plots">
          <img src="../${cydia.species_name}.png" alt="${cydia.label}" />
        </div>

	<table>
	  <tr><td align=right>Threshold:</td><td align=left>${cydia.threshold}</td></tr>
	  <tr><td align=right>Cutoff:</td><td align=left>${cydia.cutoff}</td></tr>
	  <tr><td align=right>Method:</td><td align=left>${cydia.method}</td></tr>
	  <tr><td align=right>Documentation:</td><td align=left><a href="http://LacusVeris.com/cydia/index.shtml"><tt>weeWX</tt> extension</a></td></tr>
	</table>

	<p> </p>

        <table>
          <tr valign=top>
            <th align=left>Date</th>
            <th align=right>Min Temp<br>$temp_unit</th>
            <th align=right>Max Temp<br>$temp_unit</th>
            <th align=right>DegDay<br>$temp_unit</th>
            <th align=right>Cumulative<br>DegDay<br>$temp_unit</th>
            <th align=left>Event</th>
          </tr>
#for $rec in $cydia.degree_days
          <tr>
            <td align=left>$rec.date.nolabel($date_format)</td>
            <td align=right>$round1($rec.daily_min.raw)</td>
            <td align=right>$round1($rec.daily_max.raw)</td>
            <td align=right>$round1($rec.dd.raw)</td>
            <td align=right>$round1($rec.dd_cumulative.raw)</td>
            <td align=left>$rec.remark.raw</td>
          </tr>
#end for
        </table>	  
      </div>
  </body>
</html>