You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -73,7 +73,7 @@ public class AstronomicalCalendar implements Cloneable {
* 90° below the vertical. Used as a basis for most calculations since the location of the sun is 90° below the horizon
* at sunrise and sunset.
* <b>Note </b>: it is important to note that for sunrise and sunset the {@link AstronomicalCalculator#adjustZenith(double,
* double, LocalDate) adjusted zenith} is required to account for the radius of the sun and refraction. The adjusted zenith should
* double, double, LocalDate) adjusted zenith} is required to account for the radius of the sun and refraction. The adjusted zenith should
* not be used for calculations above or below 90° since they are usually calculated as an offset to 90°.
*/
public static final double GEOMETRIC_ZENITH = 90;
Expand DownExpand Up
@@ -110,16 +110,16 @@ public class AstronomicalCalendar implements Cloneable {
/**
* The getSunrise method returns a {@code Instant} representing the {@link AstronomicalCalculator
* #getElevationAdjustment(double) elevation adjusted} sunrise time. The zenith used for the calculation uses {@link
* #GEOMETRIC_ZENITH geometric zenith} of 90° plus {@link AstronomicalCalculator#getElevationAdjustment(double)}. This is
* #getElevationAdjustment(double, double) elevation adjusted} sunrise time. The zenith used for the calculation uses {@link
* #GEOMETRIC_ZENITH geometric zenith} of 90° plus {@link AstronomicalCalculator#getElevationAdjustment(double, double)}. This is
* adjusted by the {@link AstronomicalCalculator} to add approximately 50/60 of a degree to account for 34 arcminutes of
* refraction and 16 arcminutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith 90.83333°}.
* refraction and 16 arcminutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith(double, double, double, LocalDate) 90.83333°}.
* See documentation for the specific implementation of the {@link AstronomicalCalculator} that you are using.
*
* @return the {@code Instant} representing the exact sunrise time. If the calculation can't be computed such as in the
* Arctic Circle where there is at least one day a year where the sun does not rise, and one where it does not set, a
* {@code null} will be returned. See detailed explanation on top of the page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.