makeRXGrid: Create a grid for creating experiments and prescriptions.

View source: R/rxFuns.R

makeRXGridR Documentation

Create a grid for creating experiments and prescriptions.

Description

Creates a grid of the user specified dimensions and stores in the database for later use. The grid is used to place and apply the experiment or prescription outputs and reflects the dimensions of the user's equipment and desired treatment lengths. The 'trt_width', or treatment width is used to create a buffer from the field to take into account cleanup passes around field edges.

Usage

makeRXGrid(
  db,
  fieldname,
  trt_length,
  trt_width,
  farmername,
  unique_fieldname,
  mgmt_scen
)

Arguments

db

Connection to an OFPE formatted database.

fieldname

Provide the name of the field for the experiment or prescription.

trt_length

Length, in meters, for which to apply treatments.

trt_width

Width, in meters, for which to apply treatments.

farmername

The name of the farmer that manages the field.

unique_fieldname

Unique fieldname for the field(s) used for the experiment. This concatenates multiple fields with an ampersand. Used for labeling.

mgmt_scen

If the user is creating a prescription or experimental prescription, they must provide the management scenario to use for their prescription. The user can choose from the management options listed in the SimClass. The options are 'SSOPT': site-specific optimized rates, 'FFOPT': full-field optimum uniform rate, 'FS': farmer selected uniform rate, 'Min': applying the least intensive input rates (i.e. 0 lbs N/ac, or 25 lbs seed/ac), 'Opp' is omitted because this strategy is the least intensive input rate in conventional system types, and the farmer selected rate for organic systems, both of which are already provided.

Value

NULL, grid data stored in database in 'rxgrids' and 'rxgridtemp'.


paulhegedus/OFPE documentation built on Nov. 23, 2022, 5:09 a.m.