kunjara / jyotish

PHP library for calculations in Vedic astrology
http://jyotish.su
175 stars 118 forks source link

The degrees are not correct #27

Closed nitinmukesh closed 2 years ago

nitinmukesh commented 2 years ago

I finally managed to run this library.

I just need help on the degrees that are displayed, some of them are incorrect.

Name | Degree | Sign -- | -- | -- Lg | 30.5641445 | 2 MLg | 284.8969428 | 10 IL | 319.0930604 | 11 SL | 186.0767753 | 7 Sy | 12.6340374 | 1 Ch | 19.0930604 | 1 Ma | 351.8991198 | 12 Bu | 346.0644504 | 12 Gu | 97.005043 | 4 Sk | 341.1123327 | 12 Sa | 133.6469937 | 5 Ra | 141.5129365 | 5 Ke | 321.5129365 | 11

Correct

Ascendant 1 - Krittika Sun 0° 35′ Taurus Venus Jupiter 3 8,11 Pushya Saturn 7° 00′ Cancer Moon Saturn 4 9,10 Purva Phalguni Venus 13° 39′ Leo Sun Rahu 4 10 Purva Phalguni Venus 21° 31′ Leo Sun Mercury 11 2,5 Uttara Bhadrapada Saturn 16° 04′ Pisces Jupiter Venus 11 1,6 Uttara Bhadrapada Saturn 11° 07′ Pisces Jupiter Mars 11 7,12 Revati Mercury 21° 54′ Pisces Jupiter Sun 12 4 Ashwini Ketu 12° 38′ Aries Mars Moon 12 3 Bharani Venus 19° 06′ Aries Mars Ketu 10 7 Purva Bhadrapada Jupiter 21° 31′ Aquarius Saturn

Please help what is wrong

$Locality = new Locality([
            'longitude' => "77.70",
            'latitude' => "28.98",
            'altitude' => 0,
            ]);

$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Asia/Kolkata'));
$DateTime->setDate(1979, 4, 27);
$DateTime->setTime(6,45);
nitinmukesh commented 2 years ago

Found the solution

replaced <td><?php echo $graha['longitude']; ?></td>

with <td><?php echo $graha['degree']; ?></td>