Skip to content

Commit

Permalink
update catalog #82
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Oct 5, 2023
1 parent 5f98ed3 commit dc5c982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/shortcuts.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ getPRISM = function(AOI, varname = NULL,
raw = climater_filter(id = "prism_daily",
startDate = startDate, endDate = endDate,
varname = varname)

if(is.null(endDate)){ endDate = startDate }

d1 = seq.Date(as.Date(startDate), as.Date(endDate), by = 'day')
Expand Down Expand Up @@ -528,7 +528,7 @@ getLCMAP = function(AOI, year = 2019, type = "primary landcover"){
getWorldClim = function(AOI = NULL, varname = NULL, model = "wc2.1_5m",
month = 1:12, verbose = TRUE){

raw = climater_filter(id = "WorldClim2.1", AOI = AOI, varname = varname, model = model) |>
raw = climater_filter(id = "WorldClim2.1", AOI = AOI, varname = varname, model = model) %>%
filter(grepl(paste(month.name[month], collapse = "|"), description))

if(nrow(raw) > 0){
Expand Down
Binary file modified data/catalog.rda
Binary file not shown.

0 comments on commit dc5c982

Please sign in to comment.