@Test
    public void testTimeStep_DAILY() throws Exception {
        printDebug("----------------------------");
        printDebug("DAILY: " + this.toString());
        printDebug("----------------------------");
        CSTable t = DataIO.table(r, "obs");
        Assert.assertNotNull(t);

        // 1 YEAR
        Date start = Conversions.convert("1981-1-01", Date.class);
        Date end = Conversions.convert("1981-1-14", Date.class);


        printDebug("Start = " + start.toString() + "; End = " + end.toString());
        double[] obsval = DataIO.getColumnDoubleValuesInterval(start, end, t, "runoff[0]", DataIO.DAILY);
        printDebug("# values = " + obsval.length);
        Assert.assertTrue(obsval.length == 14);

        // Values directly from table
        double[] goldenVal = new double[14];
        goldenVal[0] = 72;
        goldenVal[1] = 70;
        goldenVal[2] = 83;
        goldenVal[3] = 80;
        goldenVal[4] = 75;
        goldenVal[5] = 65;
        goldenVal[6] = 64;
        goldenVal[7] = 64;
        goldenVal[8] = 65;
        goldenVal[9] = 66;
        goldenVal[10] = 66;
        goldenVal[11] = 68;
        goldenVal[12] = 71;
        goldenVal[13] = 73;
        //  goldenVal[14] = 75;

        for (int i = 0; i < obsval.length; i++) {
            printDebug("obs[" + i + "] = " + obsval[i] + ";\tGolden = " + goldenVal[i]);
        }

        Assert.assertArrayEquals(goldenVal, obsval, 0);
    }