Skip to content

gk-crop/sunscanimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sunscanimport status badge

sunscanimport

Functions to import and organize LAI measurements from Sunscan device

Installation

install.packages('sunscanimport',
  repos = c(
    'https://gk-crop.r-universe.dev',
    'https://cloud.r-project.org'
  )
)

Run ShinyApp

sunscanimport::runSunscanApp()

Converting a file

library(sunscanimport)

file <- "paulinenaue.TXT"
inputfolder <-  "data/210908/original/"
outputfolder <- "data/210908/"

convfile <- convertSunscanFile(file,inputfolder, outputfolder)
generateReport(convfile, inputfolder, outputfolder)

Converting a directory

Searches the directory recursively for Sunscan files and converts them.

library(sunscanimport)
convertSunScanDirectory("data/")

Transforming converted data

Create summary

library(sunscanimport)
data <- readr::read_delim("data/210908/converted/data_paulinenaue.txt", delim="\t")
data_summary <- createSummary(data)

Transform to wide format

library(sunscanimport)
data <- readr::read_delim("data/210908/converted/data_paulinenaue.txt", delim="\t")
data_wide <- transformToWideFormat(data)

Folder structure

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 *

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages