Skip to content

Commit

Permalink
fix time_since_melt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Oct 17, 2024
1 parent 180b626 commit aa3b8cc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: raadtools
Type: Package
Title: Tools for Synoptic Environmental Spatial Data
Version: 0.7.0
Version: 0.7.0.2
Authors@R: c(
person("Michael D.","Sumner", role = c("aut", "cre"), email = "[email protected]"),
person("Ben", "Raymond", role = "ctb", email = "[email protected]")
Expand Down Expand Up @@ -46,5 +46,5 @@ BugReports: https://github.com/AustralianAntarcticDivision/raadtools/issues
Description: Tools for reading, plotting and manipulating spatial data,
particularly from remote sensing and model output.
License: GPL-3
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Remotes: AustralianAntarcticDivision/raadfiles
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

* `readtopo()` now defaults to GEBCO 2023.

* Replace old form of time_since_melt with fancy new duckdb process.
* Replace old form of time_since_melt with fancy new duckdb process and checked it's working with extract().

* Fixed matching files bug for 8 day intervals.

Expand Down
10 changes: 8 additions & 2 deletions R/deriv.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,14 @@ readderivice <- function(date,

date <- timedateFrom(date)
files <- .processFiles(date, files, time.resolution)

out <- raster::stack(lapply(files$date, calc_time_since_melt, trx = cfiles0))

## doesn't matter which file for "time_since_melt"
if (product == "time_since_melt") {

out <- raster::stack(lapply(files$date, calc_time_since_melt, trx = files$fullname[1L]))
} else {
print("only product 'time_since_melt' currently supported ")
}
setZ(out, files$date)
}

Expand Down
2 changes: 1 addition & 1 deletion man/extract.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions man/raadtools-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa3b8cc

Please sign in to comment.