hsi.coef: This function first reads in a corrected hdf5 file and...

Description Usage Arguments Value

View source: R/hsicoef.R

Description

This function first reads in a corrected hdf5 file and applies a supplied coefficient to each band. Coefficients may be from a PLSR, PCA, etc. Output is a raster file of same spatial resolution as input.

Usage

1
2
hsi.coef(hy.file, metadata.path, reflectance.path, wavelength.path,
  coordinate.path, coef.csv, inter, scale.data, band.combo)

Arguments

hy.file

hdf5 file containing hyperspectral imagery and associated metadata

metadata.path

hdf5 path to reflectance metadata

reflectance.path

hdf5 path to reflectance data

wavelength.path

hdf5 path to wavelength metadata

coordinate.path

hdf5 path to coordinate data

coef.csv

csv containing coefficients

inter

does the CSV contain an intercept and is it in the first position (TRUE/FALSE)

scale.data

were the coefficients generated with scaled data and thus data needs to be scaled before applied coefs (TRUE/FALSE)

band.combo

combination of bands index values that were used to generate the coefficients

Value

A raster with all coefficients applied


akamoske/hypRspec documentation built on April 30, 2021, 8:27 p.m.