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

Adding day-length function to the calculator? #4749

Closed
rdstern opened this issue Jul 2, 2018 · 0 comments
Closed

Adding day-length function to the calculator? #4749

rdstern opened this issue Jul 2, 2018 · 0 comments
Assignees
Milestone

Comments

@rdstern
Copy link
Collaborator

rdstern commented Jul 2, 2018

In analysing the sunshine data it would be good to include a function that calculates the daylength.

There are various R packages that have this. It is very simple with the geosphere package, and that looks potentially a useful package for us anyway, now we are more into mapping?

For example, with the Dodoma data just use geosphere::(-6.1630,Date) into a column called daylength and you are away!
The chillR package that we have already also has a daylength command, but that produces a list and seems more complicated to use.

Could we decide which package to use and then possibly add this to the dates keyboard in the calculator? It would be useful for the Pretoria workshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants