]> Pileus Git - ~andy/aweather-web/blobdiff - html.ct
Version 0.5.2
[~andy/aweather-web] / html.ct
diff --git a/html.ct b/html.ct
index e3c3527173e2609f3809b95f6adc4b0ac34afe0b..f743157f69fc56915b7bc34099b0a5a51414d287 100644 (file)
--- a/html.ct
+++ b/html.ct
@@ -13,33 +13,43 @@ Content-Type: text/html; charset=UTF-8
 
 <% void print_screen(char *name) { %>
        <a href="screens/<%= name %>.png">
-               <img src="screens/<%= name %>_s.png" alt="<%= name %>" class="screen" />
+               <img src="screens/<%= name %>_s.jpg" alt="<%= name %>" class="screen" />
        </a>
 <% } %>
 
 <% void print_page(const page_t *page) { %>
-<?xml version="1.0" encoding="UTF-8"?> 
-<!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" xml:lang="en" lang="en"> 
-       <head> 
-               <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title> 
-               <meta http-equiv="X-UA-Compatible" content="IE=9" />
-               <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
+<?xml version="1.0" encoding="UTF-8"?>
+<!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" xml:lang="en" lang="en">
+       <head>
+               <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title>
                <link rel="shortcut icon" href="images/aweather.ico" />
                <link href="data/global.css" rel="stylesheet" type="text/css" />
-       </head> 
-       <body> 
+               <meta http-equiv="X-UA-Compatible" content="IE=9" />
+               <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+               <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" />
+               <% if (page->desc) { %>
+               <meta name="description" content="<%= page->desc %>" />
+               <% } %>
+               <meta name="google-site-verification" content="-SZkTpNRWHrpESTGNZ8Pshnz4zKbwfKv54NoavUKK_Y" />
+               <meta name="y_key" content="abe8287921b25151" />
+       </head>
+       <body>
                <div class="top">
-                       <!-- <a href=""><img class="logo" src="../data/aweather.svg" /></a> -->
                        <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
                        <h1 class="title"><a href=".">AWeather</a></h1>
                        <h2 class="nav">
                                <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
                                <span class="sep"></span>
-                               <% print_nav(&grits[0], page); %>
+                               <% for (int i = 0; other[i].link;  i++) print_nav(&other[i],  page); %>
                        </h2>
                </div>
                <div class="content">
+                       <!--
+                               <p class="msg">This site is currently under construction.</p>
+                               <p class="msg" style="font-size:8pt; font-weight:normal;">
+                                 If I had an animated GIF of a guy with a shovel, I would put it here.</p>
+                       -->
                        <% page->print(); %>
                        <div style="clear:both;"></div>
                </div>
@@ -49,56 +59,109 @@ Content-Type: text/html; charset=UTF-8
                                | <% print_nav(&footer[i], page); %>
                        <% } %>
                </p>
