Statistics over non-latitude zones
Added by ken mankoff about 6 years ago
Hi CDO Forum,
I have a zonal field - clusters of cells labeled 1, 2, ..., 100. (I actually have ~170,000 zones).
I'd like to compute statistics of another field over each of these zones. Specifically, sum of a variable with a time dimension so I have 100 numbers (or 170,000) at each time step.
I've been browsing CDO help and searching but it does not seem like CDO has a function to help with this. I think I'd have to loop over each zone value and use something like: expr,"zone_${i}=sum(value*(zone==${i}))".
Does this seem correct, or is there a more efficient way to do this?
Thanks,
-k.