Mark,

It means that aggregate create a temporary file (because it is a large
dataset) that is not correct. Given then number of cells and the datatype,
the file should have a certain size, which apparently it has not. A common
cause of this is a full disk (temp folder) which you can perhaps fix with
removeTmpFiles.
It could be because of a bug in aggregate. It could be a false alarm.  Can
yo send me the print of  "min.bath" and of "file.info
(filename(min.bath))$size"

Robert


On Tue, Nov 27, 2012 at 3:37 AM, Mark Payne <markpayneatwork@gmail.com>wrote:

> Hi,
>
> I have a large raster file (netcdf) that I am trying to process ie
>
> > bathr
> class       : RasterLayer
> dimensions  : 10800, 21600, 233280000  (nrow, ncol, ncell)
> resolution  : 0.01666667, 0.01666667  (x, y)
> extent      : -180, 180, -90, 90  (xmin, xmax, ymin, ymax)
> coord. ref. : NA
> data source : /work/up/common/bathymetry/ETOPO1/ETOPO1_Ice_c_gmt4.nc
> names       : z
> values      : -10803, 8333  (min, max)
> zvar        : z
>
> Processing this with aggregate() gives the following warning:
>
> > min.bath <- aggregate(bathr,fact=out.agg,fun=min,expand=FALSE)
> Warning message:
> In .rasterFromRasterFile(grdfile, band = band, objecttype) :
>   size of values file does not match the number of cells (given the data
> type)
>
> What does this warning mean? I've seen previously on the list that
> there was a bug associated with this warning - the message has only
> appeared for me since upgrading from about raster 2.0-12 (can't
> remember the exact version, unfortunately) to 2.0-31.
>
> Best wishes,
>
> Mark
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

