nc_open_CGLS {RCGLS}R Documentation

Open netcdf CGLS data

Description

Opens single orginal data files/layers of Copernicus Global as netCDF filesLand Service as netCDF files without adjusting coordinates. Coordinate adjustment is necessary as R uses upper left corner as pixel reference and Copernicus uses pixel centre. Also see: https://land.copernicus.eu/global/products/.

Usage

nc_open_CGLS(date, product, resolution, version)

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,...

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 Opens single netcdf file in environment

Note

Coordinates are shifted and need to be adjusted, for example by: if(resolution == "300m") lon <- lon - (1/336)/2 lat <- lat + (1/336)/2 if(resolution == "1km") lon <- lon - (1/112)/2 lat <- lat + (1/112)/2

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, ...

nc      <- nc_open_CGLS   (date=DATE, product=PROD, resolution=RES, version=V)

## End(Not run)

[Package RCGLS version 1.0.3 Index]