-       </body> 
-</html> 
+       </body>
+</html>
 <% } %>
 
 <% /* Normal Pages */ %>
 <% void print_about(void) { %>
        <p class="intro">
-       To the best of my knowledge, all the weather related programs currently
-       available for Linux are either very simple and provide little
-       meteorological information or are huge, ancient, or proprietary beasts
-       created for the National Weather Service. AWeather is made to fill the
-       gap by providing lots of weather information while still using standard
-       free software practices. As such, the research focus of this software
-       is weather, not creative way to write software.
+               AWeather is a free/open source application which has been
+               designed to integrate and visualize high-quality meteorological
+               data using an interactive Virtual Globe interface suitable for
+               a wide range of users including weather enthusiasts, academics,
+               and professionals.
+
+               It is designed to provide more information than is typically
+               available from weather widgets and simple desktop applications.
+               At the same time, it strives to be simpler and easier to use
+               than existing meteorological software packages such as GEMPAK
+               and IDV.
        </p>
        <hr />
-       <h2>Intended Features</h2>
-       <ul>
-               <li>High quality data sources
-                   (Level-II archive, etc)</li>
-               <li>3D Volume browser (todo)</li>
-               <li>GTK+ User Interface</li>
-               <li>API for algorithms
-                   (vortex/hail signatures, rain-rate, etc)
-                   (todo)</li>
-               <li>Other?</li>
-       </ul>
 
-       <h2>Status</h2>
-       <blockquote>Now that it's spring again, progress on AWeather is continuing.</blockquote>
-       <h3>Working</h3>
-       <ul>
-               <li>Level-II and Conus NEXRAD imagery</li>
-               <li>Real-time and offline mode</li>
-               <li>Virtual Globe base rendering</li>
-               <ul><li>Including terrain, satellite, and map imagery</li></ul>
-               <li>Auto-updating</li>
-               <li>volume display</li>
-       </ul>
-       <h3>Todo</h3>
-       <ul>
-               <li>Vertical cross sections</li>
-               <li>Derived NEXRAD data (storm relative motion, echo tops, compost reflective, etc)</li>
-               <li>Additional data sources (watch/warning boxes, surface data, etc)</li>
-               <li>Animation</li>
-       </ul>
+       <h2>Features</h2>
+       <div class="col">
+               <h3>Working</h3>
+               <ul>
+                       <li>High quality data sources<ul>
+                               <li>Level-II archives</li>
+                               <li>Conus NEXRAD imagery</li>
+                               <li>Volume display of dBZ iso surfaces</li>
+                       </ul></li>
+                       <li>Virtual Globe base rendering<ul>
+                               <li>Including terrain, satellite, and map imagery</li>
+                       </ul></li>
+                       <li>Real-time and offline mode</li>
+                       <li>Auto-updating</li>
+                       <li>Fullscreen mode</li>
+               </ul>
+       </div>
+       <div class="col">
+               <h3>Planned</h3>
+               <ul>
+                       <li>Additional data sources<ul>
+                               <li>Watch/warning/advisory boxes</li>
+                               <li>Surface data (temp., humidity, etc)</li>
+                       </ul></li>
+                       <li>Derived NEXRAD data<ul>
+                               <li>Storm relative motion</li>
+                               <li>Compost reflective</li>
+                               <li>Echo tops</li>
+                       </ul></li>
+                       <li>Vertical cross sections</li>
+                       <li>Animation</li>
+               </ul>
+       </div>
+
+       <div style="clear:both;"></div>
+       <h2>Licencing</h2>
+       <p>AWeather is free software licensed under the terms of the
+          <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
+          As such, it can be used by any individuals or organizations
+          without any license fees or royalties.</p>
 <% } %>
 
 <% void print_news(void) { %>
+       <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p>
        <dl class="news">
+               <dt>2011-09-12</dt>
+               <dd>
+                       AWeather 0.5.2 released: <ul>
+                               <li>Added new desktop icons</li>
+                               <li>Miscellaneous bug fixes</li>
+                       </ul>
+               </dd>
+
+               <dt>2011-08-25</dt>
+               <dd>
+                       AWeather 0.5.1 released: <ul>
+                               <li>Bugfix release</li>
+                               <li>Updated sat/map/elev to provide better data</li>
+                               <li>First release with <a href="<%= DEBIAN_HOME %>">Debian</a>, 
+                                                  and <a href="<%= UBUNTU_HOME %>">Ubuntu</a> packages</li>
+                       </ul>
+               </dd>
+
+               <dt>2011-06-19</dt>
+               <dd>
+                       AWeather 0.5 released: <ul>
+                               <li>Support for volume rendering (isosurfaces)</li>
+                               <li>Automatic updating</li>
+                               <li>Fullscreen mode</li>
+                               <li>Dropped GtkGLExt</li>
+                       </ul>
+                       Forked RSL:<ul>
+                               <li>Added additional radars</li>
+                               <li>Fixed lots of bugs</li>
+                               <li>General code cleanup</li>
+                               <li>Available from <a href="files/">files</a> directory
+                                   and <a href="<%= GW_RSL %>">git</a></li>
+                       </ul>
+                       <b>Update:</b> AWeather 0.5 is also compatible with the
+                       newly released RSL v1.41
+               </dd>
+
                <dt>2011-06-13</dt>
                <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
                        <li>Merged support for isosurfaces to the main branch (Finally!)</li>
@@ -133,24 +196,24 @@ Content-Type: text/html; charset=UTF-8
                    progress is being made on libgis, which is now able to display
                    a virtual globe using data from NASA servers.</dd>
        </dl>
-       <p class="note">See also: AWeather's <a href="/git/?p=proj/aweather">gitweb</a></p>
+       <p class="note">See also: AWeather's <a href="<%= GW_AWEATHER %>">gitweb</a></p>
 <% } %>
 
 <% void print_screenshots(void) { %>
-       <br />
        <p>
-               AWeather provides consistent user interface that allows the
+               AWeather provides consistent user interface that allows the
                user to zoom in from a high level view of the entire Earth down
-               to regional and microscale views.
+               to regional and mesoscale views.
        </p>
+
        <ul class="gallery">
                <li>
                        <% print_screen("synop"); %>
-                       High level view using grits
+                       High level view using Grits
                </li>
                <li>
                        <% print_screen("region"); %>
-                       Regional view of a storm front
+                       Regional view over the midwest
                </li>
                <li>
                        <% print_screen("meso"); %>
@@ -164,52 +227,62 @@ Content-Type: text/html; charset=UTF-8
 <% } %>
 
 <% void print_download(void) { %>
-       <h2>Stable release</h2>
+       <h2>Stable releases</h2>
        <p class="note">
-               While AWeather won't be considered stable until version 1.0,<br />
+               While AWeather won't be considered stable until version 1.0,
                these are as close to stable as you can get until then
        </p>
        <ul>
                <li class="linux"><dl class="inline">
                        <dt>Source code</dt>
-                       <dd><a href="../aweather-0.4.2.tar.gz">aweather-0.4.2.tar.gz</a></dd>
+                       <dd>
+                       <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
+                       <a href="../grits/grits-<%= VERSION %>.tar.gz">grits-<%= VERSION %>.tar.gz</a>,
+                       <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
+                       </dd>
 
                        <dt>Gentoo</dt>
-                       <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
+                       <dd><span class="code">emerge sci-geosciences/aweather</span> from the sunrise overlay</dd>
 
                        <dt>Debian</dt>
-                       <dd>Packaging in progress, check back soon</dd>
+                       <dd><span class="code">apt-get install aweather</span> from Debian sid</dd>
+
+                       <dt>Ubuntu</dt>
+                       <dd><span class="code">apt-get install aweather</span> from Ubuntu oneiric</dd>
                </dl></li>
                <li class="windows"><dl class="inline">
                        <dt>Windows</dt>
-                       <dd><a href="../aweather-0.4.2-gtk.exe">aweather-0.4.2-gtk.exe</a></dd>
+                       <dd><a href="files/aweather-<%= VERSION_WIN32 %>-gtk.exe">aweather-<%= VERSION_WIN32 %>-gtk.exe</a>
+                               (Use this unless you know what you're doing)</dd>
 
-                       <dt>Update only</dt>
-                       <dd><a href="../aweather-0.4.2.exe">aweather-0.4.2.exe</a></dd>
+                       <dt>Without GTK</dt>
+                       <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a></dd>
+               </dl></li>
+               <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
+                       <dt>Mac OS X</dt>
+                       <dd>Coming soon (Mac OS developer? <a href="/code/issues/1">Help out</a>)</dd>
                </dl></li>
-               <li class="macos" style="padding-top: .8em; padding-bottom: .8em">
-                       Coming soon (hopefully)
-               </li>
        </ul>
 
        <h2>Unstable releases</h2>
        <p class="note">Pre-releases, betas, and other hazardous software</p>
        <div style="margin-left: 30px;">
-               <p>Check out the <a href="../">releases</a> directory for any potential updates</p>
-               <p>Pre-releases are labeled with a -p0 and are mainly build for testing the Windows packages</p>
+               <p>Check out the <a href="files">files</a> directory for any potential updates</p>
+               <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows packages</p>
        </div>
 
        <h2>Development code</h2>
        <p class="note">
-               Development code is available from Git, and from gitweb
-               (<a href="/git/?=proj/aweather">AWeather</a>,
-                <a href="/git/?=proj/grits">Grits</a>, 
-                <a href="/git/?=~spenceal/rsl">RSL</a>)
+               Development code is available from Git
+               (and gitweb:
+                <a href="<%= GW_AWEATHER %>">AWeather</a>,
+                <a href="<%= GW_GRITS    %>">Grits</a>,
+                <a href="<%= GW_RSL      %>">RSL</a>)
        </p>
        <div style="margin-left: 30px;">
-               <div class="code">git clone git://lug.rose-hulman.edu/proj/aweather</div>
-               <div class="code">git clone git://lug.rose-hulman.edu/proj/grits</div>
-               <div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div>
+               <div class="code">git clone <%= GIT_AWEATHER %></div>
+               <div class="code">git clone <%= GIT_GRITS    %></div>
+               <div class="code">git clone <%= GIT_RSL      %></div>
        </div>
 <% } %>
 
@@ -217,14 +290,14 @@ Content-Type: text/html; charset=UTF-8
        <!-- Open source mumbo jumbo.. -->
 
        <p class="note" style="clear: both;">
-               The AWeather <a href="/code/projects/aweather/wiki">development wiki</a>
+               The AWeather <a href="<%= WIKI_INDEX %>">development wiki</a>
                is the main resource for development material.
        </p>
 
        <h2>Bug report and feature requests</h2>
        <div style="margin-left: 30px;">
-               <p><a href="/code/projects/aweather/issues/new">New issue</a></p>
-               <p><a href="/code/projects/aweather/issues">Open issues</a></p>
+               <p><a href="<%= BUG_LIST %>">List of current issues</a></p>
+               <p><a href="<%= BUG_NEW  %>">Add a new issue</a></p>
        </div>
 
        <h2>How to contribute?</h2>
@@ -235,33 +308,40 @@ Content-Type: text/html; charset=UTF-8
                <li>Make better logo!</li>
        </ul>
 
-       <h2>Building AWeather</h2>
-       <p class="note">See the <a href="code/projects/aweather/wiki/Install">install</a> wiki page for more details</p>
-       <ul>
-               <li>AWeather has direct dependencies on Grits, and RSL, among other things.</li>
-               <li>Currently building AWeather will require the exact same version of
-                   Grits to be installed, but this may change in the near future as
-                   the software stabilizes.</li>
-       </ul>
-       
        <h2>Architecture Overview</h2>
        <ul>
                <li>Built on top of GObject and GTK+</li>
-               <li>Uses the Grits "Virtual Globe" library for much of the graphics work.<br />
-                   Grits also provides some other generic functionality and a plugin API.</li>
-               <li>AWeather itself is a front-end for grits along with a
-                   bundle of weather related plugins.</li>
+               <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
+                       <li>Handles most of the graphics work using OpenGL for rendering</li>
+                       <li>Provides some other generic functionality, such as data access</li>
+                       <li>Also provides the plugins API used by AWeather</li>
+               </ul></li>
+               <li>AWeather itself is a front-end for Grits along with a
+                   bundle of weather related plugins</li>
+       </ul>
+
+       <h2>Building AWeather</h2>
+       <p class="note">See the <a href="<%= WIKI_INSTALL %>">install</a>
+               wiki page for more details</p>
+       <ul>
+               <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
+               <li>Currently building and running AWeather requires the
+                   exact same version of Grits to be installed<br />
+                   (This may change in the near future as the software stabilizes)</li>
        </ul>
 <% } %>
 
 <% void print_grits(void) { %>
-       <h1>Grits</h1>
-       <p>Grits is a Virtual Globe library developed along side AWeather, but
-          can be used by other programs as well.</p>
-       <p>It is differentiated from other Virtual Globes such as Google Earth,
-          NASA World Wind, and KDE Marble in that it is developed as a library
-          that is used by other programs, such as AWeather, rather than
-          providing a user interface that is used directly.</p>
+       <p>
+               Grits is a Virtual Globe library developed along side AWeather,
+               but desigend to be usable by other program as well.
+
+               It is differentiated from other Virtual Globes such as Google
+               Earth, NASA World Wind, and KDE Marble in that it is developed
+               primairily as a library that is used by other programs, such as
+               AWeather, rather than providing it's own user interface.
+       </p>
+
        <ul class="gallery">
                <li>
                        <% print_screen("grits"); %>
@@ -279,56 +359,98 @@ Content-Type: text/html; charset=UTF-8
        </ul>
 <% } %>
 
