fixed bug when computing raster dimension for a read operation