Skip to content

Commit

Permalink
fixed names
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinuzziFrancesco committed May 17, 2024
1 parent e9951c9 commit 7420f15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data/spectral-indices-dict.json
Original file line number Diff line number Diff line change
Expand Up @@ -4870,7 +4870,7 @@
"MODIS"
],
"reference": "https://doi.org/10.22541/essoar.171561872.22414664/v1",
"short_name": "sNIRvNDVIxLSWI"
"short_name": "sNIRvNDVILSWIP"
},
"sNIRvNDVILSWIS": {
"application_domain": "vegetation",
Expand All @@ -4891,7 +4891,7 @@
"MODIS"
],
"reference": "https://doi.org/10.22541/essoar.171561872.22414664/v1",
"short_name": "sNIRvNDVIxLSWI"
"short_name": "sNIRvNDVILSWIS"
},
"sNIRvSWIR": {
"application_domain": "vegetation",
Expand Down
8 changes: 4 additions & 4 deletions src/indices_funcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -696,11 +696,11 @@ end

indices_funcs["OSAVI"] = OSAVI_func

function sNIRvNDVIxLSWI_func(::Type{TFL}, N, R, S2) where {TFL <: Number}
function sNIRvNDVILSWIP_func(::Type{TFL}, N, R, S2) where {TFL <: Number}
return ((N - R)/(N + R)) * ((N - S2)/(N + S2)) * N
end

indices_funcs["sNIRvNDVILSWIP"] = sNIRvNDVIxLSWI_func
indices_funcs["sNIRvNDVILSWIP"] = sNIRvNDVILSWIP_func

function AFRI2100_func(::Type{TFL}, N, S2; const1::Number=TFL(0.5), const2::Number=TFL(0.5)) where {TFL <: Number}
return (N - const1 * S2) / (N + const2 * S2)
Expand Down Expand Up @@ -1254,11 +1254,11 @@ end

indices_funcs["NDSII"] = NDSII_func

function sNIRvNDVIxLSWI_func(::Type{TFL}, N, R, S2) where {TFL <: Number}
function sNIRvNDVILSWIS_func(::Type{TFL}, N, R, S2) where {TFL <: Number}
return (((N - R)/(N + R)) + ((N - S2)/(N + S2))) * N
end

indices_funcs["sNIRvNDVILSWIS"] = sNIRvNDVIxLSWI_func
indices_funcs["sNIRvNDVILSWIS"] = sNIRvNDVILSWIS_func

function NIRvH2_func(::Type{TFL}, N, R, k, lambdaN, lambdaR) where {TFL <: Number}
return N - R - k * (lambdaN - lambdaR)
Expand Down

0 comments on commit 7420f15

Please sign in to comment.