Skip to content

Commit

Permalink
Note on fixing future monthly
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Sep 8, 2023
1 parent 2e38302 commit fdaec41
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 @@ -77,6 +77,7 @@ download_worldclim_future <- function(dataset, bio_var, filename){
sds_list[[i_var]]<-terra::rast(lapply(wc_list, terra::subset,subset=i_var))
names(sds_list[[i_var]])<-rep(i_var,nlyr((sds_list[[i_var]])))
}
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 @@ -21,3 +21,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 fdaec41

Please sign in to comment.