WhaleMap
WhaleMap: a tool to collate and display whale survey results in near real-time - Published in JOSS (2021)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
1 of 6 committers (16.7%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Repository
Collate and visualize whale survey results in the NW Atlantic
Basic Info
- Host: GitHub
- Owner: hansenjohnson
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://whalemap.org/WhaleMap/
- Size: 106 MB
Statistics
- Stars: 23
- Watchers: 5
- Forks: 9
- Open Issues: 20
- Releases: 1
Metadata Files
README.md
WhaleMap
Collate and display whale survey results
Overview
The goal of this software is to rapidly and effectively collect and share whale survey information within and between research, government, industry, and public sectors. Our hope is that it will improve survey efficiency, increase public awareness, and inform impactful, transparent management decisions. The system is live at whalemap.org, and the interactive map is available here. Check out the WhaleMap publication in JOSS for a general description of the system, or continue reading for more detailed information. Please report any problems or suggestions via this site's issue page.
Project structure
data/ All WhaleMap data (NOT tracked via git)
raw/ Raw data cloned directly from data contributors (NEVER manually edited)
interim/ Data from each platform coeherced to WhaleMap format
processed/ Processed data used for display
R/ R scripts for data processing, display, and reporting
src/ Shell scripts to execute data cloning and processing
Makefile Maps project dependency structure and facilitates efficient processing with `make`
LICENSE License information
global.R Shiny app - defining global variables
server.R Shiny app - processing data for shiny app
ui.R Shiny app - defining the user interface
Data processing
Workflow
- Sync
The majority of the remote data are synced using the script src/get_remote_data.sh. This uses Rclone to sync data from remote repositories (Google Drive, Dropbox, etc.), and also calls R/get_dcs.R to download acoustic detection data. All the data are stored in data/raw/
- Process
Data from each contributor are processed to a common WhaleMap format (see below) using a custom R script (R/proc_*.R). Once formatted, observations and effort data from each platform are saved in data/interim/.
- Combine
All effort and observation data files in data/interim/ are combined by (R/combine.R) and saved as data/processed/effort.rds and data/processed/observations.rds, respectively.
- Repeat
A Makefile maps the dependency structure and orchestrates the efficient processing of the entire dataset. The make command is executed at the final step of src/get_remote_data.sh to update the dataset after synchronization. A cron job runs src/get_remote_data.sh every 15 minutes to keep the system up to date.
WhaleMap data formats
Observations
time - UTC time (YYYY-MM-DD HH:MM:SS)
lat - latitude in decimal degrees
lon - longitude in decimal degrees
date - UTC date (YYYY-MM-DD)
yday - day of year
year - year (YYYY)
platform - type of survey platform (vessel, plane, slocum, buoy, rpas, opportunistic)
name - name of platform (e.g., noaa_twin_otter, dfo_coriolis)
id - unique survey identifier comprised of survey start date, platform, and name (e.g., 2020-02-21_plane_noaa_twin_otter)
species - species name (right, fin, sei, humpback, blue)
score - detection type and score (Definite acoustic, Possible acoustic, Definite visual, Possible visual)
number - number of whales (NA for acoustic detections)
calves - number of calves (NA for acoustic detections)
source - data source (WhaleMap, RWSAS, WhaleInsight, NARWC)
Tracks
time - UTC time (YYYY-MM-DD HH:MM:SS)
lat - latitude in decimal degrees
lon - longitude in decimal degrees
date - UTC date (YYYY-MM-DD)
yday - day of year
year - year (YYYY)
platform - type of survey platform (vessel, plane, slocum, buoy, rpas, opportunistic)
name - name of platform (e.g., noaa_twin_otter, dfo_coriolis)
id - unique survey identifier comprised of survey start date, platform, and name (e.g., 2020-02-21_plane_noaa_twin_otter)
speed - platform speed (m/s)
altitude - platform altitude (m)
source - data source (WhaleMap, RWSAS, WhaleInsight, NARWC)
Status table
script - name of the platform processing script (e.g., proc_2021_noaa_twin_otter.R)
name - name of the platform to be displayed in the status table (e.g., NOAA NEFSC survey sightings/tracks)
url - link url to be displayed in status table
email_list - path to csv file with list of emails to be notified if there is an error processing platform data
Reporting
Error catching is performed in the Makefile using the scripts src/report_error.sh and src/remove_error.sh. These are run each time a platform-specific processing script is run. The results of the processing are recorded in the status table (status.txt). If processing is successful, a timestamp is added in the status table. If processing is unsuccessful, an error message is printed in the status table and an auto-generated email is sent to a designated email list associated with that platform (using src/send_email_alert.sh). The status table is displayed in the Shiny app.
Adding a new platform
- Update
src/get_remote_data.shto sync raw data - Write R script to convert to WhaleMap format and save observations and tracks in
data/interim. - Update
Makefile - Update
status.txt - Test (run
makeand view results in Shiny app) - Push changes to WhaleMap server via GitHub
Setup
R
Here is a list of the packages that WhaleMap relies on:
- Data wrangling: tidyverse, lubridate, tools, oce
- Mapping: rgdal, maptools, leaflet, leaflet.extras, sf
- Shiny: shiny, shinydashboard, shinybusy
- Misc: htmltools, htmlwidgets, plotly, RColorBrewer
Here's the output from sessionInfo():
```
sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.6 LTS
Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale:
[1] LCCTYPE=enCA.UTF-8 LCNUMERIC=C
[3] LCTIME=enCA.UTF-8 LCCOLLATE=enCA.UTF-8
[5] LCMONETARY=enCA.UTF-8 LCMESSAGES=enCA.UTF-8
[7] LCPAPER=enCA.UTF-8 LCNAME=C
[9] LCADDRESS=C LCTELEPHONE=C
[11] LCMEASUREMENT=enCA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] tools stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] rgeos0.3-26 RColorBrewer1.1-2 forcats0.4.0
[4] stringr1.3.1 dplyr0.8.0.1 purrr0.3.0
[7] readr1.1.1 tidyr0.8.2 tibble2.0.1
[10] tidyverse1.2.1 sf0.7-3 shinybusy0.1.2
[13] leaflet.extras1.0.0 plotly4.8.0 ggplot23.1.0
[16] shinydashboard0.7.0 oce0.9-23 gsw1.0-5
[19] testthat2.0.0 lubridate1.7.4 maptools0.9-2
[22] htmlwidgets1.3 htmltools0.3.6 rgdal1.2-18
[25] sp1.3-1 leaflet2.0.1 shiny_1.2.0
```
Linux / tools
Here's a list of other tools that WhaleMap relies on and the current version: - make (GNU Make 4.1) - rclone (rclone v1.38) - git (git version 2.7.4) - pandoc (pandoc 1.16.0.2) - shiny-verser (Shiny Server v1.5.7.907)
Owner
- Name: Hansen Johnson
- Login: hansenjohnson
- Kind: user
- Company: Dalhousie University
- Website: https://hansenjohnson.org/
- Repositories: 1
- Profile: https://github.com/hansenjohnson
PhD student in Biological Oceanography
JOSS Publication
WhaleMap: a tool to collate and display whale survey results in near real-time
Authors
Oceanography Department, Dalhousie University, 1355 Oxford Street, Halifax, Nova Scotia, Canada B3H 4R2
Oceanography Department, Dalhousie University, 1355 Oxford Street, Halifax, Nova Scotia, Canada B3H 4R2
Oceanography Department, Dalhousie University, 1355 Oxford Street, Halifax, Nova Scotia, Canada B3H 4R2
Tags
oceanography marine mammals conservationGitHub Events
Total
- Issues event: 1
- Watch event: 3
- Member event: 1
- Push event: 23
Last Year
- Issues event: 1
- Watch event: 3
- Member event: 1
- Push event: 23
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Hansen Johnson | h****n@d****a | 1,448 |
| Neyman | L****n@M****m | 13 |
| Heather Foley | h****y@n****v | 8 |
| Daniel Morrison | d****l@p****a | 3 |
| Kate McPherson | k****n@n****g | 2 |
| Heather Pettis | h****s@n****g | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 71
- Total pull requests: 0
- Average time to close issues: 10 months
- Average time to close pull requests: N/A
- Total issue authors: 7
- Total pull request authors: 0
- Average comments per issue: 1.23
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: 12 minutes
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- hansenjohnson (61)
- draker42 (4)
- mkcarr28 (2)
- leahcrowe (1)
- nunojesus (1)
- Bodenrader (1)
- Fireb1rd (1)