Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.4patch #142

Merged
merged 5 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: amadeus
Title: Accessing and Analyzing Large-Scale Environmental Data
Version: 1.1.6
Version: 1.1.7
Authors@R: c(
person(given = "Mitchell", family = "Manware", role = c("aut", "ctb"), comment = c(ORCID = "0009-0003-6440-6106")),
person(given = "Insang", family = "Song", role = c("aut", "ctb"), comment = c(ORCID = "0000-0001-8732-3256")),
Expand Down
9 changes: 8 additions & 1 deletion R/calculate_covariates.R
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,14 @@ calculate_hms <- function(
paste0("medium_", radius),
paste0("heavy_", radius)
)
skip_merge <- merge(locs, skip_df)
# fixed: locs is replicated per the length of from
skip_merge <-
Reduce(rbind,
Map(function(x) {
cbind(locs, skip_df[rep(x, nrow(locs)), ])
}, seq_len(nrow(skip_df)))
)

skip_return <- calc_return_locs(
skip_merge,
POSIXt = TRUE,
Expand Down
9 changes: 4 additions & 5 deletions R/process.R
Original file line number Diff line number Diff line change
Expand Up @@ -2091,12 +2091,11 @@ process_geos <-
paths <- list.files(
path,
pattern = "GEOS-CF.v01.rpl",
full.names = TRUE
full.names = TRUE,
recursive = TRUE
)
paths <- paths[grep(
".nc4",
paths
)]
paths <- grep(".nc4$", paths, value = TRUE)

#### identify dates based on user input
dates_of_interest <- generate_date_sequence(
date[1],
Expand Down
Loading