ncvar_get_CGSL {RCGLS} | R Documentation |
Read netcdf CGLS data
Description
Read single layers of Copernicus Global Land Service (CGLS) data and adjusts coordinates for R.
Usage
ncvar_get_CGSL(date, product, resolution, version, variable)
Arguments
date |
Date of interest, for example for 13 june 2019: 2019-06-13 |
product |
Product name: fapar, fcover, lai, ndvi, ss, swi, lst, ... |
resolution |
1km, 300m or 100m |
version |
Version number: v1, v2, v3,... |
variable |
FAPAR_ERR, FAPAR_QFLAG... Also see https://land.copernicus.eu/global/products/ |
Details
Adjusting coordinates is a necessary step to use the data because Copernicus nc files have lat/long belonging to the centre of the pixel, and R uses upper/left corner. This function opens the data without any corrections.
Value
CGLS data Large matrix of a specific variable in environment, coordinates adjusted.
Examples
## Not run:
#' library(ncdf4)
DATE <- "2019-06-13" #Date of interest, for example for 13 june 2019: 2019-06-13
PROD <- "fapar" #Product name: fapar, fcover, lai, ndvi, ss, swi, lst, ...
RES <- "1km" #1km, 300m or 100m
V <- "v1" #Version number: v1, v2, v3, ...
VAR <- "FAPAR" #FAPAR_ERR, FAPAR_QFLAG... Also see https://land.copernicus.eu/global/products/
nc_data <- ncvar_get_CGSL (date=DATE, product=PROD, resolution=RES, version=V, variable=VAR)
## End(Not run)
[Package RCGLS version 1.0.3 Index]