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

feat: Add Incidental Complete check #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 8 additions & 2 deletions check-ebird-checklist.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ It is essential that you manually adapt the value of the parameters used here to

- `chk_specialized_protocol` (*Protocol Error*): You might want to check the use of non-standard protocols.

- `chk_incidental_complete` (*Protocol Error*): Incidental checklists may not reflect all species.

```{r}
chk <- c %>%
mutate(
Expand All @@ -258,7 +260,8 @@ chk <- c %>%
chk_complete_media = all_species_reported & number_media==number_species,
chk_not_stationary = protocol_type == "Stationary" & number_species>50,
chk_specialized_protocol = !(protocol_type %in% c("Historical", "Traveling", "Incidental", "Stationary")),
chk_not_traveling = protocol_type=="Traveling" & effort_distance_km < 0.03
chk_not_traveling = protocol_type=="Traveling" & effort_distance_km < 0.03,
chk_incidental_complete = protocol_type=="Incidental" & all_species_reported
) %>%
mutate(across(starts_with("chk_"), ~replace_na(., FALSE)))

Expand Down Expand Up @@ -393,7 +396,10 @@ Your checklist(s) was flagged because of the high number of observers. Maybe the
",
specialized_protocol = "
Your checklist(s) was flagged because it uses a specialized protocol. Please make sure the use of the protocol is appropriate according to <a href=\"https://support.ebird.org/en/support/solutions/articles/48000950859-guide-to-ebird-protocols#anchorSpecialized\">eBird guide to protocols</a>."
)
),
incidental_complete = "
Your checklist(s) was flagged because it is marked as incidental, meaning that you weren't actively birding, but the checklist was marked as complete, meaning that all birds in the area were counted. Are you sure that you logged all species at the time?
"
```

### Email per check
Expand Down
3 changes: 2 additions & 1 deletion check_ebird_checklists/check_ebird_checklists_fcn.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ create_chk <- function(txt_file, too_many_species, too_many_species_stationary,
too_fast = effort_distance_km/duration_minutes*60 > 60,
complete_media = nocturnal == FALSE & all_species_reported & number_media == number_species,
not_stationary = protocol_type == "Stationary" & number_species > too_many_species_stationary,
not_traveling = protocol_type=="Traveling" & effort_distance_km < 0.03
not_traveling = protocol_type=="Traveling" & effort_distance_km < 0.03,
incidental_complete = protocol_type=="Incidental" & all_species_reported
) %>%
mutate(pelagic_too_long = ifelse(protocol_type == "eBird Pelagic Protocol" & duration_minutes > 75, TRUE, FALSE)) %>%
mutate(specialized_protocol = !(protocol_type %in% c("Historical", "Traveling", "Incidental", "Stationary"))) %>%
Expand Down