Skip to content

Commit 358e9a6

Browse files
committed
Merge branch 'glatos_otn_animals' of github.com:ocean-tracking-network/surimi into glatos_otn_animals
2 parents ef16dbd + de62419 commit 358e9a6

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

R/ato_ani_from_glatos.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ato_ani_from_glatos <- function(glatos_file) {
2-
#Load the data file we've been given- probably detections data since published glatos data will only have detections and receivers.
2+
# Load the data file we've been given- probably detections data since published glatos data will only have detections and receivers.
33
glatos_data <- load_file(glatos_file)
4-
5-
#We don't really have the option here to get this from an 'animal metadata' file so we're always going to be deriving.
4+
5+
# We don't really have the option here to get this from an 'animal metadata' file so we're always going to be deriving.
66
ani <- make_ani(
77
animal = as.character(glatos_data$animal_id),
88
capture_location = as.character(glatos_data$capture_location),
@@ -14,7 +14,7 @@ ato_ani_from_glatos <- function(glatos_file) {
1414
release_lat = glatos_data$release_latitude,
1515
release_lon = glatos_data$release_longitude,
1616
tz = "UTC"
17-
)
18-
19-
return (ani)
20-
}
17+
)
18+
19+
return(ani)
20+
}

R/glatos_to_ato.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ glatos_to_ato <- function(glatos_detections, glatos_receivers = "") {
4848

4949
GLATOS_ATO <- add(GLATOS_ATO, dep)
5050

51-
# Tag information is not part of what's distributed in glatos publications so we can neither load it nor meaningfully derive it.
52-
51+
# Tag information is not part of what's distributed in glatos publications so we can neither load it nor meaningfully derive it.
52+
5353
ani <- ato_ani_from_glatos(glatos_detections)
54-
54+
5555
GLATOS_ATO <- add(GLATOS_ATO, ani)
5656

5757
return(GLATOS_ATO)

0 commit comments

Comments
 (0)