+<% void print_rsl(void) { %>
+       <h2>Radar Software Library</h2>
+       AWeather has at times needed a custom version of the
+       <a href="<%= RSL_WEB %>">TRMM Radar Software Library</a>
+       for accessing Level-II radar files. However, most of the changes have
+       since been incorporated into RSL Version 1.41, which can also be used
+       with AWeather. Some remaining changes exist though and are mostly
+       related to code organization and compiler warnings.
+
+       <h2>Download</h2>
+       <div class="col">
+               <h3>NASA/TRMM version</h3>
+               <ul>
+                       <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
+                       <li><a href="<%= RSL_FTP RSL_TAR %>"><%= RSL_TAR %></a></li>
+               </ul>
+       </div>
+       <div class="col">
+               <h3>AWeather's version</h3>
+               <ul>
+                       <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
+                       <li><a href="<%= GW_RSL %>">Gitweb</a></li>
+                       <li><div class="code">git clone <%= GIT_RSL %></div></li>
+               </ul>
+       </div>
+<% } %>
+
 <% /* Footer Pages */ %>
 <% void print_contact(void) { %>
        <h1>Contact</h1>
        <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
        <dl class="inline small">
+               <dt>Bugs</dt> <dd><a href="<%= BUG_LIST %>">Issue Tracker</a> (sign in to add a new issue)</dd>
                <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
                <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
        </dl>
 <% } %>
 
