Learn R Programming

⚠️There's a newer version (0.14.0) of this package.Take me there.

photobiology (version 0.9.4)

Photobiological Calculations

Description

Definitions of classes, methods, operators and functions for use in photobiology and radiation meteorology and climatology. Calculation of effective (weighted) and not-weighted irradiances/doses, fluence rates, transmittance, reflectance, absorptance, absorbance and diverse ratios and other derived quantities from spectral data. Local maxima and minima. Conversion between energy- and photon-based units. Wavelength interpolation. Astronomical calculations related solar angles and day length. Colours and vision.

Copy Link

Version

Install

install.packages('photobiology')

Monthly Downloads

1,001

Version

0.9.4

License

GPL (>= 3)

Maintainer

Pedro Aphalo

Last Published

February 1st, 2016

Functions in photobiology (0.9.4)

altitude

function to be numerically minimized
absorbance_spct

Calculate absorbance from spectral absorbance.
check_w.length

Sanity check of wavelengths (internal function).
ciev2.spct

Linear energy CIE 2008 luminous efficiency function 2 deg data
ciexyzCMF10.spct

Linear energy CIE xyz colour matching function (CMF) 10 deg data
FEL_spectrum

Incandescent "FEL" lamp emission spectrum
average_spct

Average spectral data.
checkSpctVersion

Check that the "spct.version" attribute is set
beesxyzCMF.spct

Honeybee xyz chromaticity colour matching function data
e_irrad.source_mspct

Energy irradiance
color

Color of an object
is.generic_spct

Query class of spectrum objects
peaks

Peaks or local maxima
plus-.generic_spct

Arithmetic Operators
ciexyzCC10.spct

CIE xyz chromaticity coordinates (CC) 10 deg data
date2seconds

date argument check and conversion
clear_photobio.cache

clear the spectral weights cache
integrate_spct

Integrate spectral data.
Extract

Extract or replace parts of a spectrum
as.generic_spct

Spectral-object copy constructor
MathFun

Miscellaneous Mathematical Functions
clear.spct

Theoretical spectrum of a clear clear material
e_ratio.source_mspct

Energy:energy ratio
mspct_classes

Names of multi-spectra classes
is_absorbance_based

Query if a spectrum contains absorbance or transmittance data
max.generic_mspct

Maximun wavelength
clip_wl

Clip head and/or tail of a spectrum
range.waveband

Wavelength range
setWhenMeasured.generic_mspct

Set the "when.measured" attribute
photon_ratio

Photo:photon ratio
T2A

Convert transmittance into absorbance.
range.generic_mspct

Range of wavelength
rmDerivedMspct

Remove "generic_mspct" and derived class attributes.
as_quantum

Convert spectral energy irradiance into spectral photon irradiance
color.source_mspct

Color
w_length_range2rgb

Wavelength range to rgb color conversion
resp_spct

Calculate response from spectral response
labels.generic_spct

Find labels from spectral object
checkMspctVersion

Check that the "mspct.version" attribute is set
ciexyzCMF2.spct

Linear energy CIE xyz colour matching function (CMF) 2 deg data
getTimeUnit

Get the "time.unit" attribute of an existing source_spct object
calc_multipliers

Spectral weights
class_spct

Query which is the class of an spectrum
convolve_each

Convolve function for collections of spectra
get_peaks

Get peaks and valleys in a spectrum
getRfrType

Get the "Rfr.type" attribute
e2quantum_multipliers

Calculate energy to quantum multipliers
day_night

Times for sun positions
eq_ratio.source_mspct

Energy:photon ratio
s_e_irrad2rgb

Spectrum to rgb color conversion
irrad.source_mspct

Irradiance
irradiance

Photon (quantum) irradiance from spectral (energy) irradiance.
getSpctVersion

Get the "spct.version" attribute
midpoint.generic_mspct

Central wavelength value
print.generic_mspct

Print a spectral collection object
print.summary_generic_spct

Print spectral summary
setScaled

Set the "scaled" attribute
check_spct

Check validity of spectral objects
setWhereMeasured.generic_mspct

Set the "where.measured" attribute
getScaled

Get the "scaled" attribute
D65.illuminant.spct

CIE D65 illuminant data
photons_energy_ratio

Photon:energy ratio
prod_spectra

Multiply two spectra, even if the wavelengths values differ
shared_member_class

Classes common to all collection members.
fshift_spct

fshift a spectrum
q_ratio.source_mspct

Photon:photon ratio
absorbance.filter_mspct

Absorbance
tag

Tag a spectrum
transmittance.filter_mspct

Transmittance
split2mspct

Convert a 'wide' or untidy data frame into a collection of spectra
clean

Clean (=replace) off-range values in a spectrum
is.generic_mspct

Query class of spectrum objects
absorptance.filter_mspct

Absorptance
calc_source_output

Light-source spectral output
reflectance_spct

Calculate reflectance from spectral reflectance
is.summary_generic_spct

Query class of spectrum summary objects
fscale

Rescale a spectrum using a summary function
getWhereMeasured.generic_mspct

Get the "where.measured" attribute
is_normalized

Query whether a generic spectrum has been normalized.
slash-.generic_spct

Arithmetic Operators
is_scaled

Query whether a generic spectrum has been scaled
log

Logarithms and Exponentials
stepsize.generic_mspct

Stepsize
c.generic_mspct

Combine collections of spectra
wb2rect_spct

Create tagged spectrum from wavebands
setMultipleWl

Set the "multiple.wl" attribute
checkTimeUnit

Check the "time.unit" attribute of an existing source_spct object
D2_spectrum

Calculate deuterim lamp output spectrum from fitted constants
w_length2rgb

Wavelength to rgb color conversion
interpolate_spectrum

Calculate spectral values at a different set of wavelengths
source_spct

Spectral-object constructor
generic_mspct

Collection-of-spectra constructor
is_effective.summary_generic_spct

Is an R object "effective"
labels.waveband

Find labels from "waveband" object
normalized_diff_ind

Calculate a normalized index.
convertTimeUnit

Convert the "time.unit" attribute of an existing source_spct object
as_energy

Convert spectral photon irradiance into spectral energy irradiance
is.waveband

Query if it is a waveband
ciexyzCC2.spct

CIE xyz chromaticity coordinates 2 deg data
min.generic_mspct

Minimum wavelength
waveband

Waveband constructor method
is_photon_based

Query if a spectrum contains photon- or energy-based data.
polyester.spct

Transmittance spectrum of clear polyester film
mod-.generic_spct

Arithmetic Operators
sum_spectra

Add two spectra
black_body.spct

Theoretical black body
q_irrad.source_mspct

Photon irradiance
rbindspct

Row-bind spectra
as_quantum_mol

Convert spectral energy irradiance into spectral photon irradiance
insert_spct_hinges

Insert new wavelength values into a spectrum
clear_body.spct

Theoretical clear body
setTfrType

Set the "Tfr.type" attribute
div-.generic_spct

Arithmetic Operators
subset2mspct

Convert 'long' or tidy spectral data into a collection of spectra
print.waveband

Print a "waveband" object
dim.generic_mspct

Dimensions of an Object
sun.data

Solar spectral irradiance (simulated)
ccd.spct

Spectral response of a back-thinned CCD image sensor.
energy_ratio

Energy:energy ratio
getInstrSettings

Get the "instr.settings" attribute
sun.spct

Solar spectral irradiance (simulated)
getNormalized

Get the "normalized" attribute
msmsply

Multi-spct transform methods
valleys

Valleys or local minima
integrate_xy

Gives irradiance from spectral irradiance.
qe_ratio.source_mspct

Photon:energy ratio
insert_hinges

Insert wavelength values into spectral data.
merge.generic_spct

Merge two generic_spct objects
setInstrDesc

Set the "instr.desc" attribute
setRfrType

Set the "Rfr.type" attribute
ciev10.spct

Linear energy CIE 2008 luminous efficiency function 10 deg data
normalize

Normalize spectral data
untag

Remove tags
smooth_spct

Smooth a spectrum
subt_spectra

Subtract two spectra
energy_irradiance

Calculate (energy) irradiance from spectral irradiance
fluence.source_mspct

Fluence
div_spectra

Divide two spectra, even if the wavelengths values differ
trim_wl

