Package: astronomyengine 0.1.0.9000

astronomyengine: R Bindings to the 'Astronomy Engine' C Library

Provides access to the 'Astronomy Engine' C library (<https://github.com/cosinekitty/astronomy>) by Don Cross. The library calculates positions of the Sun, Moon, and planets, and predicts astronomical events such as rise/set times, lunar phases, equinoxes, solstices, eclipses, and transits. It is based on the 'VSOP87' planetary model and is accurate to within approximately one arcminute. This package bundles the single-file C source so that other R packages can link against it via 'LinkingTo' without shipping their own copy.

Authors:Mitchell O'Hara-Wild [aut, cre], Don Cross [aut, cph]

astronomyengine_0.1.0.9000.tar.gz
astronomyengine_0.1.0.9000.zip(r-4.7)astronomyengine_0.1.0.9000.zip(r-4.6)astronomyengine_0.1.0.9000.zip(r-4.5)
astronomyengine_0.1.0.9000.tgz(r-4.6-x86_64)astronomyengine_0.1.0.9000.tgz(r-4.6-arm64)astronomyengine_0.1.0.9000.tgz(r-4.5-x86_64)astronomyengine_0.1.0.9000.tgz(r-4.5-arm64)
astronomyengine_0.1.0.9000.tar.gz(r-4.7-arm64)astronomyengine_0.1.0.9000.tar.gz(r-4.7-x86_64)astronomyengine_0.1.0.9000.tar.gz(r-4.6-arm64)astronomyengine_0.1.0.9000.tar.gz(r-4.6-x86_64)
astronomyengine_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
astronomyengine/json (API)
NEWS

# Install 'astronomyengine' in R:
install.packages('astronomyengine', repos = c('https://mitchelloharawild.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mitchelloharawild/astronomyengine/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.18 score 1 stars 168 downloads 74 exports 1 dependencies

Last updated from:78a4e6fddd. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK108
linux-devel-x86_64OK111
source / vignettesOK171
linux-release-arm64OK116
linux-release-x86_64OK115
macos-release-arm64OK90
macos-release-x86_64OK161
macos-oldrel-arm64OK93
macos-oldrel-x86_64OK257
windows-develOK126
windows-releaseOK77
windows-oldrelOK79
wasm-releaseOK98

Exports:astro_angle_from_sunastro_bary_stateastro_bodyastro_body_codeastro_body_nameastro_combine_rotationastro_current_timeastro_eclipticastro_ecliptic_longitudeastro_elongationastro_equatorastro_equator_from_vectorastro_geo_vectorastro_helio_vectorastro_horizonastro_horizon_from_vectorastro_hour_angleastro_identity_matrixastro_illuminationastro_inverse_rotationastro_make_timeastro_moon_phaseastro_next_lunar_eclipseastro_next_moon_quarterastro_next_transitastro_observer_gravityastro_observer_stateastro_observer_vectorastro_pair_longitudeastro_pivotastro_rotate_vectorastro_rotation_ECL_EQDastro_rotation_ECL_EQJastro_rotation_ECL_HORastro_rotation_ECT_EQDastro_rotation_ECT_EQJastro_rotation_EQD_ECLastro_rotation_EQD_ECTastro_rotation_EQD_EQJastro_rotation_EQD_HORastro_rotation_EQJ_ECLastro_rotation_EQJ_ECTastro_rotation_EQJ_EQDastro_rotation_EQJ_GALastro_rotation_EQJ_HORastro_rotation_GAL_EQJastro_rotation_HOR_ECLastro_rotation_HOR_EQDastro_rotation_HOR_EQJastro_search_altitudeastro_search_hour_angleastro_search_lunar_eclipseastro_search_max_elongationastro_search_moon_phaseastro_search_moon_quarterastro_search_peak_magnitudeastro_search_relative_longitudeastro_search_rise_setastro_search_sun_longitudeastro_search_transitastro_seasonsastro_sphere_from_vectorastro_sun_positionastro_vector_from_horizonastro_vector_from_sphereastro_vector_observernext_global_solar_eclipsenext_local_solar_eclipsenext_lunar_apsisnext_planet_apsissearch_global_solar_eclipsesearch_local_solar_eclipsesearch_lunar_apsissearch_planet_apsis

Dependencies:cpp11

Readme and manuals

Help Manual

Help pageTopics
Angle from the Sunastro_angle_from_sun
Barycentric position and velocity vectorsastro_bary_state
Celestial body codesastro_body
Get the integer code for a celestial body by nameastro_body_code
Get the name of a celestial bodyastro_body_name
Combine two rotation matricesastro_combine_rotation
Current UTC time according to Astronomy Engineastro_current_time
Convert J2000 equatorial coordinates to ecliptic coordinatesastro_ecliptic
Heliocentric ecliptic longitude of a bodyastro_ecliptic_longitude
Elongation of a celestial bodyastro_elongation
Topocentric equatorial coordinates of a celestial bodyastro_equator
Convert Cartesian Vector to Equatorial Coordinatesastro_equator_from_vector
Geocentric position vector of a celestial bodyastro_geo_vector
Heliocentric position vector of a celestial bodyastro_helio_vector
Horizontal coordinates of a celestial bodyastro_horizon
Convert Cartesian Vector to Horizontal Coordinatesastro_horizon_from_vector
Calculate the hour angle of a bodyastro_hour_angle
Create an identity rotation matrixastro_identity_matrix
Illumination data for a celestial bodyastro_illumination
Calculate the inverse of a rotation matrixastro_inverse_rotation
Create an astronomical time valueastro_make_time
Moon Phase Angleastro_moon_phase
Find the next lunar eclipse in a seriesastro_next_lunar_eclipse
Find Next Lunar Quarterastro_next_moon_quarter
Search for the next transit of Mercury or Venusastro_next_transit
Observer gravitational accelerationastro_observer_gravity
Observer position and velocity vector from geographic coordinatesastro_observer_state
Observer position vector from geographic coordinatesastro_observer_vector
Ecliptic longitude of one body relative to anotherastro_pair_longitude
Re-orient a rotation matrix by pivoting around an axisastro_pivot
Apply a rotation to a vectorastro_rotate_vector
Rotation Matrix from J2000 Ecliptic to Equatorial of-Dateastro_rotation_ECL_EQD
Rotation Matrix from ECL to EQJastro_rotation_ECL_EQJ
Rotation Matrix from ECL to HORastro_rotation_ECL_HOR
Rotation Matrix from ECT to EQDastro_rotation_ECT_EQD
Rotation Matrix from ECT to EQJastro_rotation_ECT_EQJ
Rotation Matrix from Equatorial of-Date to J2000 Eclipticastro_rotation_EQD_ECL
Rotation Matrix from EQD to ECTastro_rotation_EQD_ECT
Rotation Matrix from EQD to EQJastro_rotation_EQD_EQJ
Rotation Matrix from EQD to HORastro_rotation_EQD_HOR
Rotation Matrix from EQJ to ECLastro_rotation_EQJ_ECL
Rotation Matrix from EQJ to ECTastro_rotation_EQJ_ECT
Rotation Matrix from EQJ to EQDastro_rotation_EQJ_EQD
Rotation Matrix from EQJ to GALastro_rotation_EQJ_GAL
Rotation Matrix from J2000 Equatorial to Horizontalastro_rotation_EQJ_HOR
Rotation Matrix from GAL to EQJastro_rotation_GAL_EQJ
Rotation Matrix from HOR to ECLastro_rotation_HOR_ECL
Rotation Matrix from HOR to EQDastro_rotation_HOR_EQD
Rotation Matrix from Horizontal to J2000 Equatorialastro_rotation_HOR_EQJ
Search for when a body reaches a specified altitudeastro_search_altitude
Search for when a body reaches a specified hour angleastro_search_hour_angle
Search for a lunar eclipseastro_search_lunar_eclipse
Search for maximum elongationastro_search_max_elongation
Search for a Specific Moon Phaseastro_search_moon_phase
Find First Lunar Quarterastro_search_moon_quarter
Search for peak magnitude of Venusastro_search_peak_magnitude
Search for relative longitude event between Earth and another planetastro_search_relative_longitude
Search for the next rise or set time of a celestial bodyastro_search_rise_set
Search for Sun longitudeastro_search_sun_longitude
Search for a transit of Mercury or Venusastro_search_transit
Equinoxes and Solstices for a Given Yearastro_seasons
Convert Cartesian Vector to Spherical Coordinatesastro_sphere_from_vector
Sun's position in ecliptic coordinatesastro_sun_position
Convert Horizontal Coordinates to Cartesian Vectorastro_vector_from_horizon
Convert Spherical Coordinates to Cartesian Vectorastro_vector_from_sphere
Geographic coordinates from observer position vectorastro_vector_observer
Search for the next global solar eclipsenext_global_solar_eclipse
Search for the next local solar eclipsenext_local_solar_eclipse
Find the next lunar apsis eventnext_lunar_apsis
Find the next planetary apsis in a seriesnext_planet_apsis
Search for a global solar eclipsesearch_global_solar_eclipse
Search for a local solar eclipsesearch_local_solar_eclipse
Search for lunar apsis eventssearch_lunar_apsis
Search for the next planetary apsissearch_planet_apsis