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

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