Open mdsumner opened 5 years ago
@obrl-soil this is as far as I got, I've tried few things to wrap this up but it's not clear if I want a in-memory brick, or a multi-layer lazy-raster ...
The key in lazyraster is that you can combine a crop and specified dimension for the output, without having data read when you crop.
Happy to follow this up if it's useful, it's something I want to write up in more detail eventually. I've only tried this on Ubuntu, but I think it should work (these days) also with the Windows and MacOS CRAN binaries.
Ooooh this is super good! And works fine on windows too 👍 I still like a lot of control over resampling behaviour and the ability to get data at its source resolution and alignment but that's not really necessary for imagery
Created on 2019-10-14 by the reprex package (v0.3.0)
Taken from https://gist.github.com/obrl-soil/73916c6fe223d510293cb1a2bbf2879a
Compare raster and stars and discuss what lazyraster is doing here.