Skip to content
Discussion options

You must be logged in to vote

Does something like this work?

$astrolib = \App\Models\Astrolib::getInstance()->getAstronomyLibrary();

$geo_coords = new GeographicalCoordinates($longitude,$latitude);
// Calculate the Equatorial Coordinates of the Moon
$moondate   = Carbon::create($year, $month, $day, $hour);
$moon  = new Moon();
   
$greenwichSiderialTime = deepskylog\AstronomyLibrary\Time::apparentSiderialTimeGreenwich($moondate->subDay());
$deltaT = $astrolib->getDeltaT();

$moon = new \deepskylog\AstronomyLibrary\Targets\Moon();
$heightOfLocation = 10;   // In meters
$moon->calculateEquatorialCoordinates($moondate, $geo_coords, $heightOfLocation);
$moon->calculateEphemerides($geo_coords, $greenwichSiderialTime, $deltaT

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WimDeMeester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants