-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
368 lines (311 loc) · 17.2 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@RemotePixel" />
<meta name="twitter:title" content="RemotePixel Viewer" />
<meta name="twitter:description" content="A simple and fast Satellite data viewer viewer powered by AWS Lambda" />
<meta name="twitter:creator" content="@_VincentS_" />
<meta name="twitter:image:src" content="https://viewer.remotepixel.ca/img/viewer.jpg" />
<meta property="og:title" content="RemotePixel Viewer" />
<meta property="og:url" content="https://viewer.remotepixel.ca" />
<meta property="og:image" content="https://viewer.remotepixel.ca/img/viewer.jpg" />
<meta property="og:description" content="A simple and fast Satellite data viewer powered by AWS Lambda" />
<meta property="og:site_name" content="RemotePixel" />
<title>RemotePixel Viewer</title>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.js'></script>
<link href="https://api.mapbox.com/mapbox-assembly/v0.20.0/assembly.min.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-assembly/v0.20.0/assembly.js"></script>
<link href="/css/style.css" rel="stylesheet">
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60678866-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="content">
<div class="site-info z5">
<div class="info prose">
<button id='btn-close-help' class='btn-close-help' onclick='showSiteInfo()'>
<svg class='icon icon--l txt-xl'><use xlink:href='#icon-close'/></svg>
</button>
<h2>RemotePixel Viewer</h2>
<p>A simple and fast Landsat-8 and CBERS-4 data viewer powered by AWS Lambda</p>
<img class="img-responsive center" src="img/viewer.jpg">
<h4>HowTo</h4>
<ul>
<li>Click on the blue tile of your choice</li>
<li>Select the image you want to display on bottom list</li>
<li>Change the band combination and the histogram cut on the option pane (top left)</li>
</ul>
<h4>Map Tiles</h4>
<p>Tile served are TOA (Top Of Atmosphere) corrected and rescaled to 0->255 rgb values. Each tile is a direct response of ONE AWS Lambda function.</p>
<p>Landsat True Color RGB (4,3,2) is panshaperpenned and serverd at 15m resolution.</p>
<h4>Info</h4>
<p>Images previews are from Landsat and CBERS <a href="https://aws.amazon.com/fr/public-datasets/" target="_blank">AWS Public Dataset</a>.</p>
<p>This project is powered by Mapbox-GL API and the awesome vector tile technology develloped by <a href="https://mapbox.com" target="_blank">Mapbox</a>.</p>
<p>Want more info about AWS Lambda for raster tile serving, continue reading: <a href="https://blog.mapbox.com/combining-the-power-of-aws-lambda-and-rasterio-8ffd3648c348">Blog post</a> on Mapbox.com</p>
<h4>Public dataset on AWS</h4>
<p>Landsat-8 data available on AWS are in Level <strong>1T</strong>:</p>
<blockquote>
Standard Terrain Correction (Level 1T) -
provides systematic radiometric and geometric accuracy by incorporating ground
control points while employing a Digital Elevation Model (DEM) for topographic accuracy.
Geodetic accuracy of the product depends on the accuracy of the
ground control points and the resolution of the DEM used:
Ground control points used for Level 1T correction are derived from the GLS2000 data set.
DEM sources include SRTM, NED, CDED, DTED, GTOPO 30, and GIMP.
<p>Info: <a href="http://landsat.usgs.gov/Landsat_Processing_Details.php" target="_blank">http://landsat.usgs.gov/</a></p>
</blockquote>
<p>CBERS-4:</p>
<blockquote>
DEMO, more info soon.
</blockquote>
<h4>Create your Own</h4>
<p><strong><a href="https://github.com/remotepixel/remotepixel-tiler">https://github.com/remotepixel/remotepixel-tiler</a></strong></p>
<p><strong><a href="https://github.com/remotepixel/viewer.remotepixel.ca">https://github.com/remotepixel/viewer.remotepixel.ca</a></strong></p>
<h4>Contact</h4>
<p>Questions or comments to <a href="mailto:contact@remotepixel.ca">contact@remotepixel.ca</a></p>
<h4>Thanks</h4>
<div class="thanks-images grid">
<a href="https://www.mapbox.com" target="_blank" class="col col--3 col--offl1 mr6 ml6"><img class="img-responsive" src="img/mapbox.png"></a>
<a href="https://aws.amazon.com/" target="_blank" class="col col--3 mr6 ml6"><img class="img-responsive" src="img/awservice.png"></a>
<a href="https://eox.at/" target="_blank" class="col col--3 mr6 ml6"><img class="img-responsive" src="/img/eox.png"></a>
</div>
<div class="site-version">Version: 2.0</div>
</div>
</div>
<div class="main-pane">
<div id='menu' class='flex-child w180 w240-ml absolute bg-white z2'>
<ul id='toolbar' class='grid'>
<li id='rgb' class="col col--4 active" title="rgb" onclick="switchPane(this)">
<svg class='icon icon--l inline-block'><use xlink:href='#icon-menu'/></svg>
</li>
<li id='band' class="col col--4" title="band" onclick="switchPane(this)">
<svg class='icon icon--l inline-block'><use xlink:href='#icon-minus'/></svg>
</li>
<li id='process' class="col col--4" title="process" onclick="switchPane(this)">
<svg class='icon icon--l inline-block'><use xlink:href='#icon-raster'/></svg>
</li>
</ul>
<div id='menu-content' class='relative'>
<section id='rgb' class="px12 pt12 pb6 active">
<div class='txt-h5 mb12 color-black'>Band Combinations</div>
<div class='select-container wmax-full'>
<select id='rgb-selection' class='select select--s select--stroke wmax-full color-black'>
<option value='4,3,2'>Natural Color (4,3,2)</option>
<option value='7,6,4'>False Color Urban (7,6,4)</option>
<option value='5,4,3'>Color Infrared Vegetation (5,4,3)</option>
<option value='6,5,2'>Agriculture (6,5,2)</option>
<option value='7,6,5'>Atmospheric Penetration (7,6,5)</option>
<option value='5,6,2'>Healthy Vegetation (5,6,2)</option>
<option value='7,5,2'>Forest Burn (7,5,2)</option>
<option value='5,6,4'>Land/Water (5,6,4)</option>
<option value='7,5,3'>Natural With Atmo Removal (7,5,3)</option>
<option value='7,5,4'>Shortwave Infrared (7,5,4)</option>
<option value='5,7,1'>False color 2 (5,7,1)</option>
<option value='6,5,4'>Vegetation Analysis (6,5,4)</option>
<option value='custom'>Custom</option>
</select>
<div class='select-arrow color-black'></div>
</div>
<div id='rgb-buttons' class='align-center px6 py6'>
<div class='select-container'>
<select id='r' disabled class='select select--stroke select--stroke--2 color-red mx3 my3'>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option selected="selected" value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
</select>
</div>
<div class='select-container'>
<select id='g' disabled class='select select--stroke select--stroke--2 color-green mx3 my3'>
<option value="1">01</option>
<option value="2">02</option>
<option value="3" selected="selected">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
</select>
</div>
<div class='select-container'>
<select id='b' disabled class='select select--stroke select--stroke--2 color-blue mx3 my3'>
<option value="1">01</option>
<option value="2" selected="selected">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
</select>
</div>
</div>
<div>
<div class='txt-s mb6 color-black'>Color Formula (<a href="https://github.com/mapbox/rio-color">more info</a>)</div>
<input
id='color-formula-3bands-input'
type='text'
class='input input--border-black'
value='Gamma RGB 3.5 Saturation 1.7 Sigmoidal RGB 15 0.35'
/>
<button id='set-cf' class='btn btn--s btn--stroke mt6 color-black'>Set</button>
</div>
</section>
<section id='band' class="px12 pt12 pb6">
<div class='txt-h5 mb12 color-black'>Band Selection</div>
<div id='band-buttons' class='px6 py6'>
<button onclick='updateBands(this)' value='1' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m active'>01</button>
<button onclick='updateBands(this)' value='2' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>02</button>
<button onclick='updateBands(this)' value='3' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>03</button>
<button onclick='updateBands(this)' value='4' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>04</button>
<button onclick='updateBands(this)' value='5' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>05</button>
<button onclick='updateBands(this)' value='6' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>06</button>
<button onclick='updateBands(this)' value='7' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>07</button>
<button onclick='updateBands(this)' value='8' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>08</button>
<button onclick='updateBands(this)' value='9' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>09</button>
<button onclick='updateBands(this)' value='10' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>10</button>
<button onclick='updateBands(this)' value='11' class='btn btn--stroke btn--stroke--2 mx3 my3 txt-m'>11</button>
</div>
<div>
<div class='txt-s mb6 color-black'>Color Formula (<a href="https://github.com/mapbox/rio-color">more info</a>)</div>
<input
id='color-formula-1band-input'
type='text'
class='input input--border-black'
value='Gamma R 3.5'
/>
<button id='set-cf' class='btn btn--s btn--stroke mt6 color-black'>Set</button>
</div>
</section>
<section id='process' class="px12 pt12 pb6">
<div class='txt-h5 mb12 color-black'>Band ratios</div>
<div class='select-container w-full'>
<select id='ratio-selection' class='select select--s select--stroke w-full color-black'>
<option value="(b5-b4)/(b5+b4)" name="ndvi">NDVI</option>
<option value="(b2-b5)/(b2+b5)" name="ndsi">NDSI</option>
<option value="(b5-b6)/(b5+b6)" name="ndwi">NDWI (Gao)</option>
<option value="(b3-b5)/(b3+b5)" name="ndwi2">NDWI (McFeeters)</option>
<option value="(b1-b2)/(b1+b2)" name="ac-index">AC-Index</option>
</select>
<div class='select-arrow color-black'></div>
</div>
</section>
<hr class='txt-hr'>
<div id='config' class="px12">
<div class='txt-s mt6 color-black'>Contrast</div>
<div id='contrast-range' class='range mr6'>
<input id='contrast-value' type='range' min='-1' max='1' step='0.1' value='0'/>
<span id='contrast-txt' class="txt-m ml3 w18 color-black">0</span>
</div>
<div class='txt-s mt6 color-black'>Saturation</div>
<div id='saturation-range' class='range mr6'>
<input id='saturation-value' type='range' min='-1' max='1' step='0.1' value='0'/>
<span id='saturation-txt' class='txt-m ml3 w18 color-black'>0</span>
</div>
<hr class='txt-hr'>
<div class='txt-s mt6 color-black'>Basemap</div>
<div class='select-container w-full'>
<select id='basemap-selection' class='select select--s select--stroke w-full color-black'>
<option value='sentinel2-cloudless' name="sentinel2_cloudless">EOX Sentinel-2 Cloudless</option>
<option value='VIIRS_SNPP_CorrectedReflectance_TrueColor' name="suomi_true">SUOMI NPP True Color</option>
<option value='MODIS_Terra_CorrectedReflectance_TrueColor' name="terra_true">MODIS Terra True Color</option>
<option value='MODIS_Aqua_CorrectedReflectance_TrueColor' name="aqua_true">MODIS Aqua True Color</option>
<option value='VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1' name="suomi_false">SUOMI NPP Bands M11-I2-I1</option>
<option value='MODIS_Terra_CorrectedReflectance_Bands721' name="terra_false">MODIS Terra Bands 7-2-1</option>
<option value='MODIS_Aqua_CorrectedReflectance_Bands721' name="aqua_false">MODIS Aqua Bands 7-2-1</option>
<option value='VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11' name="suomi_false2">SUOMI NPP Bands M3-I3-I11</option>
<option value='MODIS_Terra_CorrectedReflectance_Bands367' name="terra_false">MODIS Terra Bands 3-6-7'</option>
</select>
<div class='select-arrow color-black'></div>
</div>
</div>
</div>
<button id='btn-hide'>
<svg id='left' class='icon'><use xlink:href='#icon-arrow-left'/></svg>
<!-- <svg id='right' class='icon none'><use xlink:href='#icon-arrow-right'/></svg> -->
</button>
</div>
<div id="map" class="map">
<div class="map-top-right z2">
<div id='satellite-toggle' class='toggle-group txt-m mr18 bg-gray-faint'>
<label class='toggle-container'>
<input sat="landsat" checked name='toggle-sat' type='radio' />
<div class='toggle color-gray-dark-on-hover'>Landsat</div>
</label>
<label class='toggle-container'>
<input sat="cbers" name='toggle-sat' type='radio' />
<div class='toggle color-gray-dark-on-hover'>CBERS</div>
</label>
</div>
</div>
<div class="map-bottom-right z1 bg-darken25">
<button id='btn-clear' class='shadow-darken10-bold-on-hover bg-gray-dark-on-hover round none'>
<svg class='icon icon--l'><use xlink:href='#icon-close'/></svg>
</button>
<button id='btn-text' title='toggle place' class='shadow-darken10-bold-on-hover bg-gray-dark-on-hover round none'>
<svg class='icon icon--l'><use xlink:href='#icon-font'/></svg>
</button>
<button id="dl" class='shadow-darken10-bold-on-hover bg-gray-dark-on-hover round none'>
<svg class='icon icon--l'><use xlink:href='#icon-picture'/></svg>
</button>
<button id='btn-info' class='shadow-darken10-bold-on-hover bg-gray-dark-on-hover round' onclick='showSiteInfo()'>
<svg class='icon icon--l'><use xlink:href='#icon-question'/></svg>
</button>
</div>
<div class="scenes-info none z5">
<span class="id"></span>
<span class="date"></span>
<span class="url"></span>
</div>
<div class="loading-map z3">
<div class="middle-center">
<span>Loading</span>
<div class="round animation-spin animation--infinite animation--speed-1">
<svg class='icon icon--l inline-block'><use xlink:href='#icon-satellite'/></svg>
</div>
</div>
</div>
<span class="metaloader off z5">
<div class="round animation-spin animation--infinite animation--speed-1">
<svg class='icon icon--l color-blue inline-block'><use xlink:href='#icon-satellite'/></svg>
</div>
</span>
<span class="errorMessage none z5">
<svg class='icon icon--l inline-block'><use xlink:href='#icon-alert'/></svg>
<span >Error</span>
</span>
<div class='img-over-info z5'></div>
</div>
<span id='nodata-error' class="middle-center color-white txt-m none">No image found, Please select another tile</span>
<ul class="list-img none"></ul>
</div>
</div>
<script type="text/javascript" src='https://code.jquery.com/jquery-3.2.1.min.js'></script>
<script type="text/javascript" src='https://npmcdn.com/@turf/turf/turf.min.js'></script>
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.3/moment.min.js'></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/canvas-toblob/0.1/canvas-toBlob.min.js"></script>
<script type="text/javascript" src="//cdn.rawgit.com/eligrey/FileSaver.js/1.3.3/FileSaver.min.js"></script>
<script type="text/javascript" src="/js/app.js" charset="utf-8"></script>
</body>
</html>