Description Usage Arguments Details Value Author(s) References See Also Examples
Interface to daily simulations with YplantQMC. Two objects are required to run the simulation:
a plant3d object, containing the plant structure information, and a met object,
containing weather data, solar position, and number of timesteps.
Optionally, a phy object is used which contains the leaf gas exchange model for the simulation,
to calculate photosynthesis (and possibly transpiration rate) from light capture and other weather variables.
Also optional is the use of a hemi object, which specifies shading by a canopy.
If you don't know where to start, run the example at the bottom of this page.
1 2 3 4 5 |
x |
An object of class 'plant3d' or 'plant3dlist' (see |
met |
An object of class 'ypmet', see |
phy |
An object of class 'ypphy', see |
hemi |
An object of class 'yphemi', see |
quiet |
If TRUE, does not write messages to the console. |
writePSR |
If TRUE, writes a PSR output file. |
writeOUT |
If TRUE, writes an OUT output file. |
... |
Further arguments passed to |
See the arguments list above for the functions that are used to generate each of the four objects.
Note that the plant and met objects are required, and phy and hemi are optional.
This function is a user-friendly wrapper for runYplant. That function should be used for all
advanced simulations.
The YplantDay functions returns a list of class yplantsim, which has print and
plot methods (see Examples).
The list has the following components:
plantThe plant object used in the simulation
phyIf provided, the phy object used in the simulation
hemiIf provided, the hemi object used in the simulation
outdataA very lengthy dataframe with all results (see below)
nstepsNumber of timesteps
psrdataTotals and averages by timestep (dataframe), see psrdata
metThe met object used in the simulation
The outdata dataframe in the yplantsim object lists results for individual leaves,
has the following variables.
timeofdayTime of day for current timestep (hours)
leafnrLeaf number
timestepLength of current timestep (seconds)
PAR0Above-canopy PAR
PARleafTotal PAR absorption
PARdirDirect solar radiation PAR absorption
PARdiffDiffuse PAR absorption
reldiffRelative diffuse radiation absorption (0-1).
reldirRelative direct radiation absorption (0-1).
LAIndividual leaf area (mm2)
LAprojProjected leaf area (mm2)
LAsunlitSunlit, or 'displayed' leaf area (mm2)
ACO2 assimilation rate (mu mol m-2 s-1)
ETranspiration rate (mmol m-2 s-1)
gsStomatal conductance (mol m-2 s-1)
A0CO2 assimilation rate for a horizontal unshaded leaf (mu mol m-2 s-1)
Where PAR is photosynthetically active radiation (mu mol m-2 s-1).
The absorptions reldiff and reldir are relative to an unshaded horizontal surface.
To extract relative diffuse radiation absorption from an yplantsim object, for example:
1 2 | mysim <- YplantDay(myplant, mymet)
reldif <- mysim$outdata$reldiff
|
Remko Duursma
See http://www.remkoduursma/yplantqmc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Set location,
southernfrance <- setLocation(lat=44)
# A daily weather object, use a constant beam fraction of 0.4.
sunnyday <- setMet(southernfrance, month=6, day=21, nsteps=12, Tmin=9, Tmax=29, PARday=22,
fbeamday=0.4, fbeammethod="constant")
# Light response curve:
toonalrc <- setPhy("lightresponse",
leafpars=list(Amax=14.5, Rd=1.4, phi=0.05, theta=0.5, reflec=0.1, transmit=0.05))
# Run YplantQMC for a day. Use the built-in 'largegap' hemiphoto.
toonarun <- YplantDay(toona, sunnyday, toonalrc, largegap)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.