extract_data_list: Extract Data List

View source: R/extract_data_list.R

extract_data_listR Documentation

Extract Data List

Description

Extract Data List

Usage

extract_data_list(file, dname, n = 52, years, step = "Step", ...)

Arguments

file

An ncdf file

dname

A variable name. One of "Weekly Growth Index", "Hot Stress", "Dry Stress", "Wet Stress", "Cold Stress", "Ecoclimatic Index", "Moisture Index", "Temperature Index"

n

A number of layers for each year. The default is 52

years

A vector indicating years in the input file

step

"Step" for weekly data or "Year" for yearly data

...

Not used

Value

A nested list with spatio-thematic metadata. Each nested list contains a data for each year in a form of a set of matrices.

Examples

## Not run: 
  Path <- "C:/Google Drive/Corvus Geostat - Jakub Nowosad/"
  Path <- "../corvus_dynamic_outputs/"
  input_file <- paste0(Path,"NetCDF/DxResults_Cc_2010-2015.nc")
  AllYears <- extract_data_list(input_file, "Weekly Growth Index",
                              years = 2000:2014)

## End(Not run)

aniaszy/ffipm documentation built on July 3, 2022, 2:40 a.m.