// T
int first = slice2DIndex.getTIndex();
int length = 1;
int stride = 1;
if (first != -1){
ranges.add(new Range(first, first + length - 1, stride));
}
// Z
first = slice2DIndex.getZIndex();
if (first != -1){
ranges.add(new Range(first, first + length - 1, stride));
}
// Y
first = srcRegion.y;
length = srcRegion.height;
stride = strideY;
ranges.add(new Range(first, first + length - 1, stride));
// X
first = srcRegion.x;
length = srcRegion.width;
stride = strideX;
ranges.add(new Range(first, first + length - 1, stride));
} catch (InvalidRangeException e) {
throw netcdfFailure(e);
}
/*