]> Pileus Git - ~andy/aweather-web/blob - html.ct
Add defines for links, misc updates
[~andy/aweather-web] / html.ct
1 <% #include "html.h" %>
2
3 <% /* Global functions */ %>
4 <% void print_header(void) { %>
5 Content-Type: text/html; charset=UTF-8
6
7 <% } %>
8
9 <% void print_nav(const page_t *page, const page_t *cur) { %>
10         <% const char *class = page == cur ? " class=\"cur\"" : ""; %>
11         <a href="<%= page->link %>"<%= class %>><%= page->name %></a>
12 <% } %>
13
14 <% void print_screen(char *name) { %>
15         <a href="screens/<%= name %>.png">
16                 <img src="screens/<%= name %>_s.jpg" alt="<%= name %>" class="screen" />
17         </a>
18 <% } %>
19
20 <% void print_page(const page_t *page) { %>
21 <?xml version="1.0" encoding="UTF-8"?> 
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
24         <head> 
25                 <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title> 
26                 <link rel="shortcut icon" href="images/aweather.ico" />
27                 <link href="data/global.css" rel="stylesheet" type="text/css" />
28                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
29                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
30                 <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" >
31                 <meta name="description" content="AWeather is a free real-time weather data viewer
32                         that supports Level-II NEXRAD files, polarimetric radars, and volume rendering." >
33         </head> 
34         <body> 
35                 <div class="top">
36                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
37                         <h1 class="title"><a href=".">AWeather</a></h1>
38                         <h2 class="nav">
39                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
40                                 <span class="sep"></span>
41                                 <% for (int i = 0; other[i].link;  i++) print_nav(&other[i],  page); %>
42                         </h2>
43                 </div>
44                 <div class="content">
45                         <!--
46                                 <p class="msg">This site is currently under construction.</p>
47                                 <p class="msg" style="font-size:8pt; font-weight:normal;">
48                                   If I had an animated GIF of a guy with a shovel, I would put it here.</p>
49                         -->
50                         <% page->print(); %>
51                         <div style="clear:both;"></div>
52                 </div>
53                 <p class="footer">
54                         Copyright © 2011 Andy Spencer
55                         <% for (int i = 0; footer[i].link; i++) { %>
56                                 | <% print_nav(&footer[i], page); %>
57                         <% } %>
58                 </p>
59         </body> 
60 </html> 
61 <% } %>
62
63 <% /* Normal Pages */ %>
64 <% void print_about(void) { %>
65         <p class="intro">
66                 AWeather is a free/open source application which has been
67                 designed to integrate and visualize high-quality meteorological
68                 data using an interactive Virtual Globe interface suitable for
69                 a wide range of users including weather enthusiasts, academics,
70                 and professionals.
71
72                 It is designed to provide more information than is typically
73                 available from weather widgets and simple desktop applications.
74                 At the same time, it strives to be simpler and easier to use
75                 than existing meteorological software packages such as GEMPAK
76                 and IDV.
77         </p>
78         <hr />
79         
80         <h2>Features</h2>
81         <div class="col">
82                 <h3>Working</h3>
83                 <ul>
84                         <li>High quality data sources<ul>
85                                 <li>Level-II archives</li>
86                                 <li>Conus NEXRAD imagery</li>
87                                 <li>Volume display of dBZ iso surfaces</li>
88                         </ul></li>
89                         <li>Virtual Globe base rendering<ul>
90                                 <li>Including terrain, satellite, and map imagery</li>
91                         </ul></li>
92                         <li>Real-time and offline mode</li>
93                         <li>Auto-updating</li>
94                         <li>Fullscreen mode</li>
95                 </ul>
96         </div>
97         <div class="col">
98                 <h3>Planned</h3>
99                 <ul>
100                         <li>Additional data sources<ul>
101                                 <li>Watch/warning/advisory boxes</li>
102                                 <li>Surface data (temp., humidity, etc)</li>
103                         </ul></li>
104                         <li>Derived NEXRAD data<ul>
105                                 <li>Storm relative motion</li>
106                                 <li>Compost reflective</li>
107                                 <li>Echo tops</li>
108                         </ul></li>
109                         <li>Vertical cross sections</li>
110                         <li>Animation</li>
111                 </ul>
112         </div>
113
114         <div style="clear:both;"></div>
115         <h2>Licencing</h2>
116         <p>AWeather is free software licensed under the terms of the 
117            <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
118            As such, it can be used by any individuals or organizations
119            without any license fees or royalties.</p>
120 <% } %>
121
122 <% void print_news(void) { %>
123         <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p>
124         <dl class="news">
125                 <dt>2011-06-19</dt>
126                 <dd>
127                         AWeather 0.5 released: <ul>
128                                 <li>Support for volume rendering (isosurfaces)</li>
129                                 <li>Automatic updating</li>
130                                 <li>Fullscreen mode</li>
131                                 <li>Dropped GtkGLExt</li>
132                         </ul>
133                         Forked RSL:<ul>
134                                 <li>Added additional radars</li>
135                                 <li>Fixed lots of bugs</li>
136                                 <li>General code cleanup</li>
137                                 <li>Available from <a href="files/">files</a> directory
138                                     and <a href="<%= GW_RSL %>">git</a></li>
139                         </ul>
140                         <b>Update:</b> AWeather 0.5 is also compatible with the
141                         newly released RSL v1.41</li>
142                 </dd>
143
144                 <dt>2011-06-13</dt>
145                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
146                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
147                         <li>Added an option to automatically refresh after a timeout</li>
148                         <li>New fullscreen mode</li>
149                 </ul></dd>
150
151                 <dt>2010-05-17</dt>
152                 <dd>AWeather 0.4.1:<ul>
153                         <li>Win32 fixes and improved debug support</li>
154                         <li>Fix bug with daylight savings time</li>
155                         <li>Function to clear old cache entries</li>
156                 </ul></dd>
157
158                 <dt>2010-05-14</dt>
159                 <dd>AWeather 0.4:<ul>
160                         <li>Conus radar images</li>
161                         <li>Multiple radars support</li>
162                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
163                 </ul></dd>
164
165                 <dt>2009-11-09</dt>
166                 <dd>AWeather 0.3.0 released, based on libgis but still rather
167                     buggy.</dd>
168
169                 <dt>2009-10-24</dt>
170                 <dd>AWeather 0.2.3 (maintenance release).<br/>
171                     Added a Application menu entry and a few build/runtime fixes.</dd>
172
173                 <dt>2009-09-02</dt>
174                 <dd>The source repository has been migrated to Git. A lot of
175                     progress is being made on libgis, which is now able to display
176                     a virtual globe using data from NASA servers.</dd>
177         </dl>
178         <p class="note">See also: AWeather's <a href="<%= GW_AWEATHER %>">gitweb</a></p>
179 <% } %>
180
181 <% void print_screenshots(void) { %>
182         <p>
183                 AWeather provides a consistent user interface that allows the
184                 user to zoom in from a high level view of the entire Earth down
185                 to regional and mesoscale views.
186         </p>
187
188         <ul class="gallery">
189                 <li>
190                         <% print_screen("synop"); %>
191                         High level view using Grits
192                 </li>
193                 <li>
194                         <% print_screen("region"); %>
195                         Regional view over the midwest
196                 </li>
197                 <li>
198                         <% print_screen("meso"); %>
199                         Mesoscale view of a tornadic system
200                 </li>
201                 <li>
202                         <% print_screen("iso"); %>
203                         Close up showing a 52.5 dBZ isosurface
204                 </li>
205         </ul>
206 <% } %>
207
208 <% void print_download(void) { %>
209         <h2>Stable releases</h2>
210         <p class="note">
211                 While AWeather won't be considered stable until version 1.0,
212                 these are as close to stable as you can get until then
213         </p>
214         <ul>
215                 <li class="linux"><dl class="inline">
216                         <dt>Source code</dt>
217                         <dd>
218                         <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
219                         <a href="../grits/grits-<%= VERSION %>.tar.gz">grits-<%= VERSION %>.tar.gz</a>,
220                         <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
221                         </dd>
222
223                         <dt>Gentoo</dt>
224                         <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
225
226                         <dt>Debian</dt>
227                         <dd><a href="debian/<%= VERSION_DEBIAN %>/">.deb files</a>, further packaging in progress</dd>
228                 </dl></li>
229                 <li class="windows"><dl class="inline">
230                         <dt>Windows</dt>
231                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>-gtk.exe">aweather-<%= VERSION_WIN32 %>-gtk.exe</a>
232                                 (Use this if you know what you're doing)</dd>
233
234                         <dt>Without GTK</dt>
235                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a></dd>
236                 </dl></li>
237                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
238                         <dt>Mac OS X</dt>
239                         <dd>Coming soon (Mac OS developer? <a href="/code/issues/1">Help out</a>)</dd>
240                 </dl></li>
241         </ul>
242
243         <h2>Unstable releases</h2>
244         <p class="note">Pre-releases, betas, and other hazardous software</p>
245         <div style="margin-left: 30px;">
246                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
247                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows packages</p>
248         </div>
249
250         <h2>Development code</h2>
251         <p class="note">
252                 Development code is available from Git
253                 (and gitweb:
254                  <a href="<%= GW_AWEATHER %>">AWeather</a>,
255                  <a href="<%= GW_GRITS    %>">Grits</a>, 
256                  <a href="<%= GW_RSL      %>">RSL</a>)
257         </p>
258         <div style="margin-left: 30px;">
259                 <div class="code">git clone <%= GIT_AWEATHER %></div>
260                 <div class="code">git clone <%= GIT_GRITS    %></div>
261                 <div class="code">git clone <%= GIT_RSL      %></div>
262         </div>
263 <% } %>
264
265 <% void print_development(void) { %>
266         <!-- Open source mumbo jumbo.. -->
267
268         <p class="note" style="clear: both;">
269                 The AWeather <a href="<%= WIKI_INDEX %>">development wiki</a>
270                 is the main resource for development material.
271         </p>
272
273         <h2>Bug report and feature requests</h2>
274         <div style="margin-left: 30px;">
275                 <p><a href="<%= BUG_LIST %>">List of current issues</a></p>
276                 <p><a href="<%= BUG_NEW  %>">Add a new issue</a></p>
277         </div>
278
279         <h2>How to contribute?</h2>
280         <ul>
281                 <li>Locate or host Meteorological and Geospatial data feeds</li>
282                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
283                 <li>Test AWeather and submit bug reports</li>
284                 <li>Make better logo!</li>
285         </ul>
286
287         <h2>Architecture Overview</h2>
288         <ul>
289                 <li>Built on top of GObject and GTK+</li>
290                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
291                         <li>Handles most of the graphics work using OpenGL for rendering</li>
292                         <li>Provides some other generic functionality, such as data access</li>
293                         <li>Also provides the plugins API used by AWeather</li>
294                 </ul></li>
295                 <li>AWeather itself is a front-end for Grits along with a
296                     bundle of weather related plugins</li>
297         </ul>
298
299         <h2>Building AWeather</h2>
300         <p class="note">See the <a href="<%= WIKI_INSTALL %>">install</a>
301                 wiki page for more details</p>
302         <ul>
303                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
304                 <li>Currently building and running AWeather requires the
305                     exact same version of Grits to be installed<br />
306                     (This may change in the near future as the software stabilizes)</li>
307         </ul>
308 <% } %>
309
310 <% void print_grits(void) { %>
311         <p>
312                 Grits is a Virtual Globe library developed along side AWeather,
313                 but desigend to be usable by other program as well.
314
315                 It is differentiated from other Virtual Globes such as Google
316                 Earth, NASA World Wind, and KDE Marble in that it is developed
317                 primairily as a library that is used by other programs, such as
318                 AWeather, rather than providing it's own user interface.
319         </p>
320
321         <ul class="gallery">
322                 <li>
323                         <% print_screen("grits"); %>
324                         Grits without any plugins
325
326                 </li>
327                 <li>
328                         <% print_screen("plugins"); %>
329                         Satellite and Environment plugins
330                 </li>
331                 <li>
332                         <% print_screen("terrain"); %>
333                         Elevation plugin showing a mountain
334                 </li>
335         </ul>
336 <% } %>
337
338 <% void print_rsl(void) { %>
339         <h2>Radar Software Library</h2>
340         AWeather has at times needed a custom version of the
341         <a href="<%= RSL_WEB %>">TRMM Radar Software Library</a>
342         for accessing Level-II radar files. However, most of the changes have
343         since been incorporated into RSL Version 1.41, which can also be used
344         with AWeather. Some remaining changes exist though and are mostly
345         related to code organization and compiler warnings.
346
347         <h2>Download</h2>
348         <div class="col">
349                 <h3>NASA/TRMM version</h3>
350                 <ul>
351                         <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
352                         <li><a href="<%= RSL_FTP %>">rsl-v1.41.tar.gz</a></li>
353                 </ul>
354         </div>
355         <div class="col">
356                 <h3>AWeather's version</h3>
357                 <ul>
358                         <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
359                         <li><a href="<%= GW_RSL %>">Gitweb</a></li>
360                         <li><div class="code">git clone <%= GIT_RSL %></div></li>
361                 </ul>
362         </div>
363 <% } %>
364
365 <% /* Footer Pages */ %>
366 <% void print_contact(void) { %>
367         <h1>Contact</h1>
368         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
369         <dl class="inline small">
370                 <dt>Bugs</dt> <dd><a href="<%= BUG_LIST %>">Issue Tracker</a> (sign in to add a new issue)</dd>
371                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
372                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
373         </dl>
374 <% } %>
375
376 <% /* Special Pages */ %>
377 <% void print_index(void) { %>
378         <p class="intro">
379                 AWeather is a free real-time weather data viewer designed for weather enthusiasts.
380                 AWeather is not a weather widget/dockapp that displays a pre-computed forecast.
381                 It is designed to be an easy to use program that integrates a
382                 variety of meteorological data in simple unified interface;
383                 see the <a href="about">about</a> page for more details.
384         </p>
385         <hr />
386         <ul style="float: left;">
387                 <li>Detailed Level-II NEXRAD radar<ul>
388                         <li>3D volume rendering</li>
389                         <li>Dual-pole support</li>
390                 </ul></li>
391                 <li>Online and offline modes<ul>
392                         <li>Data caching</li>
393                         <li>Automatic updating</li>
394                 </ul></li>
395                 <li>Surface and map overlays</li>
396                 <li>Terrain rendering</li>
397         </ul>
398         <div style="float: left; margin-left: 20px;">
399                 <% print_screen("meso"); %>
400         </div>
401         <a href="download" class="download" style="float: right;">
402                 <span>Download</span>
403                 <span>AWeather <%= VERSION %></span>
404                 <img src="images/dl-arrow.png" alt="Download" />
405         </a>
406 <% } %>
407
408 <% void print_notfound(void) { %>
409         <h1>Error 404 - Page Not found!</h1>
410         <br />
411         <p>This page does not exist!
412         <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
413            otherwise, go away</p>
414 <% } %>