Package ucar.unidata.util

Examples of ucar.unidata.util.DateSelection


        }

        Date ts0   = (Date) tlist.get(0);
        URI  stURL = dsc.getRadarDatasetURI(stn.getName(),   ts0);
        assert null != stURL;
        DateSelection dateS = new DateSelection(ts1, ts2);
        dateS.setInterval((double) 3600 * 1000);
        dateS.setRoundTo((double) 3600 * 1000);
        dateS.setPreRange((double) 500 * 1000);
        dateS.setPostRange((double) 500 * 1000);



        for (int i = 0; i < stns.size(); i++) {
            stn = (ucar.unidata.geoloc.Station) stns.get(i);
View Full Code Here


        }

        Date ts0   = (Date) tlist.get(0);
        URI  stURL = dsc.getRadarDatasetURI(stn.getName(), "BREF1", ts0);
        assert null != stURL;
        DateSelection dateS = new DateSelection(ts1, ts2);
        dateS.setInterval((double) 3600 * 1000);
        dateS.setRoundTo((double) 3600 * 1000);
        dateS.setPreRange((double) 500 * 1000);
        dateS.setPostRange((double) 500 * 1000);



        for (int i = 0; i < stns.size(); i++) {
            stn = (ucar.unidata.geoloc.Station) stns.get(i);
View Full Code Here

        long now = System.currentTimeMillis();
        long yday0 = now - (36*60*60*1000);
        long yday1 = now - (30*60*60*1000);
        Date ts0 = new Date(yday0);
        Date ts1 = new Date(yday1);
        DateSelection dateS = new DateSelection(ts0, ts1);
        dateS.setInterval((double)3600*0);
        dateS.setRoundTo((double)3600*0);
        dateS.setPreRange((double)500*0);
        dateS.setPostRange((double)500*0);
        List absList2 = ds.getRadarStationTimes(stn.getValue(), ts0, ts1);
        assert null != absList2;
        List ulist = ds.getDataURIs(stn.getValue(), dateS);
        assert null != ulist;
        dateS.setInterval((double)3600*1000);
        ulist = ds.getDataURIs(stn.getValue(), dateS);
        assert null != ulist;
        List tlist = ds.getRadarStationTimes(stn.getValue(), null, null);
        assert null != tlist;
        Date ts = DateUnit.getStandardOrISO((String)tlist.get(1));
View Full Code Here

        if(ds== null)
            testDqc();

        Station stn = (thredds.catalog.query.Station)(stns.get(1));
        assert null != stn;
        DateSelection dateS = new DateSelection();
        dateS.setInterval((double)3600*1000);
        dateS.setRoundTo((double)3600*1000);
        dateS.setPreRange((double)500*1000);
        dateS.setPostRange((double)500*1000);
        List ulist = ds.getDataURIs(stn.getValue(), dateS );
        assert null != ulist;
        List tlist = ds.getRadarStationTimes(stn.getValue(), null, null);
        assert null != tlist;
        List data = ds.getDataURIs(stn.getValue(), dateS );
        assert null != data;
        dateS.setPreRange((double)200*1000);
        dateS.setPostRange((double)200*1000);
        List data1 = ds.getDataURIs(stn.getValue(), dateS );
        assert null != data1;
        dateS.setPostRange((double)200*0);
        List data2 = ds.getDataURIs(stn.getValue(), dateS );
        assert null != data2;
        dateS.setPreRange((double)200*0);
        dateS.setPostRange((double)200*1000);
        List data3 = ds.getDataURIs(stn.getValue(), dateS );
        assert null != data3;
        dateS.setPreRange((double)100*1000);
        dateS.setPostRange((double)100*1000);
        List data4 = ds.getDataURIs(stn.getValue(), dateS );
        assert null != data4;

    }
View Full Code Here

        long now = System.currentTimeMillis();
        long yday0 = now - (36*60*60*1000);
        long yday1 = now - (24*60*60*1000);
        ts0 = new Date(yday0);
        ts1 = new Date(yday1);
        DateSelection dateS = new DateSelection(ts0, ts1);
        dateS.setInterval((double)3600*1000);
        dateS.setRoundTo((double)3600*1000);
        dateS.setPreRange((double)500*1000);
        dateS.setPostRange((double)500*1000);
        List data = ds.getData(stn.getValue(), dateS);
        assert null != data;
        Iterator it = data.iterator();

        while(it.hasNext()) {
View Full Code Here

        URI stURL = ds.getRadarDatasetURI(stn.getValue(), ts);
        assert null != stURL;
        Date tsn = DateUnit.getStandardOrISO((String)tlist.get(0));
        Date ts1 = DateUnit.getStandardOrISO((String)tlist.get(sz-1));
        DateSelection dateS = new DateSelection(ts1, tsn);
        dateS.setInterval((double)3600*1000);
        dateS.setRoundTo((double)3600*1000);
        dateS.setPreRange((double)500*1000);
        dateS.setPostRange((double)500*1000);
        List dList = ds.getDataURIs("KABX", dateS );
        Iterator it = dList.iterator();
        while(it.hasNext()) {
            URI result = (URI)it.next();
            assert null != result;
View Full Code Here

        }

        Date ts0   = (Date) tlist.get(0);
        URI  stURL = dsc.getRadarDatasetURI(stn.getName(), "BREF1", ts0);
        assert null != stURL;
        DateSelection dateS = new DateSelection(ts1, ts2);
        dateS.setInterval((double) 3600 * 1000);
        dateS.setRoundTo((double) 3600 * 1000);
        dateS.setPreRange((double) 500 * 1000);
        dateS.setPostRange((double) 500 * 1000);



        for (int i = 0; i < stns.size(); i++) {
            stn = (Station) stns.get(i);
View Full Code Here

        Date ts0 = DateUnit.getStandardOrISO((String) tlist.get(1));
        RadialDatasetSweep rds   = ds.getRadarDataset(stn.getValue(), ts0);
        URI                stURL = ds.getRadarDatasetURI(stn.getValue(), ts0);
        assert null != stURL;
        assert 0 != sz;
        DateSelection dateS = new DateSelection(ts1, ts2);
        dateS.setInterval((double) 3600 * 1000);
        dateS.setRoundTo((double) 3600 * 1000);
        dateS.setPreRange((double) 500 * 1000);
        dateS.setPostRange((double) 500 * 1000);



        for (int i = 0; i < stns.size(); i++) {
            stn = (Station) stns.get(i);
View Full Code Here

TOP

Related Classes of ucar.unidata.util.DateSelection

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.