-<% void print_legal(void) { %>
-       <h1>Legal</h1>
-<% } %>
-
 <% /* Special Pages */ %>
 <% void print_index(void) { %>
        <p class="intro">
-               AWeather is designed to be an advanced weather program which is
-               designed to be used by weather enthusiasts. AWeather is not
-               another weather dockapp that simply displays a pre-computed
-               forecast. It is designed to be an easy to use program that
-               integrates a variety of weather data in simple unified
-               interface; see features for more details.
+               AWeather is a free real-time weather data viewer designed for weather enthusiasts.
+               AWeather is not a weather widget/dockapp that displays a pre-computed forecast.
+               It is designed to be an easy to use program that integrates a
+               variety of meteorological data in simple unified interface;
+               see the <a href="about">about</a> page for more details.
        </p>
        <hr />
-       <% print_screen("meso"); %>
-       <div class="buttons">
-               <a class="download" href="">
-                       <p>Download</p>
-                       <p>AWeather 0.5-p0 source</p>
-                       <img src="images/dl-arrow.png" />
-               </a>
-               <a class="download" href="">
-                       <p>Download</p>
-                       <p>AWeather 0.5-p0 source</p>
-                       <img src="images/dl-arrow.png" />
-               </a>
-       </div>
-       <b>Features:</b>
-       <ul>
-               <li>Detailed Level-II radar</li>
-               <li>3D volume rendering</li>
-               <li>Dual-pole support</li>
+       <ul style="float: left;">
+               <li>Detailed Level-II NEXRAD radar<ul>
+                       <li>3D volume rendering</li>
+                       <li>Dual-pole support</li>
+               </ul></li>
+               <li>Online and offline modes<ul>
+                       <li>Data caching</li>
+                       <li>Automatic updating</li>
+               </ul></li>
                <li>Surface and map overlays</li>
                <li>Terrain rendering</li>
-               <li>Online and offline modes with
-                   caching and automatic updating</li>
        </ul>
+       <div style="float: left; margin-left: 20px;">
+               <% print_screen("meso"); %>
+       </div>
+       <a href="download" class="download" style="float: right;">
+               <span>Download</span>
+               <span>AWeather <%= VERSION %></span>
+               <img src="images/dl-arrow.png" alt="Download" />
+       </a>
+       <p style="text-align: center;"><%= VERSION_DESC %></p>
 <% } %>
 
 <% void print_notfound(void) { %>
-       <h1>404 - Not found</h1>
+       <h1>Error 404 - Page Not found!</h1>
+       <br />
+       <p>This page does not exist!
+       <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
+          otherwise, go away</p>
+<% } %>
+
+<% void print_sitemap(const page_t **pages) { %>
+<?xml version='1.0' encoding='UTF-8'?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
+                           http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
+       <% for (int i = 0; pages[i];         i++) { %>
+       <% for (int j = 0; pages[i][j].link; j++) { %>
+       <% if  (pages[i][j].prio >= 0) { %>
+       <url>
+               <loc><%% "%s%s", PREFIX, pages[i][j].link %></loc>
+               <priority><%% "%3.1f", pages[i][j].prio %></priority>
+       </url>
+       <% } } } %>
+</urlset>
 <% } %>