Accurate setting and rising times for punctual bodies #29
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.
This changes the method to compute setting and rising times for punctual bodies in order to achieve better precision.
This new method is based on Practical Astronomy with your Calculator or Spreadsheet as it makes it easier to add a vertical shift component and reach more accurate apparent coordinates.
This profoundly changes
Astronoby::Refraction
class in naming and flexibility. It now allows to either return a refraction angle, or corrected horizontal coordinates.A new
Astronoby::Observer
class is introduced to represent an observer and several component based on their location such as the temperature, elevation and atmospheric pressure, if such information are available.For now,
Astronoby::Body
doesn't benefit much from these new changes. The class will probably be refactored at some point depending on the features that will be developed around rising and setting times for different bodies such as stars, planets, etc.