-
Notifications
You must be signed in to change notification settings - Fork 41
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
latitude more than 65: Error value should not be infinite or NaN #37
Comments
The error happens, because on the calculation of Astronomical.correctedHourAngle for sunrise with the coordinates given, the value passed to calculate degree is -1.0000000008014773. This is impossible to achieve hence error occurs. |
yes the bug is there. I tried to solve it in the plugin by checking the value passed to acos function: snippet code (before changing):
snippet code (after changing):
the exception is gone and it worked as expected, but i am not sure if the time given is correct or not? |
Have you found a solution? At the moment, the library throws an exception if the latitude is greater than 73 degrees |
Changes are causing tests to fail! |
Describe the bug
latitude values between (-67.5944046 and -90) and between (65.9277379 and 90)
throw Unhandled exception!
To Reproduce
minimum code that reproduce the error:
Expected behavior
should output the actual time of the giving parameters.
but it throws an error:
run flutter doctor:
Environment(please complete the following information):
The text was updated successfully, but these errors were encountered: