]> Pileus Git - ~andy/aweather-web/blob - html.ct
149e2a5f12b8aca77f9651c8f707e5ae24fb06b6
[~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 advanced 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         <h2>Licencing</h2>
80         <p>AWeather is free software licensed under the terms of the 
81            <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
82            As such, it can be used by any individuals or organizations
83            without any license fees or royalties.</p>
84         
85         <h2>Features</h2>
86         <div class="col">
87                 <h3>Working</h3>
88                 <ul>
89                         <li>High quality data sources<ul>
90                                 <li>Level-II archives</li>
91                                 <li>Conus NEXRAD imagery</li>
92                                 <li>Volume display of dBZ iso surfaces</li>
93                         </ul></li>
94                         <li>Virtual Globe base rendering<ul>
95                                 <li>Including terrain, satellite, and map imagery</li>
96                         </ul></li>
97                         <li>Real-time and offline mode</li>
98                         <li>Auto-updating</li>
99                         <li>Fullscreen mode</li>
100                 </ul>
101         </div>
102         <div class="col">
103                 <h3>Planned</h3>
104                 <ul>
105                         <li>Additional data sources<ul>
106                                 <li>Watch/warning/advisory boxes</li>
107                                 <li>Surface data (temp., humidity, etc)</li>
108                         </ul></li>
109                         <li>Derived NEXRAD data<ul>
110                                 <li>Storm relative motion</li>
111                                 <li>Compost reflective</li>
112                                 <li>Echo tops</li>
113                         </ul></li>
114                         <li>Vertical cross sections</li>
115                         <li>Animation</li>
116                 </ul>
117         </div>
118 <% } %>
119
120 <% void print_news(void) { %>
121         <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p>
122         <dl class="news">
123                 <dt>2011-06-19</dt>
124                 <dd>
125                         AWeather 0.5 released: <ul>
126                                 <li>Support for volume rendering (isosurfaces)</li>
127                                 <li>Automatically update</li>
128                                 <li>Fullscreen mode</li>
129                                 <li>Dropped GtkGLExt</li>
130                         </ul>
131                         Forked RSL:<ul>
132                                 <li>Added additional radars</li>
133                                 <li>Fixed lots of bugs</li>
134                                 <li>General code cleanup</li>
135                                 <li>Available from <a href="files/">files</a> directory
136                                     and <a href="/git/?p=~spenceal/rsl">git</a></li>
137                         </ul>
138                         <b>Update:</b> AWeather 0.5 is also compatible with the
139                         newly released RSL v1.41</li>
140                 </dd>
141
142                 <dt>2011-06-13</dt>
143                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
144                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
145                         <li>Added an option to automatically refresh after a timeout</li>
146                         <li>New fullscreen mode</li>
147                 </ul></dd>
148
149                 <dt>2010-05-17</dt>
150                 <dd>AWeather 0.4.1:<ul>
151                         <li>Win32 fixes and improved debug support</li>
152                         <li>Fix bug with daylight savings time</li>
153                         <li>Function to clear old cache entries</li>
154                 </ul></dd>
155
156                 <dt>2010-05-14</dt>
157                 <dd>AWeather 0.4:<ul>
158                         <li>Conus radar images</li>
159                         <li>Multiple radars support</li>
160                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
161                 </ul></dd>
162
163                 <dt>2009-11-09</dt>
164                 <dd>AWeather 0.3.0 released, based on libgis but still rather
165                     buggy.</dd>
166
167                 <dt>2009-10-24</dt>
168                 <dd>AWeather 0.2.3 (maintenance release).<br/>
169                     Added a Application menu entry and a few build/runtime fixes.</dd>
170
171                 <dt>2009-09-02</dt>
172                 <dd>The source repository has been migrated to Git. A lot of
173                     progress is being made on libgis, which is now able to display
174                     a virtual globe using data from NASA servers.</dd>
175         </dl>
176         <p class="note">See also: AWeather's <a href="/git/?p=proj/aweather">gitweb</a></p>
177 <% } %>
178
179 <% void print_screenshots(void) { %>
180         <p>
181                 AWeather provides a consistent user interface that allows the
182                 user to zoom in from a high level view of the entire Earth down
183                 to regional and microscale views.
184         </p>
185         <hr />
186         <ul class="gallery">
187                 <li>
188                         <% print_screen("synop"); %>
189                         High level view using grits
190                 </li>
191                 <li>
192                         <% print_screen("region"); %>
193                         Regional view of a storm front
194                 </li>
195                 <li>
196                         <% print_screen("meso"); %>
197                         Mesoscale view of a tornadic system
198                 </li>
199                 <li>
200                         <% print_screen("iso"); %>
201                         Close up showing a 52.5 dBZ isosurface
202                 </li>
203         </ul>
204 <% } %>
205
206 <% void print_download(void) { %>
207         <h2>Stable releases</h2>
208         <p class="note">
209                 While AWeather won't be considered stable until version 1.0,<br />
210                 these are as close to stable as you can get until then
211         </p>
212         <ul>
213                 <li class="linux"><dl class="inline">
214                         <dt>Source code</dt>
215                         <dd>
216                         <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
217                         <a href="../grits/grits-<%= VERSION %>.tar.gz">grits-<%= VERSION %>.tar.gz</a>,
218                         <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
219                         </dd>
220
221                         <dt>Gentoo</dt>
222                         <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
223
224                         <dt>Debian</dt>
225                         <dd>Packaging in progress, check back soon</dd>
226                 </dl></li>
227                 <li class="windows"><dl class="inline">
228                         <dt>Windows</dt>
229                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>-gtk.exe">aweather-<%= VERSION_WIN32 %>-gtk.exe</a></dd>
230
231                         <dt>Without GTK</dt>
232                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a>
233                                 (Use this if you know what you're doing)</dd>
234                 </dl></li>
235                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
236                         <dt>Mac OS X</dt>
237                         <dd>Coming soon (hopefully)</dd>
238                 </dl></li>
239         </ul>
240
241         <h2>Unstable releases</h2>
242         <p class="note">Pre-releases, betas, and other hazardous software</p>
243         <div style="margin-left: 30px;">
244                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
245                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows packages</p>
246         </div>
247
248         <h2>Development code</h2>
249         <p class="note">
250                 Development code is available from Git, and gitweb
251                 (<a href="/git/?p=proj/aweather">AWeather</a>,
252                  <a href="/git/?p=proj/grits">Grits</a>, 
253                  <a href="/git/?p=~spenceal/rsl">RSL</a>)
254         </p>
255         <div style="margin-left: 30px;">
256                 <div class="code">git clone git://lug.rose-hulman.edu/proj/aweather</div>
257                 <div class="code">git clone git://lug.rose-hulman.edu/proj/grits</div>
258                 <div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div>
259         </div>
260 <% } %>
261
262 <% void print_development(void) { %>
263         <!-- Open source mumbo jumbo.. -->
264
265         <p class="note" style="clear: both;">
266                 The AWeather <a href="/code/projects/aweather/wiki">development wiki</a>
267                 is the main resource for development material.
268         </p>
269
270         <h2>Bug report and feature requests</h2>
271         <div style="margin-left: 30px;">
272                 <p><a href="/code/projects/aweather/issues">List of current issues</a></p>
273                 <p><a href="/code/projects/aweather/issues/new">Add a new issue</a></p>
274         </div>
275
276         <h2>How to contribute?</h2>
277         <ul>
278                 <li>Locate or host Meteorological and Geospatial data feeds</li>
279                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
280                 <li>Test AWeather and submit bug reports</li>
281                 <li>Make better logo!</li>
282         </ul>
283
284         <h2>Architecture Overview</h2>
285         <ul>
286                 <li>Built on top of GObject and GTK+</li>
287                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
288                         <li>Handles most of the graphics work using OpenGL for rendering</li>
289                         <li>Provides some other generic functionality, such as data access</li>
290                         <li>Also provides the plugins API used by AWeather</li>
291                 </ul></li>
292                 <li>AWeather itself is a front-end for grits along with a
293                     bundle of weather related plugins</li>
294         </ul>
295
296         <h2>Building AWeather</h2>
297         <p class="note">See the <a href="code/projects/aweather/wiki/Install">install</a>
298                 wiki page for more details</p>
299         <ul>
300                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
301                 <li>Currently building and running AWeather will require the
302                     exact same version of Grits to be installed<br />
303                     (This may change in the near future as the software stabilizes)</li>
304         </ul>
305 <% } %>
306
307 <% void print_grits(void) { %>
308         <p>Grits is a Virtual Globe library developed along side AWeather, but
309            can be used by other programs as well.</p>
310         <p>It is differentiated from other Virtual Globes such as Google Earth,
311            NASA World Wind, and KDE Marble in that it is developed as a library
312            that is used by other programs, such as AWeather, rather than
313            providing a user interface that is used directly.</p>
314         <hr />
315         <ul class="gallery">
316                 <li>
317                         <% print_screen("grits"); %>
318                         Grits without any plugins
319
320                 </li>
321                 <li>
322                         <% print_screen("plugins"); %>
323                         Satellite and Environment plugins
324                 </li>
325                 <li>
326                         <% print_screen("terrain"); %>
327                         Elevation plugin showing a mountain
328                 </li>
329         </ul>
330 <% } %>
331
332 <% void print_rsl(void) { %>
333         <h2>Radar Software Library</h2>
334         AWeather has at times needed a custom version of the
335         <a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/">TRMM Radar Software Library</a>
336         for accessing Level-II radar files. However, most of the changes have
337         since been incorporated into RSL Version 1.41, which can also be used
338         with AWeather. Some remaining changes exist though and are mostly
339         related to code organization and fixing compiler warnings.
340
341         <h2>Download</h2>
342         <div class="col">
343                 <h3>NASA/TRMM version</h3>
344                 <ul>
345                         <li><a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/">TRMM RSL Website</a></li>
346                         <li><a href="ftp://trmm-fc.gsfc.nasa.gov/software/rsl-v1.41.tar.gz">rsl-v1.41.tar.gz</a></li>
347                 </ul>
348         </div>
349         <div class="col">
350                 <h3>AWeather's version</h3>
351                 <ul>
352                         <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
353                         <li><a href="/git/?p=~spenceal/rsl">Gitweb</a></li>
354                         <li><div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div></li>
355                 </ul>
356         </div>
357 <% } %>
358
359 <% /* Footer Pages */ %>
360 <% void print_contact(void) { %>
361         <h1>Contact</h1>
362         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
363         <dl class="inline small">
364                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
365                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
366         </dl>
367 <% } %>
368
369 <% /* Special Pages */ %>
370 <% void print_index(void) { %>
371         <p class="intro">
372                 AWeather is a free advanced weather data viewer designed for weather enthusiasts.
373                 AWeather is not a simple weather widget/dockapp that displays a pre-computed forecast.
374                 It is designed to be an easy to use program that integrates a
375                 variety of weather data in simple unified interface;
376                 see the <a href="about">about</a> page for more details.
377         </p>
378         <hr />
379         <ul style="float: left;">
380                 <li>Detailed Level-II NEXRAD radar<ul>
381                         <li>3D volume rendering</li>
382                         <li>Dual-pole support</li>
383                 </ul></li>
384                 <li>Online and offline modes<ul>
385                         <li>Data caching</li>
386                         <li>Automatic updating</li>
387                 </ul></li>
388                 <li>Surface and map overlays</li>
389                 <li>Terrain rendering</li>
390         </ul>
391         <div style="float: left; margin-left: 20px;">
392                 <% print_screen("meso"); %>
393         </div>
394         <a href="download" class="download" style="float: right;">
395                 <span>Download</span>
396                 <span>AWeather <%= VERSION %></span>
397                 <img src="images/dl-arrow.png" alt="Download" />
398         </a>
399 <% } %>
400
401 <% void print_notfound(void) { %>
402         <h1>404 - Not found</h1>
403 <% } %>