Sys.setenv(EARTHDATA_TOKEN = "YOUR_TOKEN"), or pass the
token directly to earthdata_token("TOKEN")Tiles are cached in ~/.lightson/cache/ after the first
download.
extract_panel() accepts any sf object:
library(sf)
my_districts <- sf::read_sf("~/github/bharatviz/public/India_LGD_districts.geojson")
panel2 <- extract_panel(rasters, my_districts, id_col = "district_name")See the Custom geometry vignette for a complete walkthrough using bharatviz boundaries with Bhuvan NTL rasters, which need only ISRO’s public API.