Examples of Dms


Examples of org.metawb.lib.DMS

        // set up the common event
        Calendar time = new GregorianCalendar(
                TimeZone.getTimeZone("America/Los_Angeles"));
        time.set(1951, Calendar.MAY, 2, 17, 31, 0);

        DMS longi = new DMS(-1, 118, 21, 8);
        DMS lati = new DMS(0, 33, 57, 42);
        event = new Event(time, longi, lati);
        // init the expected data
        Map<PlanetId,EphPlanet> pdata = buildPlanetMap(ernieStringData);
        expPlanetData = Collections.unmodifiableMap(pdata);
        Map<HouseId, EphHouse> hdata = buildHouseMap(ernieStringData);
View Full Code Here

Examples of org.metawb.lib.DMS

    }

    @Override
    public String toString()
    {
        DMS dms = new DMS(angle);
        //String s = String.format("%2d %2s %02d'%02.0f",
        int secfrac = (int)(dms.getSecFrac() * 10);
        if(secfrac >= 10)
            secfrac = 9;
        String s = String.format("%2d %2s %02d'%02d.%d",
                                 dms.getDegrees(), sid.getAbrev(),
                                 dms.getMin(),
                                 dms.getSecInt(), secfrac);
        return s;
    }
View Full Code Here

Examples of org.metawb.lib.DMS

        Calendar time = new GregorianCalendar(
                TimeZone.getTimeZone("America/Los_Angeles"));
        time.set(1951, Calendar.MAY, 2, 17, 31, 0);

        DMS longi = new DMS(-1, 118, 21, 8);
        DMS lati = new DMS(0, 33, 57, 42);
        Event event = new Event(time, longi, lati);

        //Map<Planet, ChartPlanet> chartPlanets = dump(time, longi, lati);
        Set<PlanetId> p = AstroUtil.getStandardPlanets();
        p.add(PlanetId.Chiron);
        EphResults data = AstroUtil.getInitialEphData(event, null, p, null);
        Map<EphObject, AstroItem> chartPlanets = AstroUtil.dump(
                out, event, data);

        Calendar t2 = new GregorianCalendar(
                TimeZone.getTimeZone("America/Los_Angeles"));
        t2.set(1951, Calendar.MAY, 2, 17, 32, 0);
        Event event2 = new Event(t2, longi, lati);
        data = AstroUtil.getInitialEphData(event, null, p, null);
        AstroUtil.dump(out,event2, data);

        //AspectUtil aspectProfile = new AspectUtil();
        DefaultAspectFinder saf = new DefaultAspectFinder();

        out.println("");
        AspectUtil.outputAspectId(out, saf);

        out.println("");
        List<AstroItem> l = AstroUtil.getAstroItemList(chartPlanets);
        AstroUtil.orderMoonSun(l);
        AstroUtil.dumpAspectTable2D(out, l, saf);

        if(false) {
            Map<PlanetId, AstroItem> chartPlanetsTemp
                    = new HashMap<PlanetId, AstroItem>();
            for (Map.Entry<EphObject, AstroItem> entry : chartPlanets.entrySet()) {
                if(entry.getKey() instanceof PlanetId)
                    chartPlanetsTemp.put((PlanetId)entry.getKey(),entry.getValue());
            }
            //chartPlanetsTemp.remove(HouseId.H1);
            AstroUtil.dumpHarmonic(out,8, chartPlanetsTemp, saf);
        }

        AstroUtil.dumpHarmonic(out,8, chartPlanets, saf);
        AstroUtil.dumpHarmonic(out,9, chartPlanets, saf);

        SortedSet<Integer> iSet = new TreeSet<Integer>();
        for(int i = 1; i <= 12; i++) {
            iSet.add(i);
        }

        iSet.addAll(AstroUtil.getPrimes(125));

        iSet.add(16);
        iSet.add(22);
        iSet.add(25);
        iSet.add(27);
        iSet.add(32);
        iSet.add(33);
        iSet.add(66);
        iSet.add(80);
        iSet.add(90);
        iSet.add(112);
        iSet.add(125);

        //Map<Integer, Integer> m =

        for (Integer i : iSet) {
            out.println("");
            Collection<AspectId> aspects = AspectId.get(i);
            saf.setAspectId(aspects);
            Set<Aspect> chartAspects = AspectUtil.genAspects(l, saf);
            if(chartAspects.size() != 0) {
                for (AspectId a : aspects) {
                    DMS orb = new DMS(saf.getOrb(a));
                    out.printf(
                            "===== H%d harmonics, orb: %2d:%02d'\n",
                            i, orb.getDegrees(), orb.getMinRound());
                    break;
                }
                AspectUtil.dump(out,
                                   chartAspects,
                                   saf.getStrengthComparator());
View Full Code Here

Examples of org.metawb.lib.DMS

    }
    public static Map<EphObject, AstroItem> dump(
            PrintWriter out,Event event, EphResults data)
    {
        Calendar time = event.getTime();
        DMS longi = event.getLongitude();
        DMS lati = event.getLatitude();
        dumpTime(out,"===== ", time);

        Map<EphObject, AstroItem> chartObjects
                = new HashMap<EphObject, AstroItem>(data.getPlanets());
        dumpPlanets(out, chartObjects);
View Full Code Here

Examples of org.metawb.lib.DMS

                    if(s.length() > width2)
                        s = s.substring(0, width2);
                    l1.append(String.format(colSpace + "%"+width2+"s", s));

                    // orb of the aspect
                    DMS diff = new DMS(chartAspect.getInexact());
                    String s01 = chartAspect.getAspectMotion();
                    s = String.format("%2d%s%02d",
                            diff.getDegrees(),
                            s01,
                            diff.getMinRound());
                    l2.append(String.format(colSpace + "%"+width2+"s", s));

                    // strength of the aspect
                    double strength = af.getStrength(chartAspect);
                    l3.append(String.format(
View Full Code Here

Examples of org.metawb.lib.DMS

    static public void output(PrintWriter out, AspectId aid,
                              DefaultAspectFinder saf)
    {
        double a1 = aid.getAngle();
        DMS angle = new DMS(a1 < 360 ? a1 : a1 - 360);
        DMS orb1 = new DMS(saf.getOrb(aid));
        DMS orb2 = new DMS(saf.getOrbLimit(aid));
        out.printf("%15s %5s  %3d %02d'  %2d %02d'  %2d %02d'\n",
                    aid.toString(),
                    aid.harmonicName(),
                    angle.getDegrees(), angle.getMinRound(),
                    orb1.getDegrees(), orb1.getMinRound(),
                    orb2.getDegrees(), orb2.getMinRound());
    }
View Full Code Here

Examples of org.metawb.lib.DMS

            c = new TreeSet<Aspect>(comp);
            c.addAll(ca);
        }

        for (Aspect chartAspect : c) {
            DMS diff = new DMS(chartAspect.getInexact());
            out.printf("%8s %10s %10s %2d%s%02d  %7.3f\n",
                          chartAspect.getAspectId().harmonicName(),
                          chartAspect.getO1(),
                          chartAspect.getO2(),

                          diff.getDegrees(),
                          chartAspect.getAspectMotion(),
                          diff.getMinRound(),

                          saf.getStrength(chartAspect)
                          );
        }
    }
View Full Code Here

Examples of org.metawb.lib.DMS

    @Override
    public String toString()
    {
        //return String.format("house%d", hid.num());
        DMS dms = new DMS(getLongitude());
        return hid.name() + ":" + dms.toString();
    }
View Full Code Here

Examples of org.metawb.lib.DMS

    }

    @Override
    public String toString()
    {
        DMS dms = new DMS(getLongitude());
        return pid.getName() + ":" + dms.toString();
    }
View Full Code Here

Examples of org.metawb.lib.DMS

    public void setUp() {
        Calendar time = new GregorianCalendar(
                TimeZone.getTimeZone("America/Los_Angeles"));
        time.set(1951, Calendar.MAY, 2, 17, 31, 0);

        DMS longi = new DMS(-1, 118, 21, 8);
        DMS lati = new DMS(0, 33, 57, 42);
        event = new Event(time, longi, lati);
        Ephemeris ephemeris = AstroUtil.getEphemeris();
        ephAccess = new EphAccess(ephemeris, EnumSet.of(CalcPlanetFlag.SPEED));

        pm = new DefaultPlanetModel(event, ephAccess, HouseTypeId.Placidus);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.