Hello Yan,
I am developing an application using SwissEphNet. I use the following code to get the houses:-
using (SwissEph eph = new SwissEph())
{
eph.swe_set_ephe_path("Data");
eph.swe_set_sid_mode(SwissEph.SE_SIDM_LAHIRI, 0, 0);
var hour = native.Hours + (native.Minutes / 60) + (native.Seconds / 3600);
var julianNum = eph.swe_julday(year: native.Year, mon: native.Month, mday: native.Day, hour: hour, gregflag: SwissEph.SE_GREG_CAL);
var builder = new StringBuilder();
builder.Append(detailsTextBox.Text);
var cusps = new double[13];
var ascmc = new double[10];
var error = eph.swe_houses(tjd_ut: julianNum, geolat: native.Lat, geolon: native.Lng, hsys: 'P', cusps: cusps, ascmc: ascmc);
foreach (var item in cusps)
{
builder.Append(item-eph.swe_get_ayanamsa_ut(julianNum)).Append("\n");
}
}
After which I input following data:- date of birth 10 jan 1969 at 10:10 am Lat=30.9090157 Lon=75.851601 which gives an ascendant of Gemini which I know to be Pisces. So, this is off by quite a margin. Next I tried using the samples in Swiss ephemeris which also showed similar result. But on the astro site it is correctly reported as Pisces. Am I missing something?
P.S. I added the ayanmasa correction to see if this corrects the problem.
P.S. Ok I think I found it. I have to correct for time zone. India is +5:30 so I have to deduct 5.5 hours from the time.
Hello Yan,
I am developing an application using SwissEphNet. I use the following code to get the houses:-
After which I input following data:- date of birth 10 jan 1969 at 10:10 am Lat=30.9090157 Lon=75.851601 which gives an ascendant of Gemini which I know to be Pisces. So, this is off by quite a margin. Next I tried using the samples in Swiss ephemeris which also showed similar result. But on the astro site it is correctly reported as Pisces. Am I missing something?
P.S. I added the ayanmasa correction to see if this corrects the problem.
P.S. Ok I think I found it. I have to correct for time zone. India is +5:30 so I have to deduct 5.5 hours from the time.