Skip to content

Commit

Permalink
Merge branch 'file_testing' of github.com:EvolEcolGroup/pastclim into…
Browse files Browse the repository at this point in the history
… file_testing
  • Loading branch information
dramanica committed Sep 12, 2023
2 parents e3905fe + fdaec41 commit 0d27b28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/download_worldclim_future.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ download_worldclim_future <- function(dataset, bio_var, filename){
sds_list[[new_var_name]]<-terra::rast(lapply(wc_list, terra::subset,subset=i_var))
names(sds_list[[new_var_name]])<-rep(new_var_name,nlyr((sds_list[[new_var_name]])))
}
browser()
wc_sds <- terra::sds(sds_list)

terra::writeCDF(wc_sds,filename=filename, compression=9,
Expand Down
5 changes: 5 additions & 0 deletions data-raw/helper_functions/verify_files_by_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ if (any(problem_rows)){
} else {
cat("all files are fine")
}


### There is a problem with how we are renaming variables when downloading future worldclim
# monthly variables (it's not working)
# check line 78

0 comments on commit 0d27b28

Please sign in to comment.