trimGrid: Trim grid to field buffer

View source: R/rxFuns.R

trimGridR Documentation

Trim grid to field buffer

Description

This function takes the experiment or prescription grid from the database and trims it to the boundary of the treatment width buffer from the edge of the field.

Usage

trimGrid(rx_sdt, fieldname, db, farmername, buffer_width = 0)

Arguments

rx_sdt

A 'sf' object containing the experiment or prescription grid generated by user inputs.

fieldname

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

db

Connection to an OFPE formatted database.

farmername

Name of the farmer that owns or manages the field(s) that an experiment or prescription is going to be generated for. Must be same for all fields.

buffer_width

Width from the edge of the field within which to apply treatments.

Value

A 'sf' object with a clipped grid for experimentation or prescription generation.


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