r - How to find maximum value in rasterbrick? -


i know there similar question not in rasterbrick. find maximum value in raster brick, tried which.max don't understand input. know maximum value, , list of maximum values each layer.

> bshum2 class       : rasterbrick  dimensions  : 5, 4, 20, 2920  (nrow, ncol, ncell, nlayers) resolution  : 1, 1  (x, y) extent      : 14, 18, 0, 5  (xmin, xmax, ymin, ymax) coord. ref. : na  data source : in memory names       : x1979.01.01.00.00.00, x1979.01.01.03.00.00,  min values  :          0.011909009,          0.011799878,           max values  :           0.01536649,          0.01594792,           time        : 1979-01-01 00:00:00, 1979-12-31 21:00:00 (min, max)  > which.max(bshum2) class       : rasterlayer  dimensions  : 5, 4, 20  (nrow, ncol, ncell) resolution  : 1, 1  (x, y) extent      : 14, 18, 0, 5  (xmin, xmax, ymin, ymax) coord. ref. : na  data source : in memory names       : layer  values      : 172, 1132  (min, max) 

this how can these:

library(raster) b <- brick(system.file("external/rlogo.grd", package="raster")) minvalue(b) # [1] 0 0 0 maxvalue(b) # [1] 255 255 255 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -