-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpast-snow.html
218 lines (179 loc) · 7.8 KB
/
past-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
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
<!DOCTYPE html>
<html lang="en">
<title>Historic Snow Extent</title>
<head>
<link REL="SHORTCUT ICON" href="static/favicon.ico" type="image/x-icon">
<link rel="icon" href="static/favicon.ico" type="image/x-icon">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--common frameworks -->
<script rel="javascript" src="./static/js/jquery-3.6.4.min.js"></script>
<script rel="javascript" src="./static/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--own styles-->
<link rel="stylesheet" href="./static/css/style.css">
<link rel="stylesheet" href="./static/css/nav.css">
<script rel="javascript" src="./static/js/functions.js"></script>
<script>
$(document).ready( function() {
checkAppearance();
});
</script>
</head>
<body>
<header>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg fixed-top">
<a class="nav-item nav-button favicon" href="index.html"><img src="./static/favicon.ico"> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar" aria-controls="collapsibleNavbar">
<span class="navbar-toggler-icon navbar-dark"></span>
</button>
<div class="container-fluid">
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<!--AMSR2-->
<div class="dropdown">
<a class="nav-item nav-button" href="amsr2.html" role="button">AMSR2 </a>
<div class="dropdown-menu" id="nav_amsr">
<a class="dropdown-item" href="amsr2-sit.html">AMSR2 Ice Thickness </a>
<a class="dropdown-item" href="past-sit.html">Past Thickness</a>
</div>
</div>
<!--AWP-->
<div class="dropdown">
<a class="nav-item nav-button" href="awp.html" role="button">Albedo-Warming Potential (AWP) </a>
<div class="dropdown-menu" id="nav_awp">
<div class="AWPcolumn">
<a class="dropdown-item" href="awp-region.html">AWP regional</a>
<a class="dropdown-item" href="awp-south.html">Antarctic</a>
<a class="dropdown-item" href="NRTawp.html">Arctic NRT</a>
<a class="dropdown-item" href="NRTawp-south.html">Antarctic NRT</a>
</div>
<div class="AWPcolumn">
<a class="dropdown-item" href="melt-awp.html">Arctic Ice-Melt AWP</a>
<a class="dropdown-item" href="melt-awp-south.html">Antarctic Ice-Melt AWP</a>
<a class="dropdown-item" href="NRT-icemelt.html">Arctic Ice-Melt NRT</a>
<a class="dropdown-item" href="NRT-icemelt-south.html">Antarctic Ice-Melt NRT</a>
</div>
</div>
</div>
<!--SNOW-->
<div class="dropdown">
<a class="nav-item nav-button" href="snow-cover.html" role="button" >Snow</a>
<div class="dropdown-menu" id="nav_snow">
<a class="dropdown-item" href="snow-regional.html">Snow-Regional</a>
<a class="dropdown-item" href="past-snow.html">Past Snow Maps</a>
</div>
</div>
<!--Icesheets-->
<div class="dropdown">
<a class="nav-item nav-button" href="icesheets.html" role="button">Ice Sheets </a>
<div class="dropdown-menu" id="nav_ice">
<a class="dropdown-item" href="bedrock.html">Greenland Bedrock</a>
<a class="dropdown-item" href="bedrock-antarctica.html">Antarctica Bedrock</a>
<a class="dropdown-item" href="glacier-size.html">Glacier Size</a>
</div>
</div>
<!--Analysis-->
<div class="dropdown">
<a class="nav-item nav-button" href="#" role="button">Analysis </a>
<div class="dropdown-menu" id="nav_analysis">
<a class="dropdown-item" href="ice-free-days.html">Ice Free Days</a>
<a class="dropdown-item" href="past-sic.html">Past Ice Maps</a>
<a class="dropdown-item" href="MinMax.html">MinMax SIC</a>
<a class="dropdown-item" href="MeltFreezeDays.html">Arctic Melt & FreezeDays</a>
<a class="dropdown-item" href="MeltFreezeDays_south.html">Antarctic Melt & FreezeDays</a>
</div>
</div>
<!--Other-->
<a class="nav-item nav-button" href="doc.html">Documentation</a>
<a class="nav-item nav-button" href="volcano.html">Volcanos</a>
<a class="nav-item nav-button" href="https://github.com/NicoSun/ScienceData" target="_blank">Data</a>
</div>
</div>
</div>
<span id="moon" onclick="darkmode()">
<i class="fa fa-moon-o"></i>
</span>
</nav>
</header>
<main>
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-10 text-center">
<h2>NSIDC/NOAA Snow Extent</h2>
<p>half-monthly Northern Hemisphere Snow Extent Maps beginning in February 1997</p>
<img id="past_Arctic" src="Analysis/Past_Snow/NOAA_Snowmap_20120715.png" title="Northern Hemisphere Snow Extent">
</div>
</div>
<div class="row justify-content-center">
<div class="col-10 text-center sliderdiv">
<span>Year:</span>
<span id="Yearselect" style="font-weight:bold;color:red">2012</span>
<input type="range" min="1997" max="2020" value="2012" class="slider" id="yearRange" style="width:50%">
</div>
<div class="col-10 text-center sliderdiv">
<span>Month:</span>
<span id="Monthselect" style="font-weight:bold;color:red">9</span>
<input type="range" min="1" max="12.5" value="9" step="0.5" class="slider" id="monthRange" style="width:50%">
</div>
</div>
<hr>
<div class="row justify-content-center">
<div class="col-10 text-center">
<h2>Data used</h2>
<p>National Ice Center. 2008, updated daily. IMS Daily Northern Hemisphere Snow and Ice Analysis at 1 km, 4 km, and 24 km Resolutions, Version 1.1-1.3. Boulder, Colorado USA. NSIDC: National Snow and Ice Data Center. doi: https://doi.org/10.7265/N52R3PMC.
</p>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer>
<hr>
<div class="container-fluid">
<div class="row justify-content-center text-center">
<p>CryosphereComputing</p>
</div>
</footer>
</body>
<script>
var daystring = "01"
var monthstring = "09"
// Dispalys Slider value
var slider = document.getElementById("yearRange");
var output = document.getElementById("Yearselect");
output.innerHTML = slider.value; // Display the default slider value
var slider2 = document.getElementById("monthRange");
var output2 = document.getElementById("Monthselect");
output2.innerHTML = slider2.value; // Display the default slider value
// Update for year slider
slider.oninput = function() {
output.innerHTML = this.value;
//update image
var imageid = "Analysis/Past_Snow/NOAA_Snowmap_" + slider.value + monthstring + daystring + ".png";
showimage(imageid);
}
// Update for month slider
slider2.oninput = function() {
output2.innerHTML = this.value;
daystring = checkInteger(parseFloat(this.value));
monthstring = String(parseInt(this.value));
monthstring = monthstring.padStart(2, '0');
//update image
var imageid = "Analysis/Past_Snow/NOAA_Snowmap_" + slider.value + monthstring + daystring + ".png";
showimage(imageid);
}
function showimage (imageid){
document.getElementById("past_Arctic").src = imageid;
//document.write(imageid);
}
function checkInteger (num){
if(Number.isInteger(num)){
return "01";
}
else{return "15";}
}
</script>
</html>