Re: [R-sig-Geo] raster - 4D Bricks

2014-09-03 Thread Robert J. Hijmans
Mark and Mike, Thanks for reporting and clarifying. Fixed, I think, in raster version 2.2-45. Robert On Wed, Jul 30, 2014 at 1:13 AM, Michael Sumner wrote: > Hello, > > Thanks for clarifying, I get that problem too. If I get a chance I'll > have a closer look, but otherwise here's my notes for n

Re: [R-sig-Geo] raster - 4D Bricks

2014-07-30 Thread Michael Sumner
Hello, Thanks for clarifying, I get that problem too. If I get a chance I'll have a closer look, but otherwise here's my notes for now. Note that conversion to stack allows it to work: library(raster) Loading required package: sp b <- brick('http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/g

Re: [R-sig-Geo] raster - 4D Bricks

2014-07-30 Thread Mark Payne
No, apparently it is still a brick: > class(b) [1] "RasterBrick" attr(,"package") [1] "raster" Here is a minimum (not)-working example, based on this post, which seems to be having similar problems: http://r-sig-geo.2731867.n2.nabble.com/Subset-a-Raster-object-read-from-a-4D-NetCDF-file-td758620

Re: [R-sig-Geo] raster - 4D Bricks

2014-07-29 Thread Michael Sumner
Are you sure that your "b" is still really a RasterBrick? That message comes if you give the functions character: library(raster) dropLayer("sometext", 1) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘dropLayer’ for signature ‘"character"’ (Basic

[R-sig-Geo] raster - 4D Bricks

2014-07-29 Thread Mark Payne
Hi, I have a 4D climate model output that I am trying to work with via raster, and that is unfortunately giving problems. I create the object as a brick: > b class : RasterBrick dimensions : 220, 254, 55880, 756 (nrow, ncol, ncell, nlayers) resolution : 1, 1 (x, y) extent : 0.5, 25