bin.cube: Compute the average of spectra in a cube

Description Usage Arguments Value Author(s)

View source: R/bin.cube.R

Description

Compute the average or sum of spectra residing in cube. The spectra to work on are identified by coordinates L and M in bin.

Usage

1
  bin.cube(cube, bin, add=FALSE)

Arguments

cube

A list of spectra, all on the same wavelength vector. This would be read in from a VIMOS cube with prepare.cube

.

bin

A data.frame with columns L and M identifying the spectra to be summed or average.

add

If TRUE sum the spectra, otherwise (default) compute the average.

Value

The summed or averaged spectrum.

Author(s)

Oliver Czoske


oczoske/slacR documentation built on May 20, 2019, 8:23 p.m.