agriDemoPlot: Calculate latitude and longitude coordinates for each plot...

View source: R/agriDemoPlot.R

agriDemoPlotR Documentation

Calculate latitude and longitude coordinates for each plot represented in a demoFieldBook.

Description

agriDemoplot is virtually the same function as agriPlot, however, it's only meant to take a fieldbook generated from demoFieldBook as input. agriDemoplot can take the output from demoFieldBook as is.

Usage

  agriDemoPlot(demoFieldBook,initialLong,initialLat,rowSpacing,plotLength,rowColDir,plantingAngle)

Arguments

demoFieldBook

"demo" fieldBook generated from demoFieldBook.

initialLong

The Longitude for the plot in column 1 and row 1

initialLat

The Latitude for the plot in column 1 and row 1

rowSpacing

This is the row spacing of your planter in meters (15 inch planter spacing = 0.381 meters, 30 inch planter spacing = 0.762 meters).

plotLength

This is the total length of your plot in meters. This includes the planted portion of the plot and the alley (if an alley is applicable).

rowColDir

The row and column orientation of your field. For North/South plantings: The first two letters before the hyphen represent the row direction in which your row numbers are increasing. The second two letters following the hyphen represent represent the column direction in which your column numbers are increasing - "SN-WE", "SN-EW", "NS-WE", "NS-EW". For East/West plantings: The first two letters before the hyphen represent the column direction in which your column numbers are increasing. The second two letters following the hyphen represent represents the row direction in which your row numbers are increasing - "WE-SN", "WE-NS", "EW-SN", "EW-NS".

plantingAngle

The angle you planted at. Values greater than 0 rotate your field in a counterclockwise direction and values less than 0 rotate your field in a clockwise direction. If you planted "perfectly" vertical or horizontal then your plantingAngle is 0.

Details

The function returns latitude and longitude coordinates for each plot represented in a demoFieldBook.

Value

returns a demoFieldBook with lat/long for each plot

Examples

  ##Vignette at https://github.com/cb-agr/agriPlot

cb-agr/agriPlot documentation built on April 14, 2022, 1:01 p.m.