Package jsky.coords

Examples of jsky.coords.SiteDesc


    }


    /** Test main. */
    public static void main(String[] args) {
        SiteDesc site = ElevationPlotUtil.MAUNA_KEA;
        TimeZone tz = site.getTimeZone();
        Calendar cal = Calendar.getInstance(tz);

        cal.set(2005, Calendar.MARCH, 8, 12, 0, 0);
        Date date = cal.getTime();
        SunRiseSet srs = new SunRiseSet(date, site);
        System.out.println("Date = " + _fmt(date, tz) + ", site = " + site.getName());
        System.out.println("Sunset                      = " + _fmt(srs.getSunset(), tz));
        System.out.println("Sunrise                     = " + _fmt(srs.getSunrise(), tz));
        System.out.println("CivilTwilight Start         = " + _fmt(srs.getCivilTwilightStart(), tz));
        System.out.println("Civil Twilight End          = " + _fmt(srs.getCivilTwilightEnd(), tz));
        System.out.println("NauticalTwilight Start      = " + _fmt(srs.getNauticalTwilightStart(), tz));
        System.out.println("NauticalTwilight End        = " + _fmt(srs.getNauticalTwilightEnd(), tz));
        System.out.println("Astronomical Twilight Start = " + _fmt(srs.getAstronomicalTwilightStart(), tz));
        System.out.println("AstronomicalTwilight End    = " + _fmt(srs.getAstronomicalTwilightEnd(), tz));

        System.out.println();
        cal.set(2005, Calendar.MARCH, 9, 12, 0, 0);
        date = cal.getTime();
        srs = new SunRiseSet(date, site);
        tz = site.getTimeZone();
        System.out.println("Date = " + _fmt(date, tz) + ", site = " + site.getName());
        System.out.println("Sunset                      = " + _fmt(srs.getSunset(), tz));
        System.out.println("Sunrise                     = " + _fmt(srs.getSunrise(), tz));
        System.out.println("CivilTwilight Start         = " + _fmt(srs.getCivilTwilightStart(), tz));
        System.out.println("Civil Twilight End          = " + _fmt(srs.getCivilTwilightEnd(), tz));
        System.out.println("NauticalTwilight Start      = " + _fmt(srs.getNauticalTwilightStart(), tz));
View Full Code Here


        ElevationPlotPanel panel = new ElevationPlotPanel();
        frame.setJMenuBar(new ElevationPlotMenuBar(panel));
        panel.setIsMainWindow(true);

        SiteDesc site = ElevationPlotUtil.MAUNA_KEA;

//        Calendar cal = Calendar.getInstance(site.getTimeZone());
//        cal.set(2009, Calendar.MARCH, 8, 12, 0, 0);
//        Date date = cal.getTime();
        Date date = new Date();
View Full Code Here

    }


    /** Test main. */
    public static void main(String[] args) {
        SiteDesc site = ElevationPlotUtil.MAUNA_KEA;
        Calendar cal = Calendar.getInstance(UT);

        cal.set(2005, Calendar.MARCH, 9, 11, 0, 0);
        Date date = cal.getTime();
        WorldCoords obj = new WorldCoords("10 00 00", "+19 49 26");
View Full Code Here

TOP

Related Classes of jsky.coords.SiteDesc

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.