-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxa.py
39 lines (34 loc) · 1.09 KB
/
taxa.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def is_non_finnish(taxon):
# Note that these are used as partial match -> don't add very short names
# Don't add too many taxa here, only those that are consistently identified given for a common Finnish species. Adding too many names here will hide valid observations of interesting taxa, like Formicarius rufipectus that was Numenius arquata.
non_finnish_taxa = [
"Engine",
"Siren",
"Canis lupus",
"Pipilo ",
"Vireo ",
"Cardinalis ",
"Myadestes ",
"Poecile ",
"Tympanuchus ",
"Sialia ",
"Brachyramphus ",
"Baeolophus ",
"Haemorhous ",
"Piranga ",
"Myiarchus ",
"Brotogeris ",
"Geothlypis trichas",
"Setophaga ",
"Dendrocygna ",
"Hylocichla mustelina",
"Turdus migratorius",
"Setophaga ",
"Cyanocitta cristata",
"Manorina melanophrys",
"LAST ITEM WITHOUT COMMA"
]
for non_finnish in non_finnish_taxa:
if non_finnish in taxon:
return True
return False