par_stack_season_dates: Estimate and stack the beginning and end of growing seasons...

Description Usage Arguments Value Author(s) See Also

View source: R/par_stack_season_dates.R

Description

Estimate and stack the beginning and end of growing seasons using parallel processing.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
par_stack_season_dates(
  x,
  type = "v_points",
  n_criticals = 1,
  steps = 2,
  ts_freq = 23,
  returned = c("ts_seasonal", "original"),
  valid_range = NULL,
  filename = "",
  ...
)

Arguments

x

A Raster brick or stack

type

character string. either v_points or peaks depending on how x should be broken into phases. v_points (default) may make more sens for expression seasonal data.

n_criticals

Numeric. The number of points to be considered. Default to 1.

steps

Integer. The minimum number of points at either sides of each v-like point to be considered higher for it to qualify as v-like point. Default to 3

ts_freq

The frequence of time series (see frequency argument in ts). Default to 23.

returned

character string either ts_seasonal or original. if ts_seasonal (default), the returned phases data will be the seasonal component of the decomposed time series (see decompose). if 'original', the original data will be returned.

valid_range

A numeric vector of lenght 2. Data cleaning parameter specifying the validity domain of the input data are valid. Values outside this range are set NA before any processing. In the case of normalized difference indices (e.g. NDVI, SAVI) for example, one should set these values to be between.

filename

Output filename

...

Additional arguments:

datatypeCharacter. Output data type (e.g. 'INT2S' or 'FLT4S'). See dataType. If no datatype is specified, 'FLT4S' is used, unless this default value was changed with rasterOptions

overwrite: Logical. If TRUE, "filename" will be overwritten if it exists

progress: Character. Set a value to show a progress bar. Valid values are "text" and "window".

NAflag: Numeric. To overwrite the default value used to represent NA in a file

bandorder: Character. 'BIL', 'BIP', or 'BSQ'. For 'native' file formats only. For some other formats you can use the 'options' argument (see below)

options: Character. File format specific GDAL options. E.g., when writing a geotiff file you can use: options=c("COMPRESS=NONE", "TFW=YES")

You can use options=c("PROFILE=BASELINE") to create a plain tif with no GeoTIFF tags. This can be useful when writing files to be read by applications intolerant of unrecognised tags. (see http://www.gdal.org/frmt_gtiff.html)

NetCDF files have the following additional, optional, arguments: varname, varunit, longname, xname, yname, zname, zunit

prj: Logical. If TRUE, the crs is written to a .prj file. This can be useful when writing to an ascii file or another file type that does not store the crs

Value

A stack object of biginning and end dates of the season for each pixel.

Author(s)

Issoufou Liman

See Also

phases, seasons, date_seasons


Issoufou-Liman/growingSeason documentation built on Jan. 23, 2020, 3:43 a.m.