]> Pileus Git - ~andy/aweather-web/blob - html.ct
Update for 0.5
[~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.png" 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                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
27                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
28                 <link rel="shortcut icon" href="images/aweather.ico" />
29                 <link href="data/global.css" rel="stylesheet" type="text/css" />
30         </head> 
31         <body> 
32                 <div class="top">
33                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
34                         <h1 class="title"><a href=".">AWeather</a></h1>
35                         <h2 class="nav">
36                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
37                                 <span class="sep"></span>
38                                 <% print_nav(&grits[0], page); %>
39                         </h2>
40                 </div>
41                 <div class="content">
42                         <!--
43                                 <p class="msg">This site is currently under construction.</p>
44                                 <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>
45                         -->
46                         <% page->print(); %>
47                         <div style="clear:both;"></div>
48                 </div>
49                 <p class="footer">
50                         Copyright © 2011 Andy Spencer
51                         <% for (int i = 0; footer[i].link; i++) { %>
52                                 | <% print_nav(&footer[i], page); %>
53                         <% } %>
54                 </p>
55         </body> 
56 </html> 
57 <% } %>
58
59 <% /* Normal Pages */ %>
60 <% void print_about(void) { %>
61         <p class="intro">
62                 AWeather is a free/open source application which has been
63                 designed to integrate and visualize high-quality meteorological
64                 data using an interactive Virtual Globe interface suitable for
65                 a wide range of users including weather enthusiasts, academics,
66                 and professionals.
67
68                 It is designed to provide more information than is typically
69                 available from weather widgets and simple desktop applications.
70                 At the same time, it strives to be simpler and easier to use
71                 than existing meteorological software packages such as GEMPAK
72                 and IDV.
73         </p>
74         <hr />
75         <h2>Features</h2>
76         <ul>
77                 <li>High quality data sources
78                     (Level-II archive, etc)</li>
79                 <li>3D Volume browser</li>
80                 <li>Storm motion animations (todo)</li>
81                 <li>API for algorithms
82                     (vortex/hail signatures, rain-rate, etc)
83                     (todo)</li>
84                 <li>Other? (open to suggestions)</li>
85         </ul>
86
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</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         <h3>Planned</h3>
102         <ul>
103                 <li>Vertical cross sections</li>
104                 <li>Derived NEXRAD data (storm relative motion, echo tops, compost reflective, etc)</li>
105                 <li>Additional data sources (watch/warning boxes, surface data, etc)</li>
106                 <li>Animation</li>
107         </ul>
108 <% } %>
109
110 <% void print_news(void) { %>
111         <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p>
112         <dl class="news">
113                 <dt>2011-06-19</dt>
114                 <dd>
115                         AWeather 0.5 released: <ul>
116                                 <li>Support for volume rendering (isosurfaces)</li>
117                                 <li>Automatically update</li>
118                                 <li>Fullscreen mode</li>
119                                 <li>Dropped GtkGLExt</li>
120                         </ul>
121                         Forked RSL:<ul>
122                                 <li>Added additional radars</li>
123                                 <li>Fixed lots of bugs</li>
124                                 <li>General code cleanup</li>
125                                 <li>Available from <a href="files/">files</a> directory
126                                     and <a href="/git/?p=~spenceal/rsl">git</a></li>
127                         </ul>
128                 </dd>
129
130                 <dt>2011-06-13</dt>
131                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
132                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
133                         <li>Added an option to automatically refresh after a timeout</li>
134                         <li>New fullscreen mode</li>
135                 </ul></dd>
136
137                 <dt>2010-05-17</dt>
138                 <dd>AWeather 0.4.1:<ul>
139                         <li>Win32 fixes and improved debug support</li>
140                         <li>Fix bug with daylight savings time</li>
141                         <li>Function to clear old cache entries</li>
142                 </ul></dd>
143
144                 <dt>2010-05-14</dt>
145                 <dd>AWeather 0.4:<ul>
146                         <li>Conus radar images</li>
147                         <li>Multiple radars support</li>
148                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
149                 </ul></dd>
150
151                 <dt>2009-11-09</dt>
152                 <dd>AWeather 0.3.0 released, based on libgis but still rather
153                     buggy.</dd>
154
155                 <dt>2009-10-24</dt>
156                 <dd>AWeather 0.2.3 (maintenance release).<br/>
157                     Added a Application menu entry and a few build/runtime fixes.</dd>
158
159                 <dt>2009-09-02</dt>
160                 <dd>The source repository has been migrated to Git. A lot of
161                     progress is being made on libgis, which is now able to display
162                     a virtual globe using data from NASA servers.</dd>
163         </dl>
164         <p class="note">See also: AWeather's <a href="/git/?p=proj/aweather">gitweb</a></p>
165 <% } %>
166
167 <% void print_screenshots(void) { %>
168         <p>
169                 AWeather provides a consistent user interface that allows the
170                 user to zoom in from a high level view of the entire Earth down
171                 to regional and microscale views.
172         </p>
173         <ul class="gallery">
174                 <li>
175                         <% print_screen("synop"); %>
176                         High level view using grits
177                 </li>
178                 <li>
179                         <% print_screen("region"); %>
180                         Regional view of a storm front
181                 </li>
182                 <li>
183                         <% print_screen("meso"); %>
184                         Mesoscale view of a tornadic system
185                 </li>
186                 <li>
187                         <% print_screen("iso"); %>
188                         Close up showing a 52.5 dBZ isosurface
189                 </li>
190         </ul>
191 <% } %>
192
193 <% void print_download(void) { %>
194         <h2>Stable releases</h2>
195         <p class="note">
196                 While AWeather won't be considered stable until version 1.0,<br />
197                 these are as close to stable as you can get until then
198         </p>
199         <ul>
200                 <li class="linux"><dl class="inline">
201                         <dt>Source code</dt>
202                         <dd><a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a></dd>
203
204                         <dt>Gentoo</dt>
205                         <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
206
207                         <dt>Debian</dt>
208                         <dd>Packaging in progress, check back soon</dd>
209                 </dl></li>
210                 <li class="windows"><dl class="inline">
211                         <dt>Windows</dt>
212                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>-gtk.exe">aweather-<%= VERSION_WIN32 %>-gtk.exe</a></dd>
213
214                         <dt>Without GTK</dt>
215                         <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a> (Use this if you know what you're doing)</dd>
216                 </dl></li>
217                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
218                         <dt>Mac OSX</dt>
219                         <dd>Coming soon (hopefully)</dd>
220                 </dl></li>
221         </ul>
222
223         <h2>Unstable releases</h2>
224         <p class="note">Pre-releases, betas, and other hazardous software</p>
225         <div style="margin-left: 30px;">
226                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
227                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows packages</p>
228         </div>
229
230         <h2>Development code</h2>
231         <p class="note">
232                 Development code is available from Git, and gitweb
233                 (<a href="/git/?p=proj/aweather">AWeather</a>,
234                  <a href="/git/?p=proj/grits">Grits</a>, 
235                  <a href="/git/?p=~spenceal/rsl">RSL</a>)
236         </p>
237         <div style="margin-left: 30px;">
238                 <div class="code">git clone git://lug.rose-hulman.edu/proj/aweather</div>
239                 <div class="code">git clone git://lug.rose-hulman.edu/proj/grits</div>
240                 <div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div>
241         </div>
242 <% } %>
243
244 <% void print_development(void) { %>
245         <!-- Open source mumbo jumbo.. -->
246
247         <p class="note" style="clear: both;">
248                 The AWeather <a href="/code/projects/aweather/wiki">development wiki</a>
249                 is the main resource for development material.
250         </p>
251
252         <h2>Bug report and feature requests</h2>
253         <div style="margin-left: 30px;">
254                 <p><a href="/code/projects/aweather/issues">List of current issues</a></p>
255                 <p><a href="/code/projects/aweather/issues/new">Add a new issue</a></p>
256         </div>
257
258         <h2>How to contribute?</h2>
259         <ul>
260                 <li>Locate or host Meteorological and Geospatial data feeds</li>
261                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
262                 <li>Test AWeather and submit bug reports</li>
263                 <li>Make better logo!</li>
264         </ul>
265
266         <h2>Architecture Overview</h2>
267         <ul>
268                 <li>Built on top of GObject and GTK+</li>
269                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
270                         <li>Handles most of the graphics work using OpenGL for rendering</li>
271                         <li>Provides some other generic functionality, such as data access</li>
272                         <li>Also provides the plugins API used by AWeather</li>
273                 </ul></li>
274                 <li>AWeather itself is a front-end for grits along with a
275                     bundle of weather related plugins</li>
276         </ul>
277
278         <h2>Building AWeather</h2>
279         <p class="note">See the <a href="code/projects/aweather/wiki/Install">install</a> wiki page for more details</p>
280         <ul>
281                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
282                 <li>Currently building and running AWeather will require the
283                     exact same version of Grits to be installed<br />
284                     (This may change in the near future as the software stabilizes)</li>
285         </ul>
286 <% } %>
287
288 <% void print_grits(void) { %>
289         <p>Grits is a Virtual Globe library developed along side AWeather, but
290            can be used by other programs as well.</p>
291         <p>It is differentiated from other Virtual Globes such as Google Earth,
292            NASA World Wind, and KDE Marble in that it is developed as a library
293            that is used by other programs, such as AWeather, rather than
294            providing a user interface that is used directly.</p>
295         <hr />
296         <ul class="gallery">
297                 <li>
298                         <% print_screen("grits"); %>
299                         Grits without any plugins
300
301                 </li>
302                 <li>
303                         <% print_screen("plugins"); %>
304                         Satellite and Environment plugins
305                 </li>
306                 <li>
307                         <% print_screen("terrain"); %>
308                         Elevation plugin showing a mountain
309                 </li>
310         </ul>
311 <% } %>
312
313 <% /* Footer Pages */ %>
314 <% void print_contact(void) { %>
315         <h1>Contact</h1>
316         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
317         <dl class="inline small">
318                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
319                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
320         </dl>
321 <% } %>
322
323 <% /* Special Pages */ %>
324 <% void print_index(void) { %>
325         <p class="intro">
326                 AWeather is designed to be an advanced weather program which is
327                 designed to be used by weather enthusiasts. AWeather is not
328                 another weather dockapp that displays a pre-computed forecast.
329                 It is designed to be an easy to use program that integrates a
330                 variety of weather data in simple unified interface; see
331                 <a href="features">features</a> for more details.
332         </p>
333         <hr />
334         <div class="buttons">
335                 <a class="download" href="download">
336                         <span>Download</span>
337                         <span>AWeather <%= VERSION %></span>
338                         <img src="images/dl-arrow.png" alt="Download" />
339                 </a>
340         </div>
341         <% print_screen("meso"); %>
342         <ul>
343                 <li>Detailed Level-II radar<ul>
344                         <li>3D volume rendering</li>
345                         <li>Dual-pole support</li>
346                 </ul></li>
347                 <li>Online and offline modes<ul>
348                         <li>Data caching</li>
349                         <li>Automatic updating</li>
350                 </ul></li>
351                 <li>Surface and map overlays</li>
352                 <li>Terrain rendering</li>
353         </ul>
354 <% } %>
355
356 <% void print_notfound(void) { %>
357         <h1>404 - Not found</h1>
358 <% } %>