R interface for reading data from the Earth System Datacube.
devtools::install_github("CAB-LAB/RCABLAB")
cube <- open.cube("/path/to/cube")
dat <- read.cube(
cube, variable = cube$data.dir.entries,
time = c(cube$config$start_time,
cube$config$end_time - as.difftime(1, units = "days")),
longitude = c(-180, 180), latitude = c(-90, 90)
)