Given the result of simulations, this function extracts subdaily output corresponding to each simulated day and returns it as a data frame.
extractSubdaily(x, output = "E", dates = NULL)
See options in section details.
A date vector indicating the subset of simulated days for which subdaily output is desired.
A data frame with a column 'datetime' and as many columns as plant cohorts.
This function only works when simulations have been carried using control option 'subdailyResults = TRUE' (see defaultControl
). Subdaily simulation results will then be stored as elements of the a list called 'subdaily' in the simulation output. Function extractSubdaily
will assemble subdaily results from this list and return them as a data frame. Options for parameter 'output' are the following:
Functions pwb() and spwb(): "E","Ag","An","dEdP","RootPsi","StemPsi","LeafPsi","StemPLC","StemRWC","LeafRWC","StemSympRWC","LeafSympRWC","PWB", "Temperature", "ExtractionInst".
Additional options for shade and sunlit leaves in pwb() and spbw(): Either "SunlitLeaves$x" or "ShadeLeaves$x" where 'x' is one of the following: "Abs_SWR","Net_LWR","E","Ag","An","Ci","GW","VPD","Temp","Psi","iWUE".
Additional options for function growth(): "GrossPhotosynthesis", "MaintenanceRespiration", "GrowthCosts", "CarbonBalance","SugarLeaf", "SugarSapwood", "StarchLeaf", "StarchSapwood","SugarTransport".