62 menue = [ |
62 menue = [ |
63 ('/ozoneloss', _(u'Ozoneloss'), |
63 ('/ozoneloss', _(u'Ozoneloss'), |
64 (('/ozoneloss', _(u'overview')), |
64 (('/ozoneloss', _(u'overview')), |
65 ('/ozoneloss/clams/2020', _(u'calculations')), |
65 ('/ozoneloss/clams/2020', _(u'calculations')), |
66 ('/ozoneloss/vpsc/2020', _(u'estimations')), |
66 ('/ozoneloss/vpsc/2020', _(u'estimations')), |
|
67 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')), |
67 ('/ozoneloss/uvi', _(u'uv increase')), |
68 ('/ozoneloss/uvi', _(u'uv increase')), |
68 ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')))), |
69 ('/ozoneloss/decadal', _(u'decadal')))), |
69 ('/eskp', _(u'ESKP'), (None, None)), |
70 ('/eskp', _(u'ESKP'), (None, None)), |
70 ('/iek-7', _(u'IEK-7'), (None, None)) |
71 ('/iek-7', _(u'IEK-7'), (None, None)) |
71 ] |
72 ] |
72 return menue |
73 return menue |
73 |
74 |
189 content = get_content(filename) |
190 content = get_content(filename) |
190 return render_template("/ozoneloss_uvmap.html", act="ozoneloss/uvmap/%s" % date, content=content, date=date) |
191 return render_template("/ozoneloss_uvmap.html", act="ozoneloss/uvmap/%s" % date, content=content, date=date) |
191 |
192 |
192 |
193 |
193 @app.route('/ozoneloss/vpsc/<year>') |
194 @app.route('/ozoneloss/vpsc/<year>') |
194 def ozoneloss_vspc_year(year): |
195 def ozoneloss_vpsc_year(year): |
195 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
196 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
196 content = get_content(filename) |
197 content = get_content(filename) |
197 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
198 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
198 explanation = get_content(filename) |
199 explanation = get_content(filename) |
199 |
200 |
280 content = get_content(filename) |
281 content = get_content(filename) |
281 return render_template("/ozoneloss_uvmap.html", act="ozoneloss/uvmap", content=content) |
282 return render_template("/ozoneloss_uvmap.html", act="ozoneloss/uvmap", content=content) |
282 |
283 |
283 |
284 |
284 @app.route("/ozoneloss/vpsc") |
285 @app.route("/ozoneloss/vpsc") |
285 def ozoneloss_vspc(): |
286 def ozoneloss_vpsc(): |
286 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
287 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
287 content = get_content(filename) |
288 content = get_content(filename) |
288 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content) |
289 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content) |
289 |
290 |
290 |
291 |
321 |
322 |
322 figname = "uvincr_lat%0.3i_do3%0.3i.svg" % (lat, float(o3offsetstr)) |
323 figname = "uvincr_lat%0.3i_do3%0.3i.svg" % (lat, float(o3offsetstr)) |
323 |
324 |
324 return render_template('graph.html', act="ozoneloss_uvi_graph", content=content, figname=figname, |
325 return render_template('graph.html', act="ozoneloss_uvi_graph", content=content, figname=figname, |
325 o3offsetstr=o3offsetstr, latstr=latstr) |
326 o3offsetstr=o3offsetstr, latstr=latstr) |
|
327 |
|
328 @app.route("/ozoneloss/decadal") |
|
329 def ozoneloss_decadal(): |
|
330 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_decadal.rst") |
|
331 content = get_content(filename) |
|
332 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_decadal_bottom.rst") |
|
333 explanation = get_content(filename) |
|
334 |
|
335 return render_template("/ozoneloss_decadal.html", act="ozoneloss_decadal", content=content, |
|
336 content_explanation=explanation) |
|
337 |
326 |
338 |
327 |
339 |
328 @app.route("/iek-7") |
340 @app.route("/iek-7") |
329 def institute(): |
341 def institute(): |
330 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |
342 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |