Hi.
I have a 4 layered raster brick of rainfall totals, and want to create a raster 
brick of rainfall total ranks (so at any x,y coordinate, the cell values down 
through the brick will be some permutation of 1,2,3 and 4 (assuming no ties)). 
There are no NA values in the data.

The brick is called temp

> temp
class       : RasterBrick
dimensions  : 400, 324, 129600, 4  (nrow, ncol, ncell, nlayers)
resolution  : 0.05, 0.05  (x, y)
extent      : 137.525, 153.725, -29.975, -9.975  (xmin, xmax, ymin, ymax)
coord. ref. : NA
data source : in memory
names       :  r198612,  r198701,  r198702,  r198703
min values  :        0,        0,        0,        0
max values  : 320.8333, 428.2410, 922.9112, 632.9712

However when I use the stackApply function, I get the following error

> stackApply(temp, indices=c(1,2,3,4), fun=rank)
Error in FUN(newX[, i], ...) : unused argument (na.rm = TRUE)

Many thanks for any help.
Terry


------------------------------
The information in this email together with any attachments is intended only 
for the person or entity to which it is addressed and may contain confidential 
and/or privileged material. There is no waiver of any confidentiality/privilege 
by your inadvertent receipt of this material. 
Any form of review, disclosure, modification, distribution and/or publication 
of this email message is prohibited, unless as a necessary part of Departmental 
business.
If you have received this message in error, you are asked to inform the sender 
as quickly as possible and delete this message and any copies of this message 
from your computer and/or your computer system network.
------------------------------


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to