dptt66700 2015-12-13 12:36
浏览 87

使用瑞士星历计算行星位置时出错

I've used Swiss Ephemeris to calculate planetary positions, using PHP and tested today's date 12-12- 2015, time 18:00 and location Delhi ( 29 N, 77 E)

Here are the results

Sun - 235 vs 236 on other sites (astrosage.com) Moon - 251 vs 249 Ascendant 160 vs 65

I've tried 3 different methods to calculate the longitude of the ascendant, but I've got it wrong all the time. Also the longitudes of the Sun and Moon vary in degrees.

    <?php
$year= 2015;
$month=12;
$date=12;
$time=18;
$geo_lat_delhi= 29;
$geo_long_delhi= 77;
$jul_day_UT = swe_julday($year,$month,$date,$time,SE_GREG_CAL);
$swe_day_ut = swe_sidtime($jul_day_UT);


echo "=======Sun sign===========";
$p = 0;
  $ret_flag_sun = swe_calc_ut($jul_day_UT,$p,SEFLG_SIDEREAL);
  echo '<pre>';
print_r($ret_flag_sun);

echo "=======Moon sign===========";
$p = 1;
  $ret_flag_moon = swe_calc_ut($jul_day_UT,$p,SEFLG_SIDEREAL);
  echo '<pre>';
print_r($ret_flag_moon);

echo "===Method1 Ascendant =Cusp [1]====";
$asc1 = swe_houses($jul_day_UT,$geo_lat_delhi,$geo_long_delhi,'A');
echo '<pre>';
print_r($asc1);

echo "===Method2 Ascendant =Cusp [1]====";
swe_set_sid_mode(SE_SIDM_LAHIRI,0,0);
$asc2 = swe_houses_ex($jul_day_UT,SEFLG_SIDEREAL,$geo_lat_delhi,$geo_long_delhi,'A');
echo '<pre>';
print_r($asc2);

echo "===Method3 Ascendant =Cusp [1]====";
$asc3 = swe_houses_ex($swe_day_ut,SEFLG_SIDEREAL,$geo_lat_delhi,$geo_long_delhi,'A');
echo '<pre>';
print_r($asc3);

exit;
?>

You can view the results here - farfaraway.co/swisscode.php

Do you any idea where am I going wrong, any help will be much appreciated.

Cheers!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思