Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions R/download_chelsa_trace21k.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
file_yr_id <- as.numeric(gsub(".*_(\\-?\\d+)_.*", "\\1", download_url))
download_url <- download_url[match(yr_id, file_yr_id)]

# hack to deal with missing file in temperature_min_07
if (bio_var=="temperature_min_07"){

Check warning on line 68 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=68,col=14,[infix_spaces_linter] Put spaces around all infix operators.

Check warning on line 68 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=68,col=37,[brace_linter] There should be a space before an opening curly brace.

Check warning on line 68 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=68,col=37,[paren_body_linter] Put a space between a right parenthesis and a body expression.
download_url[grep("CHELSA_TraCE21k_tasmin_7_-13_V1.0.tif",download_url)]<-

Check warning on line 69 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=69,col=63,[commas_linter] Put a space after a comma.

Check warning on line 69 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=69,col=77,[infix_spaces_linter] Put spaces around all infix operators.
"https://os.zhdk.cloud.switch.ch/chelsav1/chelsa_trace/tasmin/CHELSA_TraCE21k_tasmin_7_-12_V1.0.tif" #nolint
}
if (bio_var=="temperature_max_07"){

Check warning on line 72 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=72,col=14,[infix_spaces_linter] Put spaces around all infix operators.

Check warning on line 72 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=72,col=37,[brace_linter] There should be a space before an opening curly brace.

Check warning on line 72 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=72,col=37,[paren_body_linter] Put a space between a right parenthesis and a body expression.
download_url[grep("CHELSA_TraCE21k_tasmax_7_-13_V1.0.tif",download_url)]<-

Check warning on line 73 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=73,col=63,[commas_linter] Put a space after a comma.

Check warning on line 73 in R/download_chelsa_trace21k.R

View workflow job for this annotation

GitHub Actions / lint

file=R/download_chelsa_trace21k.R,line=73,col=77,[infix_spaces_linter] Put spaces around all infix operators.
"https://os.zhdk.cloud.switch.ch/chelsav1/chelsa_trace/tasmax/CHELSA_TraCE21k_tasmax_7_-12_V1.0.tif" #nolint
}


if (virtual) {
if (!all(unlist(lapply(download_url, url_is_valid)))) {
stop(
Expand Down
Loading