[R-sig-Geo] image(rs) returns error after reclassify

Robert J. Hijmans r.hijmans at gmail.com
Sun Aug 31 06:43:10 CEST 2014


Herry,
This is caused by a call to as.integer(cell numbers) which leads to NAs as
as.integer(ncell(rs))  returns NA
I have removed the call to as.integer in version 2.2-43 and this works now
(and it does not seem to mess up other things).
Thanks for reporting this,
Robert

On Thu, Jul 17, 2014 at 11:57 PM, Herry <Alexander.Herr at csiro.au> wrote:
>
> you probably also want to know about the raster:
>
>> rster
> class       : RasterLayer
> dimensions  : 76740, 80200, 6154548000  (nrow, ncol, ncell)
> resolution  : 50, 50  (x, y)
> extent      : -1888000, 2122000, -4847000, -1010000  (xmin, xmax, ymin,
> ymax)
> coord. ref. : +proj=aea +lat_1=-18 +lat_2=-36 +lat_0=0 +lon_0=132 +x_0=0
> +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
> data source : /data/her134/BA/GDA94albers/clum50m0314
> names       : clum50m0314
> values      : 100, 663  (min, max)
>
>>rs
> class       : RasterLayer
> dimensions  : 76740, 80200, 6154548000  (nrow, ncol, ncell)
> resolution  : 50, 50  (x, y)
> extent      : -1888000, 2122000, -4847000, -1010000  (xmin, xmax, ymin,
> ymax)
> coord. ref. : +proj=aea +lat_1=-18 +lat_2=-36 +lat_0=0 +lon_0=132 +x_0=0
> +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
> data source : /data/her134/BA/landuse4BA.grd
> names       : layer
> values      : 100, 661  (min, max)
>
>
>
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/image-rs-returns-error-after-reclassify-tp7586756p7586757.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list