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

Sunset times are off for Australia #172

Open
mhollanders opened this issue Sep 15, 2023 · 3 comments
Open

Sunset times are off for Australia #172

mhollanders opened this issue Sep 15, 2023 · 3 comments

Comments

@mhollanders
Copy link

Hi there,

The follow code gives me the wrong sunrise and sunset times for eastern Australia; Google tells me sunset is at 17:38 AEST (UTC+10).

getSunlightTimes(date = ymd("2023-09-15"),
                 lat = 28.865, lon = 153.565,
                 tz = "Etc/GMT+10",
                 keep = c("sunrise", "sunset"))
    date    lat     lon             sunrise              sunset

1 2023-09-15 28.865 153.565 2023-09-14 09:31:32 2023-09-14 21:53:54

Any idea what's going on?

Matt

@virtualgeoff
Copy link

Australia is in the Southern Hemisphere; latitude should be negative!

@mhollanders
Copy link
Author

Hi, you're correct. -28.865, 153.565 still gives the wrong results.

    date     lat     lon             sunrise              sunset

1 2023-09-15 -28.865 153.565 2023-09-14 09:46:16 2023-09-14 21:39:09

@sepsep361
Copy link

sepsep361 commented Nov 13, 2023

I've got the same problem as you. Change time zone of your computer.

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

No branches or pull requests

3 participants