Re: [R-sig-Geo] Help converting matlab raster to R raster brick

2013-04-06 Thread cmundy
Hi Mike, Needed to flip the y axis to get the orientation right. Levelplot() show images that look like something I expected to see, and in the right part of the world - all good. I will need to check the x,y resolution of the original matlab file, but it is in the right ballpark. Thanks for the

Re: [R-sig-Geo] Help converting matlab raster to R raster brick

2013-04-04 Thread Michael Sumner
Hi Craig, see the "array" method for ?brick: brick(x, xmn=0, xmx=1, ymn=0, ymx=1, crs=NA So, something like x <- brick(test$data[[2], xmn = min(test$data[[5]]), ymx = max(test$data[[5]]), ymn = min(test$data[[4]]), ymx = max(test$data[[4]])) You might need to mess around to get the x/y ranges

[R-sig-Geo] Help converting matlab raster to R raster brick

2013-04-04 Thread cmundy
Hi All, I have been provided with a .mat file containing a time series of Sea Surface Temperature data (50 x 42 cells with 92 time layers). It was a "Struct" object in Matlab. I can happily import the file in to R using R.matlab, creating a list as follows. My question is how then to convert this