-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# ============================================================================== | ||
# prospect | ||
# Lib_PROSPECT.R | ||
# ============================================================================== | ||
# PROGRAMMERS: | ||
# Jean-Baptiste FERET <[email protected]> | ||
# Florian de Boissieu <[email protected]> | ||
# Copyright 2020/04 Jean-Baptiste FERET | ||
# ============================================================================== | ||
# This Library includes functions dedicated to PROSPECT simulation | ||
# ============================================================================== | ||
#' ############################################################################# | ||
#' prospect | ||
#' Lib_PROSPECT.R | ||
#' ############################################################################# | ||
#' PROGRAMMERS: | ||
#' Jean-Baptiste FERET [email protected] | ||
#' Florian de Boissieu [email protected] | ||
#' Copyright 2020/04 Jean-Baptiste FERET | ||
#' ============================================================================= | ||
#' This Library includes functions dedicated to PROSPECT simulation | ||
#' ============================================================================= | ||
|
||
#' core function running PROSPECT | ||
#' This function allows simulations using PROSPECT-D or PROSPECT-PRO depending | ||
|
@@ -122,7 +122,7 @@ PROSPECT <- function(SpecPROSPECT = NULL, Input_PROSPECT = NULL, | |
|
||
# Case of zero absorption | ||
j <- which(r + t >= 1) | ||
Tsub[j] <- t[j] / (t[j] + (1 - t[j]) * (N - 1)) | ||
Tsub[j] <- t[j] / (t[j] + (1 - t[j]) * (Input_PROSPECT$N - 1)) | ||
Rsub[j] <- 1 - Tsub[j] | ||
|
||
# leaf reflectance and transmittance : combine top layer with next N-1 layers | ||
|