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

Visualise hatchling fan angles #46

Open
florianm opened this issue Mar 17, 2021 · 3 comments
Open

Visualise hatchling fan angles #46

florianm opened this issue Mar 17, 2021 · 3 comments
Assignees
Labels
feature a feature request or enhancement

Comments

@florianm
Copy link
Contributor

Create a new R package leaflet-hatchlings

  • Template for R package wrapping Leaflet functions: leaflet.extras
  • Leaflet plugin to draw semicircles: Leaflet-semicircle
  • Add helpers to translate wastd_data$nest_fans/nest_fan_outliers/nest_lightsources to data for Leaflet-semicircle
  • Use any other Leaflet plugin to visualise
  • Write-up of data and draft spec for visualisation see https://github.com/dbca-wa/Leaflet.Hatchlings (this repo can then probably go away, seeing all necessary Leaflet vis components already exist - semicircle, lines, points)
@florianm florianm added the feature a feature request or enhancement label Mar 17, 2021
@florianm florianm added this to the Turtle Reporting 2020-21 milestone Mar 17, 2021
@florianm florianm self-assigned this Mar 17, 2021
@florianm
Copy link
Contributor Author

florianm commented Apr 6, 2022

Leaflet.Circle-sector wrapper created as a new R package: https://dbca-wa.github.io/leaflet.circlesector/
Now we can add wastdr::map_fanangles as:

florianm pushed a commit that referenced this issue Apr 6, 2022
* takes wastd_data
* filters to realspecies
* prepares data for display (popups could use more details)
* returns a leaflet map with fan angles, outliers, directions to water/mean fan, natural and artificial light sources
florianm pushed a commit that referenced this issue Apr 6, 2022
* Move arithmetic to mean_bearing
* Add misorientation to map_fanangles
@florianm
Copy link
Contributor Author

florianm commented Apr 6, 2022

Should refactor the data prep for fan angles into download wastd turtledata and use pmap for performance on mis_bearing and mean_bearing

@florianm
Copy link
Contributor Author

florianm commented Apr 8, 2022

Refactor done: expensive rowwise() calculations of misorientation and mean angles are pushed to download_wastd_turtledata.
TODO: should write a wrapper for https://github.com/jieter/Leaflet-semicircle/blob/master/Semicircle.js which is available on npm using derivePoints and invokeMethod and see if we can leverage vectorised leaflet::circle().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant