Analysing data in 1 x 1 degree boxes
Added by Francis Rayder over 10 years ago
I have a regular lat lon grid at a 6 arc minute resolution (3600 x 1800 cells). The data consiste of 1s, which means that there is a "peak" there, and 0s, which means "no peak".
I need to determine the number of peaks in each 1 x 1 degree area. Is there any way to do this with CDO?
Theoretically, I could use sellonlatbox
to partition my input data into 1 x 1 degree boxes, and then work with these boxes separately. However, as there are 360 x 180 = 64800 such boxes, this is not really a practical solution. Is there another way?
Replies (1)
RE: Analysing data in 1 x 1 degree boxes - Added by Francis Rayder over 10 years ago
Never mind, I figured out a way myself. It is rather easy, actually.
Remapping to a smaller grid gives cell values between 0 (meaning there are no peaks in the cell) and 1 (meaning the maximum number of possible peaks). I just have to multiply that with the maximum number of peaks in a cell.