hypertidy / whatarelief

obtain raster data
https://hypertidy.github.io/whatarelief/
Other
49 stars 1 forks source link

helpers for image rendering #13

Open mdsumner opened 1 year ago

mdsumner commented 1 year ago

we want something like

im <- whatarelief::imagery(source = whatarelief::gebco21())

but, to have that automatically scale the data to a palette (for annotation_gdal - or, should annotation_gdal just do this ??)

thinking functions

raster_data() ## to get data like elevation() does just a better name

image_data() ## to always return colours for any source, needs to handle 3,4 bands and detect if it's already colour-model-ready
mdsumner commented 1 year ago

whoa, maybe do with `vrt://...?scale' args ..

mdsumner commented 1 year ago

first we need vapour to not apply scaling