code: public double getValueAt( int index ) {
  
          int row = index / data[0].length;
          int col = index % data[0].length;
  
          return data[row][col];
      }
docs: /*
  (non-Javadoc)
  
  @see eu.hydrologis.jgrass.libs.map.RasterData#getValueAt(int)