vecFromData {sephora}R Documentation

Get numeric vector from RData file

Description

Extract a numeric vector from an RData file

Usage

vecFromData(
  product = c("MOD13Q1", "independent"),
  data,
  numRow,
  lenPeriod = 23
)

Arguments

product

character indicating whether data comes from a MOD13Q1 (default) time series satellite imagery or from an independent product.

data

a matrix containing measurements of subsets (polygons) of a time series of satellite images. nrow is equal to the number of pixels in the polygon and ncol is equal to the number of images in the time series.

numRow

numeric, number of row to extract from data.

lenPeriod

numeric, number of observations per period. Default, 23.

Details

Although the first available MOD13Q1 product dates back to 18-02-2000, when product="MOD13Q1" this function assumes that data contains observations from 01-01-2000 and fill_initialgap_MOD13Q1 is used to impute the first three missing values of 2000.

Value

A list with two components:

mat

extracted vector in matricial form

vec

extracted vector

See Also

fill_initialgap_MOD13Q1, phenopar, raster_intersect_sp, vecToMatrix.


[Package sephora version 0.1.31 Index]