We’d like to be able to download the locations of all stations in California (other than the ones that our tagged birds have visited) in order to identify the landcover and other biotic and abiotic features that our tagged birds are not frequenting. Is there a way to download just the station locations that our tagged birds have not visited, and thus not part of the regular project data download?
You can get a list of all receivers from your SQLiteConnection object generated with tagme
tbl_recvDeps ← tbl(sql_motus, “recvDeps”)
df_projRecvs ← tbl_recvDeps %>% collect() %>% as.data.frame() %>% mutate(timeStart = as_datetime(tsStart),timeEnd = as_datetime(tsEnd)) %>% filter(is.na(timeEnd)) %>% filter(!is.na(latitude))
Then you can filter the full dataset by lat/long fields (to get California stations), time period of interest and to remove the stations your birds visited.
Hi Brian, you can use the metadata() function to access receiver metadata (lat/lon, deployment start and end dates, etc) for all projects in the network. You could then filter that down to all stations in California and remove the ones your tagged birds have visited. Details are here: Chapter 3 - Accessing detections data • motus
The caveat is that just because a station was deployed, it wasn’t necessarily active that whole time (e.g. low battery on a solar powered station during an extended period of overcast weather - a bird could have been there but the station wasn’t working to detect it). If you wanted to get into that level of detail, you would want to look at the activity table. The activityAll() function might be helpful in this case, though I haven’t used it before myself so I’m not too familiar.
Thanks Ian!
Thanks Amie!