Package org.openhab.binding.astro.internal.model

Examples of org.openhab.binding.astro.internal.model.Position


    double th = getSiderealTime(j, lw);

    double azimuth = getAzimuth(th, a, phi, d) / DEG2RAD;
    double elevation = getElevation(th, a, phi, d) / DEG2RAD;

    Position position = sun.getPosition();
    position.setAzimuth(azimuth + 180);
    position.setElevation(elevation);
  }
View Full Code Here


    double distance = (1 - 0.00301401) / (1 + 0.054900 * Math.cos(mMoon2 + ec)) * 384401;

    double raDecTopo[] = geoEqu2TopoEqu(raDec, distance, lat, lmst);
    double azAlt[] = equ2AzAlt(raDecTopo[0], raDecTopo[1], lat, lmst);

    Position position = moon.getPosition();
    position.setAzimuth(azAlt[0] * SunCalc.RAD2DEG);
    position.setElevation(azAlt[1] * SunCalc.RAD2DEG + refraction(azAlt[1]));

    // zodiac
    double idxd = Math.floor(moonLon * SunCalc.RAD2DEG / 30);
    int idx = 0;
    if (idxd < 0) {
View Full Code Here

TOP

Related Classes of org.openhab.binding.astro.internal.model.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.