}
public double readValue(Variable targetVar, Variable fromVar, int[] index) throws InvalidRangeException, IOException {
Section axisElement = mapIndex( targetVar, fromVar, index);
Array result = targetVar.read(axisElement);
return result.nextDouble();
}
public Section mapIndex(Variable targetVar, Variable fromVar, int[] fromIndex) throws InvalidRangeException {
List<Dimension> toDims = targetVar.getDimensions();
List<Dimension> fromDims = fromVar.getDimensions();