@Test
    public void testTimeStep_ANNUAL_MEAN_OCT_TO_SEP() throws Exception {
        printDebug("----------------------------");
        printDebug("Annual Mean with Period Oct to Sep: " + this.toString());
        printDebug("----------------------------");
        CSTable t = DataIO.table(r, "obs");
        Assert.assertNotNull(t);

        // 4 YEARS
        Date start = Conversions.convert("1980-10-1", Date.class);
        Date end = Conversions.convert("1985-9-30", Date.class);


        //System.out.println("Start = " + start.toString() + "; End = " + end.toString());
        // 9,8 used for oct-sep since base-0
        boolean[] pmask = {true,true, true, true, true, true, true, true, true, true, true, true};
        double[] mean = DataIO.getColumnDoubleValuesInterval(start, end, t, "runoff[0]", DataIO.ANNUAL_MEAN, Oct,pmask, null);

        double[] goldenMean = new double[5];
   
        goldenMean[0] = 198.42465753424656; // for 1981
        goldenMean[1] = 671.5671232876713; // 1982
        goldenMean[2] = 856.7232876712329; // 1983
        goldenMean[3] = 498.37704918032784; // 1984 
        goldenMean[4] = 265.81369863013697; // 1985 
        for (int i = 0; i < mean.length; i++) {
            printDebug("AnnualMean_Period[" + i + "] = " + mean[i] + ";\tGolden AnnualMean[" + i + "] = " + goldenMean[i]);

        }

        Assert.assertArrayEquals(goldenMean, mean, 0);
    }