Skip to content

rotate-ing a raster brick?

3 messages · Hartley, Andrew, Robert J. Hijmans, Andy Hartley

1 day later
#
Hi Robert,
 
Thanks for replying. Unfortunately I can't change my version of R (we
have a centrally installed version that gets rolled out every so often).
I think raster is up to date though. Here's the info you asked for - the
traceback doesn't make much sense to me!
 
I've already done a work around (looping through each band, and stacking
at the end), but it would be nice to understand why this is happening.
 
Cheers,
Andy
R version 2.13.1 (2011-07-08)
Platform: x86_64-unknown-linux-gnu (64-bit)
 
locale:
[1] C
 
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

 
other attached packages:
[1] ncdf_1.6.6    raster_1.9-52 sp_0.9-93    
 
loaded via a namespace (and not attached):
[1] grid_2.13.1     lattice_0.19-30 tools_2.13.1
Error in rowSums(is.na(x)) : 
  'x' must be an array of at least two dimensions
10: stop("'x' must be an array of at least two dimensions")
9: rowSums(is.na(x))
8: .local(x, y, ...)
7: merge(x, tolerance = tolerance, filename = filename, format = format,

       datatype = datatype, overwrite = overwrite, progress = progress, 
       ext = ext, overlap = overlap, check = FALSE)
6: merge(x, tolerance = tolerance, filename = filename, format = format,

       datatype = datatype, overwrite = overwrite, progress = progress, 
       ext = ext, overlap = overlap, check = FALSE)
5: .local(x, y, ...)
4: merge(r1, r2, ...)
3: merge(r1, r2, ...)
2: rotate(rb)
1: rotate(rb)