You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The most common calculation that I do with model data is generate a 1D time series from 2D or 3D data.
Basically, to do this, just take an area-weighted (or sometimes volume-weighted) spatial average of some part of the model domain.
In numpy, it's something like this:
However, it needs to be cleverer that that, as sometimes there's no time axes in data, and sometimes you need the cell area.
In iris, it's called the collapse method: https://scitools-iris.readthedocs.io/en/latest/userguide/cube_statistics.html#area-averaging
Does something like this function exist in coast?
Beta Was this translation helpful? Give feedback.
All reactions