Extract a numeric vector from an RData file
vecFromData(
product = c("MOD13Q1", "independent"),
data,
numRow,
lenPeriod = 23
)A list with two components:
extracted vector in matricial form
extracted vector
character indicating whether data comes from a MOD13Q1 (default) time series satellite
imagery or from an independent product.
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.
numeric, number of row to extract from data.
numeric, number of observations per period. Default, 23.
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.
fill_initialgap_MOD13Q1, phenopar,
raster_intersect_sp, vecToMatrix.