Skip to content

Commit

Permalink
fix base ellipsoidal height
Browse files Browse the repository at this point in the history
  • Loading branch information
wpetry committed Jul 8, 2024
1 parent 601e868 commit 1ed4ebb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
2 changes: 1 addition & 1 deletion R/llh_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ llh_summary <- function(llh, rnd = 0, ...) {
# prepare times for output
start <- format(start, "%Y-%m-%d %H:%M:%S")
end <- format(end, "%Y-%m-%d %H:%M:%S")
out$time <- data.frame(start = start, end = end, duration = dur)
out$time <- data.frame(start = start, end = end, duration = dur, samples = nrow(rawdat))
return(out)
}

Expand Down
2 changes: 1 addition & 1 deletion R/update_base.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ update_base <- function(points, newbase, base_row = NULL,
newbase <- newbase[base_row, ]
offsetN <- newbase$Latitude - points$Base.latitude
offsetE <- newbase$Longitude - points$Base.longitude
offsetU <- newbase$`Ellipsoidal height` - points$Ellipsoidal.height
offsetU <- newbase$`Ellipsoidal height` - points$Base.ellipsoidal.height
out <- points
out$Longitude <- out$Longitude + offsetE
out$Latitude <- out$Latitude + offsetN
Expand Down

0 comments on commit 1ed4ebb

Please sign in to comment.