write_xdb_rotation: Write SALUS xdb.xml Rotation Component Level Parameters

Description Usage Arguments Details Examples

View source: R/write_xdb_funs.R

Description

This function writes the rotation component arguments. Subsequent write_xdb_m* functions append information about management options. See http://salusmodel.glg.msu.edu/salus.ddb.xml for more information about SALUS parameter options. This function should be followed with write_xdb_m* (rotation management), and write_xdb_bottomMatter functions to complete the Experiment file.

Usage

1
2
write_xdb_rotation(outFile, OrderNum, Title, IIrrI, IferI, ITilI, IHarI,
  IResI)

Arguments

outFile

Full file path for an existing .xdb.xml to appended to, created with write_xdb_topMatter

OrderNum

Order of the treatment. Minimum = 1. 1 will initialize the Rotation_components section

Title

Rotation component title, such as 'maize', 'Wheat'

IIrrI

Irrigation management. 'N' - not irrigated; 'A' - auto profile refill; 'F' - auto with fixed amount; 'R' - reported date, 'Y' - reported doy, 'D' - days after planting

IferI

Fertilizer management. 'N' - not irrigated; 'A' - automatic; 'F' - auto with fixed amount; 'R' - reported date, 'Y' - reported doy, 'D' - days after planting

ITilI

Tillage management. 'N' - no tillage; 'A' - automatic; 'R' - reported; 'Y' - reported doy, 'D' - days after planting

IHarI

Harvest management. A: Automatic; D: Days after Planting; G: At Growth Stages; M: At Maturity R: Reported Date W: Harvest when crop reaches given weight Y: Reported Day of Year

IResI

Residue management

Details

All other SALUS Rotation Component parameters are set currently as default.

Examples

1
2
3
4
5
6
# file path to existing .xdb.xml file created by write_xdb_topMatter
fileOut <- 'C:/Users/deinesji/1PhdJill/test.xdb.xml'

# append rotation component parameters to .xdb.xml; numeric parameters can be character or numeric
write_xdb_rotation(outFile = fileOut, OrderNum = 1, Title = 'Wheat', IIrrI = 'N',
                   IferI = 'R', ITilI = 'R', 'IHarI' = 'R', IResI = 'A')

jdeines/salustools documentation built on May 29, 2019, 1:03 a.m.