Published
Edited
Apr 2, 2019
1 star
Insert cell
Insert cell
url = "https://s3.amazonaws.com/geotiff.js/geotiff.bundle.min.js"
Insert cell
Insert cell
red = [
[ 255, 255, 255 ],
[ 0, 0, 0 ],
[ 0, 0, 0 ]
]
Insert cell
green = [
[ 0, 0, 0 ],
[ 255, 255, 255 ],
[ 0, 0, 0 ]
]
Insert cell
blue = [
[ 0, 0, 0 ],
[ 0, 0, 0 ],
[ 255, 255, 255 ]
]
Insert cell
Insert cell
metadata = { return { "height": 3, "width": 3 } }
Insert cell
new_geotiff_as_binary_data = GeoTIFF.writeArrayBuffer(original_values, metadata)
Insert cell
Insert cell
Insert cell
viewof analyze = {
const a = html`<a target="_blank"><button style="height: 5rem; width: 50rem;">Analyze with GeoTIFF.io</button></a>`;
a.href = "https://app.geotiff.io?url=" + encodeURI(dataurl);
return a;
}
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