Skip to content

Commit

Permalink
Update modules/assim.sequential/R/downscale_function.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mdietze authored Jun 3, 2024
1 parent 3f20e8c commit ed8394f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/assim.sequential/R/downscale_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NA_downscale <- function(data, coords, date, C_pool, covariates){
names(carbon_data) <- paste0("ensemble",seq(1:ncol(carbon_data)))

# Extract predictors from covariates raster using site coordinates
predictors <- as.data.frame(terra::extract(covariates, site_coordinates))
predictors <- as.data.frame(terra::extract(covariates, site_coordinates,ID = FALSE))
predictors <- dplyr::select(predictors, -ID)

# Combine each ensemble member with all predictors
Expand Down

0 comments on commit ed8394f

Please sign in to comment.