l_insert_hinges: Insert wavelength values into spectral data.

Description Usage Arguments Value See Also

View source: R/insert.hinges.r


Inserting wavelengths values immediately before and after a discontinuity in the SWF, greatly reduces the errors caused by interpolating the weighted irradiance during integration of the effective spectral irradiance. This is specially true when data have a large wavelength step size.


l_insert_hinges(x, y, h)



numeric vector (sorted in increasing order)


numeric vector


a numeric vector giving the wavelengths at which the y values should be inserted by interpolation, no interpolation is indicated by an empty vector (numeric(0))


a list with variables x and y. Unless the hinge values were already present in y, each inserted hinge, expands the vectors by two values.

See Also

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, oper_spectra, photon_irradiance, photon_ratio, photons_energy_ratio, prod_spectra, s_e_irrad2rgb, split_energy_irradiance, split_photon_irradiance, subt_spectra, sum_spectra, trim_tails, v_insert_hinges

photobiology documentation built on Aug. 30, 2018, 9:04 a.m.