Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.53 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.53 KB

R-CMD-check

R-FieldSpectra

R library for importing and processing field spectroscopy data collected with ASD, Spectra Vista, and Spectral Evolution instruments

Corresponding author

Dr. Shawn Serbin
Environmental and Climate Sciences Department
Brookhaven National Laboratory
[email protected]
Created by: Shawn P. Serbin [email protected]

Installation

Easiest way to install is via install_github from the devtools package.

install.packages('devtools') # if you haven't already installed this package and dependencies
library(devtools) # load the library
install_github("serbinsh/R-FieldSpectra") # install the package from GitHub

If you want a specific branch, do install_github(..., ref="<branch>").

From there, you should be able to load the package in your typical R session.

Quick example runs (after installation)

### Extract metadata
# ASD
file <- system.file("extdata/PM01_TIAM_B_LC_REFL00005.asd",package="FieldSpectra")
output <- extract.metadata(file,instrument="ASD")

# Spectral Evolution
file <- system.file("extdata/cvars_grape_leaf1_lc_rg_01236.sed",package="FieldSpectra")
output <- extract.metadata(file,instrument="SE")

# MORE IN DEVELOPMENT

Source Code Citation

DOI