Skip to content

Commit

Permalink
add risso from SEFSC
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwalkernoaa committed Sep 29, 2023
1 parent 3ecb2e8 commit 0e68ca0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion r/R/external.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,20 @@ targets_external <- list(
"sei", "SEWH",
"minke", "MIWH",

"beaked", "GEBW",
"beaked", "GOBW",
"beaked", "BLBW",
"beaked", "MEME",
"beaked", "SOBW",
"beaked", "NBWH",

"kogia", "UNKO",

"dolphin", "UNDO",
"risso", "GRAM",

"pilot", "PIWH",

"sperm", "SPWH",
"harbor", "HAPO"
)
Expand Down Expand Up @@ -239,16 +248,21 @@ targets_external <- list(
presence = coalesce(presence, "na"),
species_code = case_when(
theme == "beaked" ~ species_code,
theme == "dolphin" ~ species_code,
TRUE ~ NA_character_
),
species = case_when(
species_code == "BLBW" ~ "Blainville's",
species_code == "GEBW" ~ "Gervais'",
species_code == "GOBW" ~ "Cuvier's",
species_code == "MEME" ~ "Unid. Mesoplodon",
species_code == "NBWH" ~ "Northern Bottlenose",
species_code == "SOBW" ~ "Sowerby's",
# species_code == "UNDO" ~ "Unid. Dolphin",
# species_code == "GRAM" ~ "Risso's Dolphin",
TRUE ~ NA_character_
)
) %>%
) %>%
select(-species_code)
}),
tar_target(external, {
Expand Down
2 changes: 0 additions & 2 deletions r/R/pacm.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ targets_pacm <- list(
"20Hz pulse" = "FWPLS",
"Song & Social" = "HWMIX",
"Pulse Train" = "MWPT",
"Narrow band high frequency click" = "NBHF CLICKS",
"Narrow band high frequency click" = "NBHF",
"Usual click" = "SPUSC",
"30-80Hz downsweep" = "SWDS",
"Upcall" = "UPCALL",
"Dolphin clicks" = "ODCLICK",
Expand Down
4 changes: 4 additions & 0 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export const themes = [
id: 'dolphin',
label: 'Dolphin (Unidentified)'
},
{
id: 'risso',
label: 'Risso\'s Dolphin'
},
{
divider: true
},
Expand Down

0 comments on commit 0e68ca0

Please sign in to comment.