-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
96 lines (74 loc) · 3.84 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<title>Cloud frequency map</title>
<meta charset="utf-8">
<!-- Support for browsers on mobile phones. -->
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no">
<!-- Google Web Fonts. -->
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed'
rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lobster'
rel='stylesheet' type='text/css'>
<!-- Custom CSS styles for our application. -->
<link rel="stylesheet" href="/static/style.css">
<!-- The Google JavaScript loader tool (for the Maps, Charts APIs). -->
<script src="https://www.google.com/jsapi"></script>
<!-- Our custom JavaScript for Trendy Lights. -->
<script src="/static/script.js"></script>
</head>
<body>
<!-- The DOM of our application. -->
<div class="cloudfrequency">
<input id="pac-input" class="controls" type="text" placeholder="Search...">
<!-- A container which the Maps API will populate with a map. -->
<div class="map"></div>
<!-- The panel to show details about a place. -->
<div class="panel">
<!-- The button to toggle the panel expanded/collapsed. Mobile-only. -->
<div class="toggler">toggle</div>
<!-- The button to close the panel. Desktop-only. -->
<div class="close">close</div>
<!-- The title of the place for which details are being shown. -->
<h2 class="title"></h2>
<!-- A scrollable container for details about the polygon. -->
<div class="details">
<!-- A container which the Charts API will populate. -->
<div class="chart"></div>
<!-- The link to the polygon's Wikipedia page. -->
<a class="wiki-url">Wikipedia article</a>
<!-- The element to hold the error message. -->
<p class="error"></p>
</div>
</div>
<a href="https://earthengine.google.org">
<img class="powered-by-ee"
alt="Powered by Google Earth Engine"
src="/static/google_earthengine_powered_400px.png">
</a>
<a class='info-link' id='info' href='#'>Info</a>
<div class="messagepop pop">
<p><b>Cloud Frequency Map</b></p>
<p>This is a map showing cloud frequency over 2017, as measured by the <a href="https://en.wikipedia.org/wiki/Moderate-Resolution_Imaging_Spectroradiometer">MODIS</a> satellite sensor. A cloud frequency value of 20% means that the MODIS pixel was marked as cloudy (by the MODIS cloud masking algorithm, specifically the MOD09GA <tt>state_1km</tt> variable) for 20% of the days in 2017.<p>
<p>The colour shows the range of cloudiness from very cloudy (red) to very clear (green). Click anywhere on the map to get a cloudiness percentage for that location. (If nothing happens when you click then wait a few seconds, the statistics are calculated on the fly and sometimes take a while to be processed).</p>
<p>This webapp was created by <a href="http://www.rtwilson.com">Robin Wilson</a> using <a href="http://earthengine.google.org/">Google Earth Engine</a> and <a href="https://cloud.google.com/appengine/docs">Google App Engine</a>.
</div>
</div>
<!-- Boot our JavaScript once the body has loaded. -->
<script>
cloudfrequency.boot(
'{{ eeMapId | safe }}',
'{{ eeToken | safe }}',
'{{ serializedPolygonIds | safe }}');
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53911609-4', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>