@Test
    public void testTimeStep_MEAN_MONTHLY_1year() throws Exception {
        printDebug("----------------------------");
        printDebug("MEAN_MONTHLY 1 year: " + 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-12-31", Date.class);


        //System.out.println("Start = " + start.toString() + "; End = " + end.toString());
        double[] obsval = DataIO.getColumnDoubleValuesInterval(start, end, t, "runoff[0]", DataIO.MEAN_MONTHLY);
        //System.out.println("# values = " + obsval.length);
        Assert.assertTrue(obsval.length == 12);

        //Values computed directly from .csv file
        double[] goldenVal = new double[12];
        goldenVal[0] = 2430 / 31.0;
        goldenVal[1] = 3897 / 28.0;
        goldenVal[2] = 4587 / 31.0;
        goldenVal[3] = 14840 / 30.0;
        goldenVal[4] = 21287 / 31.0;
        goldenVal[5] = 11096 / 30.0;
        goldenVal[6] = 3048 / 31.0;
        goldenVal[7] = 2187 / 31.0;
        goldenVal[8] = 1345 / 30.0;
        goldenVal[9] = 1893 / 31.0;
        goldenVal[10] = 8457 / 30.0;
        goldenVal[11] = 13534 / 31.0;


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

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