Open mdsumner opened 6 years ago
Problems we hit quickly
x$info$projection
must be valid, and often is not So a raadtools-like wrapper is pretty necessary to provide curated products
But, this will be awesome for fast map creation, this is fast enough to watch:
files <- raadtools::sstfiles()
x <- lazyraster(files$fullname[1])
x$info$projection <- "+proj=longlat +datum=WGS84"
sstpal <- palr::sstPal(100)[1:50]
e <- new("Extent", xmin = -2641144.09507382, xmax = 1289641.22311962,
ymin = 1409623.24488862, ymax = 3887209.14241661)
for (i in seq(1, 100, by = 1)) {
x$source <- files$fullname[i]
plot(lazyproject(x, e, projection(sfdct::antarctica))/100, zlim = c(-2, 10), col = sstpal)
}
See internal lazywarp() function
This was surprisingly effective (
x$info$projection
must be valid, and often is not).