pacu: Precision Agriculture Computational Utilities

Introduction

This package provides tools for several common precision agriculture workflows. For example, it includes functions to download and process Sentinel-2 imagery so spatial patterns can be investigated within an area of interest. The package also includes functions that request vegetation index statistics for a given period without requiring the raw imagery to be downloaded, which is useful for studying temporal variability within or across fields.

In addition, pacu can retrieve and visualize weather data in a historical context, which helps relate crop performance to seasonal conditions. The package also contains tools to process yield monitor data, including functions to build polygons around recorded observations, evaluate polygon overlap, clean raw yield data, and smooth yield maps.

Appendix

Below is a list of files contained in the inst folder and their purpose:

inst/extdata

  • 2012-baswood.(dbf, shp, shx, txt) shapefile containing the raw data used in the yield monitor examples. These data come from the publicly available data linked to the STRIPS project.
  • boundary.(dbf, prj, shp, shx) shapefile containing the field boundary used in the yield monitor examples.
  • cobs_a_aoi.(dbf, prj, shp, shx) shapefile used as the area of interest in the satellite and weather examples.
  • ds-browse-object.rds example object returned by pa_browse_dataspace().
  • example-ndvi-stats.rds example NDVI statistics for the area of interest downloaded with pa_get_vi_stats().
  • example-ndvi-stats-2.rds example NDVI statistics for the area of interest downloaded with pa_get_vi_stats().
  • S2B_MSIL2A_20230630T165849_N0509_R069_T15TVG_20230630T213917.zip example raw file downloaded from Data Space with pa_download_dataspace(). Accessed on 2024-07-31.
  • S2B_MSIL2A_20230703T170859_N0509_R112_T15TVG_20230703T211843.zip example raw file downloaded from Data Space with pa_download_dataspace(). Accessed on 2024-07-31.
  • example-weather.met example weather file downloaded with pa_get_weather_sf().
  • variable-names.json dictionary of variable names used by the internal function .pa_get_variable_names() to guess which entries represent the variables needed by pa_yield() when they are not supplied explicitly.
  • yield-map-(5, 6, 7).rds processed yield data used to create the ymp5, ymp6, and ymp7 objects in the yield monitor vignette. These files reduce vignette build time.

inst/js

  • bsi.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().
  • evi.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().
  • gcvi.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().
  • ndre.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().
  • ndvi.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().
  • reci.js JavaScript file passed to the Data Space Statistical API by pa_get_vi_stats().