split_bands | R Documentation |
Build a list of unweighted "waveband" objects that can be used as input when calculating irradiances.
split_bands(
x,
list.names = NULL,
short.names = is.null(list.names),
length.out = NULL
)
x |
a numeric vector of wavelengths to split at (nm), or a range of wavelengths or a generic_spct or a waveband. |
list.names |
character vector with names for the component wavebands in the returned list (in order of increasing wavelength) |
short.names |
logical indicating whether to use short or long names for wavebands |
length.out |
numeric giving the number of regions to split the range into (ignored if w.length is not numeric). |
an un-named list of waveband objects
list.names
is used to assign names to the elements of the list,
while the waveband objects themselves always retain their wb.label
and wb.name
as generated during their creation.
Other waveband constructors:
waveband()
split_bands(c(400,500,600))
split_bands(list(c(400,500),c(550,650)))
split_bands(list(A=c(400,500),B=c(550,650)))
split_bands(c(400,500,600), short.names=FALSE)
split_bands(c(400,500,600), list.names=c("a","b"))
split_bands(c(400,700), length.out=6)
split_bands(400:700, length.out=3)
split_bands(sun.spct, length.out=10)
split_bands(waveband(c(400,700)), length.out=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.