6.7   "C_pomonella.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"/>
    <link rel="icon" type="image/png" href="favicon.ico" />
  </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>

        <p>... where Degree-Days = ((Daily Max Temp + Daily Min Temp) /
        2.0) - ${cydia.threshold_lo.format($temp_format)}.</p>

        <p>... except that an adjustment is made for Daily Max/Min
        outside the range ${cydia.threshold_lo.format($temp_format)} —
        ${cydia.threshold_hi.format($temp_format)} by clipping the area
        normalized to Degree-Days under a symmetric sine wave normalized
        to Daily Max/Min between those limits.</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
      </div>
  </body>
</html>