Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
jbferet committed Feb 8, 2024
2 parents 2be80e5 + 1397fae commit 568d132
Show file tree
Hide file tree
Showing 4 changed files with 450 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: prospect
Title: PROSPECT leaf radiative transfer model and inversion routines
Version: 1.6.2
Version: 1.7.0
Authors@R: c(person(given = "Jean-Baptiste",
family = "Feret",
email = "jb.feret@teledetection.fr",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# prospect v1.7.0
## fix
- corrected inaccurate accounting for N when computing bNm1

# prospect v1.6.2
## fix
- fixed wrong merge for correction of JOSS paper
Expand Down
2 changes: 1 addition & 1 deletion R/Lib_PROSPECT.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ PROSPECT <- function(SpecPROSPECT = NULL, Input_PROSPECT = NULL,
a <- (1 + rq - tq + D) / (2 * r)
b <- (1 - rq + tq + D) / (2 * t)

bNm1 <- b**(N - 1)
bNm1 <- b**(Input_PROSPECT$N - 1)
bN2 <- bNm1**2
a2 <- a**2
denom <- a2 * bN2 - 1
Expand Down
Loading

0 comments on commit 568d132

Please sign in to comment.