"MM-dd-yyyy HH:mm:ss");
cal.setTime(format.parse("03-03-1999 11:01:01"));
calEnd.setTime(format.parse("03-03-1999 11:05:01"));
final NumericData[] dataPerDimension1 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension1[0] = new NumericRange(
45.170,
45.173);
dataPerDimension1[1] = new NumericRange(
50.190,
50.192);
dataPerDimension1[2] = new NumericRange(
cal.getTimeInMillis(),
calEnd.getTimeInMillis());
final int year = cal.get(Calendar.YEAR);
cal.set(
Calendar.DAY_OF_YEAR,
1);
final NumericData[] dataPerDimension2 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension2[0] = new NumericRange(
45,
50);
dataPerDimension2[1] = new NumericRange(
45,
50);
dataPerDimension2[2] = new NumericRange(
cal.getTimeInMillis(),
calEnd.getTimeInMillis());
cal.set(
Calendar.YEAR,
year - 1);
calEnd.set(
Calendar.YEAR,
year - 1);
final NumericData[] dataPerDimension3 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension3[0] = new NumericRange(
45.1701,
45.1703);
dataPerDimension3[1] = new NumericRange(
50.1901,
50.1902);
dataPerDimension3[2] = new NumericRange(
cal.getTimeInMillis(),
calEnd.getTimeInMillis());
MultiDimensionalNumericData indexedData = new BasicNumericDataset(
dataPerDimension1);