-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_snow.html
32 lines (31 loc) · 1.28 KB
/
global_snow.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@5"></script>
<title>Global Snow</title>
</head>
<body>
<title>Global snow pack in February 2019</title>
</head>
<h5>Hypothesis: Data obtained from NASA's Moderate Resolution Imaging Spectroradiometer (MODIS)<br> is too coarse for use at the mountain range scale in the continental US.</h5><br> <br>
<div id="global_raster"></div>
<div id="continental_raster"></div>
<script>
vega.scheme('brett_palette', ['#e0b0a4', '#c872f3', '#6582f5', '#5febff']);
const plot_spec = "hw2/raster_plot.vg.json";
vegaEmbed("#global_raster", plot_spec)
// result.view provides access to the Vega View API
.then(result => console.log(result))
.catch(console.warn);
const plot_spec_mt = "hw2/MT_snow_raster_plot.vg.json";
vegaEmbed("#continental_raster", plot_spec_mt)
// result.view provides access to the Vega View API
.then(result => console.log(result))
.catch(console.warn);
</script>
<p style="font-size: 12px">
NC4 data for global average snowpack in February 2019 obtained <a href="https://portal.nccs.nasa.gov/datashare/">here:</a></p>
</body>
</html>