Skip to content

calculation error rise/set #10

Description

@australopitheque

I tested your library with my own test information and I have a problem with the result,
here are the modifications I made:

// Set location on earth for horizontal coordinates transformations
Ephemeris::setLocationOnEarth(35,30,00, // Lat: 35°30'00"
-0,30,00); // Lon: -0°30'00"

// East is negative and West is positive
Ephemeris::flipLongitude(true);

// Set altitude to improve rise and set precision
Ephemeris::setAltitude(75);

// Choose a date and time
int day=17,month=1,year=2024,hour=18,minute=21,second=0;

here is the result I got on an arduino DUE (I'm only showing you the moon part):

Earth's Moon
R.A: 01h20m30s.97
Dec: 08d19'35".08
Azi: 203.51d
Alt: 60.93d
Rise: 10h59m21.30s
Set: 0h3m56.02s
Dist: 373019.41 Km
Diam: 32.41'

if you look carefully the set is for the next day and not for the same day.
USNOA result:

17 jan USNOA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions