Skip to content

Commit

Permalink
Merge pull request #659 from adokter/revert-658-integrate_to_ppi_NA_fix
Browse files Browse the repository at this point in the history
Revert "ignore NA in integrate_to_ppi"
  • Loading branch information
adokter authored Jun 4, 2024
2 parents 5604d79 + d6bfd47 commit a6b3485
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions R/integrate_to_ppi.R
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,6 @@ add_expected_eta_to_scan <- function(scan, vp, quantity = "dens",
attributes(eta_expected)$param <- "eta_expected"
scan$params$eta_expected <- eta_expected

# set eta_expected values to zero whenever the reflectivity quantity is NA
# NA values indicate the pixel was never irradiated, so no reflectivity return expected
na_idx <- is.na(scan$params[[param]]) & !is.nan(scan$params[[param]])
scan$params[["eta_expected"]][na_idx] <- 0

# return the scan with added scan parameters 'eta' and 'eta_expected'
scan
}

0 comments on commit a6b3485

Please sign in to comment.