Ben,

"Error: Failure during raster IO"  means that gdal encountered an error
while reading the file. I would suggest to make ArcMap write to a different
format (e.g. GTiff).

I do not think there is a .VRT file involved here.

Robert

On Fri, Dec 2, 2011 at 10:08 AM, Ben Weinstein
<benweinstein2010@gmail.com>wrote:

> Hi all,
>
> I'm wondering if anyone can tell me a bit more about the error *Failure
> during raster IO *using the raster package.
>
> I have a folder of .img rasters that i want to read in. These were created
> using a hybrid python/arcgis 10 script. The files read in fine, but cannot
> be plotted. This isn't a huge deal, but i'm concerned it is indicative of a
> larger issue.
>
> setwd("D:/Ben/GIS/Data/DimDiv/CostPath/Accumulation")
> b<-list.files(pattern='.img$', full.names=FALSE)
>
> z<-raster(b[1])
>
> z
> class       : RasterLayer
> dimensions  : 2047, 1648, 3373456  (nrow, ncol, ncell)
> resolution  : 0.007821463, 0.007821463  (x, y)
> extent      : -80.8216, -67.93183, -4.787244, 11.22329  (xmin, xmax, ymin,
> ymax)
> coord. ref. : +proj=longlat +ellps=aust_SA +no_defs
> values      :
> D:\Ben\GIS\Data\DimDiv\Costpath\Accumulation\To12.0From5.0.img
> min value   : 1
> max value   : 3
>
> Error: Failure during raster IO
>
> I have read that this is involved with the .vrt file, but i'm unsure of the
> remedy. These rasters can be read perfectly file by ArcGIS 10, and show a
> least cost path from one site to another.
>
> Thanks
>
> Ben Weinstein
>
>
> --
> Ben Weinstein
> Graduate Student
> Ecology and Evolution
> Stony Brook University
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

