FS_fExtractAllCriticalDates: Analyze critical dates (SOS/EOS and SOW/EOW) from GPPsat and...

Description Usage Arguments

View source: R/FS_fExtractAllCriticalDates.R

Description

After calculating GPPsat using 'FS_fCalculateGPPandNEESatParameters', this function will extract critical dates from the GPPsat time series. Additionally, this function will calculate start and end of winter (SOW/EOW) based on the period in which ecosystems no longer accumulate C (GPP-free period), using cumulative GPP as the flux parameter.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
FS_fExtractAllCriticalDates(
  inpath_GPPsat,
  inpath_complete_output,
  outpath_critdates,
  outpath_plots,
  site.meta,
  span = 0.075,
  create.plots = TRUE,
  export.files = TRUE,
  batch_process = FALSE,
  exclude_bad_yrs = FALSE
)

Arguments

inpath_GPPsat

character string, navigate to the directory containing GPPsat and associated fit parameters

inpath_complete_output

character string, navigate to the directory containing stacked complete output datasets (specific formatting required)

outpath_critdates

character string, specify path to where you'd like to export a dataframe of critical dates (includes all sites on the same df)

outpath_plots

character string, specify path to where you'd like to export figures

site.meta

dataframe, site metadata file contained in FluxSynthU

span

numeric, set the span for time series smoothing (defaults to 0.075)

create.plots

logical, if TRUE (default) exports 4 figures

export.files

logical, if TRUE (default) exports dataframes as text files in the outpath directory.

batch_process

logical, if TRUE, batch processes all sites within the inpath directory (defaults to FALSE).

exclude_bad_yrs

logical, if TRUE, excludes user defined years from the analysis (defaults to FALSE).


ksmiff33/FluxSynthU documentation built on Dec. 15, 2020, 10:29 p.m.