</BUG>
{
s0 = values[0][1];
}
<BUG>else if (Float.compare(values[0][1], nodata) == 0)
</BUG>
{
s0 = values[0][0];
}
else

public float aggregate(final float[][] values, final double weightx, final double weighty,
final float nodata)
{
float s0;
float s1;
if (FloatUtils.isNotNodata(values[0][0], nodata))
{
s0 = values[0][1];
}
else if (FloatUtils.isNotNodata(values[0][1], nodata))
{
s0 = values[0][0];
}
else
