This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.arange(3) | |
y = x | |
plt.subplot(211) | |
plt.plot(x,x) | |
plt.subplot(223) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON('http://api.mesowest.net/stations?callback=?', | |
{ | |
// specify the request parameters here | |
stid:stn, | |
latestobs:1, | |
token:tkn | |
}, | |
function (data) | |
{ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON('http://api.synopticdata.com/stations?callback=?', | |
{ | |
// specify the request parameters here | |
state:'ut', | |
status:'active', | |
radius:'40.75,-111.8833,10', | |
token:tkn | |
}, | |
function (data) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map = L.map('mapdiv',{minZoom:8}).setView([40.6,-111.5], 10); | |
// add an OpenStreetMap tile layer | |
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { | |
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | |
}).addTo(map); | |
// add a circle demonstrating where we are looking | |
L.circle([40.5, -111.5], 32187, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<!-- Bootstrap, because why not. --> | |
<link rel="stylesheet" | |
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<style> | |
/* | |
* Define a couple styles to sit on top of bootstrap and color/size tables, | |
* temperatures, and winds properly | |
*/ | |
body {text-align:center;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"STATION":[ | |
{ | |
"WXZONE":"AKZ224", | |
"code":"GDPA2", | |
"hourly":{ | |
"relativeHumidityPercent":[ | |
87, | |
94, | |
95, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"STATION":[ | |
{ | |
"WXZONE":"AKZ224", | |
"code":"GDPA2", | |
"hourly":{ | |
"relativeHumidityPercent":[ | |
87, | |
94, | |
95, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl "http://api.mesowest.net/v2/stations/metadata?&token={YourToken}&stids=WBB,MTMET" |