Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting wrong AscMCVals #47

Open
bkindu opened this issue Jun 25, 2024 · 0 comments
Open

getting wrong AscMCVals #47

bkindu opened this issue Jun 25, 2024 · 0 comments

Comments

@bkindu
Copy link

bkindu commented Jun 25, 2024

public double CalculateHouseCusps(double theLati, double theLongi, double theGMT, long ayanamsaType)
{
// Given latitude, longitude, GMT full date and time, and Ayanamsa Type, returns Lagna Degrees
double[] bhavaCusps = new double[13]; // 12 houses + 1 for unused index
double[] AscMCVals = new double[10];
double timeJulian;
double retVal;

 timeJulian = theGMT ;

  _sweph.swe_set_sid_mode(SwissEph.SE_SIDM_LAHIRI, 0, 0);

 // bhavaCusps and AscMCVals are assumed to be global arrays
 // "P" is used as a character for Placidius house system

 retVal = _sweph.swe_houses_ex(timeJulian, SwissEph.SEFLG_SIDEREAL, theLati, theLongi, 'P', bhavaCusps, AscMCVals);

 double CalcLagnaDegrees = AscMCVals[0];
 if (CalcLagnaDegrees > 360)
 {
     CalcLagnaDegrees -= 360;
 }
 Deg2DMS(CalcLagnaDegrees);
 return CalcLagnaDegrees;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant