Home | About Me | Wit Quotient | Brain Wanderers | Improve Skills | Business Acumen | Gyan Guru | Contact Me | Useful Links



Astrology Main Page



Lunar calculator:  Includes both non-parallax and parallax corrections and corresponding results.
The parallax view is the location where the moon appears to the observer and varies upto 1 degree from the geocentric view of the moon.






___________________________________________________________________________________________________________



Month:     Day:      Year:
Time:  Zone:   DST
Longitude: : East Latitude: : South



___________________________________________________________________________________________________________

Non-Parallax:

Nakshatra

Dasha:

Next Dasha:

Current Dasha:

Parallax:

Nakshatra

Dasha:

Next Dasha:

Current Dasha:

Days Difference:




Home | About Me | Wit Quotient | Brain Wanderers | Improve Skills | Business Acumen | Gyan Guru | Contact Me | Useful Links



You entered the following details:

' // -------------------------------------------------------------------------------- // INPUT VALUES ARE DISPLAYED HERE // -------------------------------------------------------------------------------- totalout = totalout + TABLE_BEG totalout = totalout + ROW_BEG + COL_BEG + 'Date of Birth (DD/MM/YYYY) ' + COL_END + COL_BEG + document.LunarCalc.Month.value + '/' + document.LunarCalc.Day.value + '/' + document.LunarCalc.Year.value + '@ ' + document.LunarCalc.Hour.value +':' + document.LunarCalc.Min.value + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Longitude' + COL_END + COL_BEG + document.LunarCalc.LonDeg.value + '� ' + document.LunarCalc.LonMin.value + ' ' + lngdir + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Latitude' + COL_END + COL_BEG + document.LunarCalc.LatDeg.value + '� ' + document.LunarCalc.LatMin.value + ' ' + latdir + COL_END + ROW_END totalout = totalout + TABLE_END // RESULT OF THE CALCULATIONS totalout = totalout + '


The results are:

' // DISPLAY THE MOON-SIGN moonstr = Right(txt1,3); switch(moonstr) { case(moonstr="Ari"): moonsign = "Aries"; break case(moonstr="Tau"): moonsign = "Taurus"; break case(moonstr="Gem"): moonsign = "Gemini"; break case(moonstr="Can"): moonsign = "Cancer"; break case(moonstr="Leo"): moonsign = "Leo"; break case(moonstr="Vir"): moonsign = "Virgo"; break case(moonstr="Lib"): moonsign = "Libra"; break case(moonstr="Sco"): moonsign = "Scorpio"; break case(moonstr="Sag"): moonsign = "Saggitarius"; break case(moonstr="Cap"): moonsign = "Capricorn"; break case(moonstr="Aqu"): moonsign = "Aquarius"; break case(moonstr="Pis"): moonsign = "Pisces"; break default: moonsign = "Unknown"; break } totalout = totalout + '

YOUR MOON-SIGN IS: ' + moonsign + '


' totalout = totalout + '

NON-PARALLAX
' // NON - PARALLAX RESULTS totalout = totalout + TABLE_BEG totalout = totalout + ROW_BEG + COL_BEG + 'Non Parallax' + COL_END + COL_BEG + txt1 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Nakshatra' + COL_END + COL_BEG + txt2 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Dasha' + COL_END + COL_BEG + txt3 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Next Dasha' + COL_END + COL_BEG + txt4 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Current Dasha' + COL_END + COL_BEG + txt5 + COL_END + ROW_END totalout = totalout + TABLE_END // PARALLAX RESULTS totalout = totalout + '

PARALLAX
' totalout = totalout + TABLE_BEG totalout = totalout + ROW_BEG + COL_BEG + 'Parallax' + COL_END + COL_BEG + ptxt1 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Nakshatra' + COL_END + COL_BEG + ptxt2 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Dasha' + COL_END + COL_BEG + ptxt3 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Next Dasha' + COL_END + COL_BEG + ptxt4 + COL_END + ROW_END totalout = totalout + ROW_BEG + COL_BEG + 'Current Dasha' + COL_END + COL_BEG + ptxt5 + COL_END + ROW_END totalout = totalout + TABLE_END totalout = totalout + TABLE_BEG totalout = totalout + ROW_BEG + COL_BEG + 'Days Difference' + COL_END + COL_BEG + txt6 + ' Days' + COL_END + ROW_END totalout = totalout + TABLE_END totalout = totalout + '


Try Again



