5

enter image description here

I have a set of raster files that are essentially data sets of precipitation across a region. I have multiple raster files that are the outputs of different climate models. Each pixel in the raster file has 365 bands that represent the precipitation value for each day. I want to calculate the mean for each pixel for each band across the different raster files.

I tried converting the raster to point files and extracting multiple values to the point, extracting the data to excel and then averaging them for each raster. I was wondering if there is a more efficient way to do this.

  • the mean for each pixel for each band has no sense for me – aldo_tapia Mar 22 '18 at 17:30
  • So each raster (of which there are many) has 365 "bands" which represent the rainfall for that pixel for each day of the year. So you are looking to get the average rainfall for a pixel per model (raster)? – Keagan Allan Mar 22 '18 at 18:28
  • Some illustration, a table, a graphic would sure help to make the question clearer. – Techie_Gus Mar 22 '18 at 21:06
  • @Techie_Gus Ive updated the question witha figure.... Is the question clearer? – Mukunth Natarajan Mar 22 '18 at 22:10
  • 1
    R: raster::calc(x, mean) – mdsumner Jul 20 '18 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.