Functions to import and organize LAI measurements from Sunscan device
install.packages('sunscanimport',
repos = c(
'https://gk-crop.r-universe.dev',
'https://cloud.r-project.org'
)
)
sunscanimport::runSunscanApp()
library(sunscanimport)
file <- "paulinenaue.TXT"
inputfolder <- "data/210908/original/"
outputfolder <- "data/210908/"
convfile <- convertSunscanFile(file,inputfolder, outputfolder)
generateReport(convfile, inputfolder, outputfolder)
Searches the directory recursively for Sunscan files and converts them.
library(sunscanimport)
convertSunScanDirectory("data/")
library(sunscanimport)
data <- readr::read_delim("data/210908/converted/data_paulinenaue.txt", delim="\t")
data_summary <- createSummary(data)
library(sunscanimport)
data <- readr::read_delim("data/210908/converted/data_paulinenaue.txt", delim="\t")
data_wide <- transformToWideFormat(data)
Folder structure after conversion of sunscan file name.TXT
. Optional files
added by user are marked with *.
folder
+ original
|-- name.TXT
|-- name.CFG *
|-- ReadMe.TXT *
+ proceeding
|-- plotid_name.TXT *
|-- measureid_name.TXT *
|-- grid_name.TXT *
+ converted
|-- data_name.TXT
|-- summary_name.TXT
|-- meta_name.TXT
+ report
|-- name.html *