#' @export
read_nc <- function(file, year_end = 2016) {
dates = nc_date(file)
inds = which(year(dates) <= year_end)
# dates = dates[inds]
arr <- ncread(file)$data[[1]][, , inds]
arr
# listk(arr, dates)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.