Published
Edited
Aug 28, 2020
Importers
12 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`Most recent 24hours of **VIIRS 375m / NOAA-20** from [NASA Active Fire Data](https://firms2.modaps.eosdis.nasa.gov/active_fire/#firms-txt):`
Insert cell
J1_24h = d3.csv(cors("https://firms2.modaps.eosdis.nasa.gov/data/active_fire/noaa-20-viirs-c2/csv/J1_VIIRS_C2_USA_contiguous_and_Hawaii_24h.csv"))
Insert cell
md`Most recent 24hours of **VIIRS 375m / S-NPP** from [NASA Active Fire Data](https://firms2.modaps.eosdis.nasa.gov/active_fire/#firms-txt):`
Insert cell
V1_24h = d3.csv(cors("https://firms2.modaps.eosdis.nasa.gov/data/active_fire/suomi-npp-viirs-c2/csv/SUOMI_VIIRS_C2_USA_contiguous_and_Hawaii_24h.csv"))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
J1_08_2020 = d3.csvParse(await FileAttachment("fire_nrt_J1V-C2_6857.csv").text(), d3.autoType)
Insert cell
Insert cell
Insert cell
V1_08_2020 = d3.csvParse(await FileAttachment("fire_nrt_V1_6858.csv").text(), d3.autoType)
Insert cell
Insert cell
V1_10_2019 = d3.csvParse(await FileAttachment("fire_archive_V1_6856.csv").text(), d3.autoType)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3.json("https://www.purpleair.com/data.json?opt=1/mAQI/a10/cC0&fetch=true&nwlat=43.167493434353474&selat=32.25997597364069&nwlng=-127.87343156694496&selng=-114.15416006614362&fields=pm_1")
Insert cell
air = d3
.json(
"https://www.purpleair.com/data.json?opt=1/mAQI/a10/cC0&fetch=true&nwlat=43.167493434353474&selat=32.25997597364069&nwlng=-127.87343156694496&selng=-114.15416006614362&fields=pm_1"
)
.then(d =>
Object.assign(
d.data.map(b => Object.fromEntries(d.fields.map((f, i) => [f, b[i]]))),
{ columns: d.fields }
)
)
Insert cell
d3.json("https://www.purpleair.com/json?show=13191")
Insert cell
d3.json("https://api.thingspeak.com/channels/539574/fields/8.json?start=2020-08-15%2023:12:35&offset=0&round=2&average=10&api_key=L0YNWLQ86Q9NXEX9")
Insert cell
Insert cell
Insert cell
// this takes a while to respond
bsky = d3.json(cors("https://tools.airfire.org/websky/v2/api/runs/standard/CANSAC-1.33km/"))
Insert cell
bskyBaseUrl = bsky.run_urls[0]
Insert cell
html`<img height=300 src="${bskyBaseUrl}/forecast/images/100m/three_hour/GrayColorBar/100m_three_hour_202008261700.png">`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3 = require("d3")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more