Description Usage Arguments Value Note See Also Examples

View source: R/split.energy.irradiance.r

This function returns the energy irradiance for a series of contiguous wavebands from a radiation-source spectrum. The returned values can be either absolute or relative to their sum.

1 2 3 4 |

`w.length` |
numeric vector of wavelengths (nm). |

`s.irrad` |
numeric vector of spectral (energy or photon) irradiance values (W m-2 nm-1) or (mol s-1 m-2 nm-1). |

`cut.w.length` |
numeric vector of wavelengths (nm). |

`unit.in` |
character string with allowed values "energy", and "photon", or its alias "quantum". |

`scale` |
character string indicating the scale used for the returned values ("absolute", "relative", "percent"). |

`check.spectrum` |
logical indicating whether to sanity check input data, default is TRUE. |

`use.cached.mult` |
logical Flag indicating whether multiplier values should be cached between calls. |

`use.hinges` |
logical Flag indicating whether to insert "hinges" into the spectral data before integration so as to reduce interpolation errors at the boundaries of the wavebands. |

a numeric vector of irradiances with no change in scale factor: [W m-2 nm-1] -> [W m-2] or [mol s-1 m-2] -> [W m-2] or relative values (fraction of one) if scale = "relative" or scale = "percent".

The last three parameters control speed optimizations. The defaults
should be suitable in most cases. If you set `check.spectrum=FALSE`

then you should call `check_spectrum`

at least once for your
spectrum before using any of the other functions. If you will use
repeatedly the same SWFs on many spectra measured at exactly the same
wavelengths you may obtain some speed up by setting
`use.cached.mult=TRUE`

. However, be aware that you are responsible for
ensuring that the wavelengths are the same in each call, as the only test
done is for the length of the `w.length`

vector.

Other low-level functions operating on numeric vectors.: `as_energy`

,
`as_quantum_mol`

,
`calc_multipliers`

,
`div_spectra`

,
`energy_irradiance`

,
`energy_ratio`

, `insert_hinges`

,
`integrate_xy`

,
`interpolate_spectrum`

,
`irradiance`

, `l_insert_hinges`

,
`oper_spectra`

,
`photon_irradiance`

,
`photon_ratio`

,
`photons_energy_ratio`

,
`prod_spectra`

, `s_e_irrad2rgb`

,
`split_photon_irradiance`

,
`subt_spectra`

, `sum_spectra`

,
`trim_tails`

, `v_insert_hinges`

1 2 3 | ```
with(sun.data,
split_energy_irradiance(w.length, s.e.irrad,
cut.w.length = c(300, 400, 500, 600, 700)))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.