Public
Edited
Aug 19, 2021
Insert cell
# Play through images

images were created from netcdf file using python
Insert cell
dates = {
var date = new Date(2014, 0, 0);
var end = new Date(date);
end.setFullYear(end.getFullYear() + 1);
var array = [];
while (date < end) {
date.setDate(date.getDate() + 1);
array.push(new Date(date));
}
return array;
}
Insert cell
import { Scrubber } from "@mbostock/scrubber"
Insert cell
viewof month = Scrubber(dates, {
delay: 500,
autoplay: false,
loop: true,
format: (m) =>
m.toLocaleString("en", {
year: "numeric",
month: "long",
day: "numeric"
})
})
Insert cell
year = month.toLocaleString(undefined, {
year: "numeric"
// month: "2-digit",
// day: "2-digit"
})
Insert cell
mon = month.toLocaleString(undefined, {
// year: "numeric"
month: "2-digit"
// day: "2-digit"
})
Insert cell
day = month.toLocaleString(undefined, {
// year: "numeric"
// month: "2-digit"
day: "2-digit"
})
Insert cell
date = year + mon + day
Insert cell
dd = "ct5km_ssta_v3.1_" + date + ".png"
Insert cell
FA(`${dd}`).image()
Insert cell
FA = FileAttachment
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more