' document.write(totalout); } function calccurdasha(cd,nl) { // check for > 120 years while(cd < 0)cd += 43830; len = 0; for(i = 0; i < 9; i++){ len += dasha[nl] * 365.25; if(len > cd)break; nl++; if(nl == 9)nl = 0; } cd = len - cd; cd /= dasha[nl] * 365.25 bk = calcbhukti(cd,nl); pd = calcpraty(cd,nl); str = lord.substr(nl*2,2) + "/" + lord.substr(bk*2,2) + "/" + lord.substr(pd*2,2); return str; } function calcbhukti(db,dp) { x = 1 - db; // find days elapsed y = 0; var buk = dp; for(i = 0; i < 9; i++){ y += dasha[buk]/120; // percentage of period if(y > x)break; buk++; if(buk == 9)buk = 0; } return buk; } function calcpraty(db,dp) { x = 1 - db; // find days elapsed y = 0; bk1 = dp; for(i = 0; i < 9; i++){ y += dasha[bk1]/120; // percentage of period if(y > x)break; bk1++; if(bk1 == 9)bk1 = 0; } y = y - x; // find days left over y = y/(dasha[bk1]/120); // % of this bukti to go return calcbhukti(y,bk1); } // Calculate Ayanamsa using J2000 Epoch function calcayan(t) { with(Math){ ln = 125.0445550 - 1934.1361849 * t + 0.0020762 * t * t; // Mean lunar node off = 280.466449 + 36000.7698231 * t + 0.00031060 * t * t; // Mean Sun off = 17.23*sin(d2r * ln)+1.27*sin(d2r * off)-(5025.64+1.11*t)*t; off = (off- 85886.27)/3600.0; } return off; } function jul2mdy(JD) { var str; with(Math){ L = floor(JD + 0.5)+68569; N = floor((4*L)/146097); L -= floor((146097*N + 3)/4); IT = floor((4000*(L+1))/1461001); L -= floor((1461*IT)/4) - 31; JT = floor((80*L)/2447); K = L- floor((2447*JT)/80); L = floor(JT/11); JT += 2 - 12*L; IK = 100*(N-49) + IT + L; str = "(M/D/Y) "; str += floor(JT); // month str += "/" + floor(K); // day str += "/" + floor(IK); // year } return str; } function ut2gst(t,ut) { t0 = 6.697374558 + (2400.051336 * t) + (0.000025862 * t * t); ut *= 1.002737909; t0 += ut; while(t0 < 0.0)t0 += 24; while(t0 > 24.0)t0 -= 24; return t0; } function ecl2equ(ln,la,ob) { with(Math){ y = asin(sin(d2r *la ) * cos(d2r * ob ) + cos(d2r *la ) * sin(d2r *ob ) * sin(d2r * ln)); dc = r2d * y; y = sin(d2r *ln ) * cos(d2r * ob) - tan(d2r * la) * sin(d2r * ob); x = cos(d2r * ln); x = atan2(y,x); x = r2d * x; if(x < 0.0)x += 360; ra = x/15; } } function equ2ecl(ra,dc,ob) { ra *= 15; with(Math){ y = sin(d2r *ra) * cos(d2r * ob) + tan(d2r *dc) * sin(d2r * ob); x = cos(d2r * ra); x = atan2(y,x); x *= r2d; if(x < 0)x += 360; pln = x; y = asin(sin(d2r * dc) * cos(d2r * ob) - cos(d2r * dc) * sin(d2r * ob) * sin(d2r * ra)); pla = r2d * y; } } // build string with degrees, minutes, seconds and zodiac sign from longitude function lon2dmsz(x) { with(Math){ var d,m,s; x = abs(x); d = floor(x); m = (x - d); s = m * 60; m = floor(s); s = s - m; z = floor(d/30); d %= 30; str = d + "� " + m + "' " + floor(s * 60) + "\" " + zn.substr(z*3,3); } return str; } // calculate Julian Day from Month, Day and Year function mdy2julian(m,d,y) { with(Math){ im = 12 * (y + 4800) + m - 3; j = (2 * (im - floor(im/12) * 12) + 7 + 365 * im)/12; j = floor(j) + d + floor(im/48) - 32083; if(j > 2299171)j += floor(im/4800) - floor(im/1200) + 38; return j; } } // keep within 360 degrees function fix360(v) { while(v < 0.0)v += 360; while(v > 360)v -= 360; return v; } function Right(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } }
Hosted by www.Geocities.ws

1