FirstGuess: FirstGuess

Description Usage Arguments Value Author(s) Examples

View source: R/Spectral_fitting_methods.R

Description

Calculate the first guess of fluorescence and true reflectance based on gaussian function and spline fitting on apparent reflectance

Usage

1
FirstGuess(wl, L, E, fluoFG, O2band)

Arguments

wl

numeric vector: wavelength vector

L

numeric vector: measued reflected radiance

E

numeric vector: measured solar radiance

fluoFG

numeric value: fluorescence estimate derived from iFLD method

O2band

character value: A or B referring to the oxygen absorption band where to compute the fluorescence estimation

Value

list of the first guess (including lower and upper boundaries) of the parameters needed for the optimization

Author(s)

Tommaso Julitta, Mirco Migliavacca, Thomas Wutzler

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  





data("FloX_data")


data("up_coeff")


data("dw_coeff")


data("wl_FloX")





#Get Target Radiance 


L<-GetRadiance(DNSignal=FloX_data$L-FloX_data$dcL,IntegrationTime=FloX_data$IT_L/1000,RadCalCoeff=dw_coeff);L<-L[,1]


#Get Solar Radiance 


E<-GetRadiance(DNSignal=FloX_data$E-FloX_data$dcE,IntegrationTime=FloX_data$IT_E/1000,RadCalCoeff=up_coeff);E<-E[,1]


#Estimate fluorescence using iFLD method, used as first guess for Spectral Fitting Methods


iFLD_O2B<-iFLD(wl=wl_FloX,E,L,fwhm =0.4,O2band="B")


#Define range used for =2B band


range<-which(wl_FloX>684& wl_FloX<700)


#Subset the wavelength vector


WL<-wl_FloX[range]


E_sfm<-as.numeric(E[range])


L_sfm<-as.numeric(L[range])


fluoFG<-iFLD_O2B$Fluo


#Compute the first guess parameter both for reflectance and fluorescence


fg<-FirstGuess(wl = WL,L = L_sfm,E = E_sfm, fluo = iFLD_O2B$Fluo,O2band= "B")

tommasojulitta/FieldSpectroscopyDP documentation built on March 12, 2020, 1:42 p.m.