Trim head and/or tail of a spectrum
^.generic_spct

Arithmetic Operators
waveband_ratio

Photon or energy ratio
put_hinges

Insert interpolated spectral irradiance values.
absorptance_spct

Calculate absorptance from spectral absorptance.
photodiode.spct

Spectral response of a GaAsP photodiode
spct_classes

Function that returns a vector containing the names of spectra classes.
rgb_spct

RGB color values
getInstrDesc

Get the "instr.desc" attribute
q_response.response_mspct

Photon-based photo-response
getWhenMeasured.generic_mspct

Get the "when.measured" attribute
photobiology-package

Photobiological Calculations
oper_spectra

Binary operation on two spectra, even if the wavelengths values differ
q_fluence.source_mspct

Photon fluence
yellow_gel.spct

Transmittance spectrum of yellow theatrical gel.
getMultipleWl

Get the "multiple.wl" attribute
sign

Sign
minus-.generic_spct

Arithmetic Operators
opaque.spct

Theoretical spectrum of an opaque material
upgrade_spectra

Upgrade one or more spectral objects
print.generic_spct

Print a spectral object
split_energy_irradiance

Energy irradiance for split spectrum regions
normalize_range_arg

Normalize a range argument into a true numeric range
transmittance_spct

Calculate transmittance from spectral transmittance.
e_response.response_mspct

Energy-based photo-response
round

Rounding of Numbers
twilight2angle

twilight argument check and conversion
find_peaks

Find peaks in a spectrum
summary.generic_spct

Summary of a spectral object
setGenericSpct

Convert an R object into a spectrum object.
split_irradiance

Energy or photon irradiance for split spectrum regions
response.response_mspct

Integrated response
Extract_mspct

Extract or replace members of a collection of spectra
time2seconds

time argument check and conversion
getTfrType

Get the "Tfr.type" attribute
max.waveband

Wavelength maximum
q2e

Convert photon-based quantities into energy-based quantities
setInstrSettings

Set the "instr.settings" attribute
setTimeUnit

Set the "time.unit" attribute of an existing source_spct object
trim_spct

Trim (or expand) head and/or tail
white_body.spct

Theoretical white body
times-.generic_spct

Arithmetic Operators
sun.daily.data

Daily solar spectral irradiance (simulated)
split_bands

List-of-wavebands constructor
trim_waveband

Trim (or expand) head and/or tail
wb2tagged_spct

Create tagged spectrum from wavebands
rmDerivedSpct

Remove "generic_spct" and derived class attributes.
trim_tails

Trim (or expand) head and/or tail
summary_spct_classes

Function that returns a vector containing the names of spectral summary classes.
A.illuminant.spct

CIE A illuminant data
e2qmol_multipliers

Calculate energy to quantum (mol) multipliers
e2q

Convert energy-based quantities into photon-based quantities.
e_fluence.source_mspct

Energy fluence
fscale_spct

fscale a spectrum
fshift

Shift the scale of a spectrum using a summary function
getBSWFUsed

Get the "bswf.used" attribute
min.waveband

Wavelength minimum
interpolate_wl

Map spectra to new wavelength values.
reflectance.reflector_mspct

Reflectance
setBSWFUsed

Set the "bswf.used" attribute
setNormalized

Set the "normalized" attribute
split_photon_irradiance

Photon irradiance for split spectrum regions
spread.generic_mspct

Length of object in wavelength units
normalization

Normalization of an R object
sun_angles

Solar angles
photon_irradiance

Photon irradiance
upgrade_spct

Upgrade one spectral object
wb2spct

Create spectrum from wavebands
A2T

Convert absorbance into transmittance
Trig

Trigonometric Functions
as.generic_mspct

Collection-of-spectra copy-constructor
check_spectrum

Sanity check of a spectrum.
defunct

Defunct functions and methods
date2tod

Convert date to time-of-day in hours
f_dispatcher_spct

Math function dispatcher for spectra
getMspctVersion

Get the "mspct.version" attribute
is_tagged

Query if it is an spectrum is tagged
is.old_spct

Query if an object has old class names
interpolate_spct

Map a spectrum to new wavelength values.
sun.daily.spct

Daily solar spectral irradiance (simulated)