Replies: 1 comment 3 replies
-
Hi @Marston, the conservative interpolation is meant to be used on extensive variables (e.g. some transport integrated over cell depth). I can try to outline the method like this: Goal: Get some variable For this we need the values of Note: While the resulting data is not located on the outer bounds, I see that the naming in the example is chosen poorly. The name of the new dimension (here 'theta_outer') has nothing to do with the grid position, but instead is just based on the name of the intput. phi_transformed_cons = grid.transform(ds.phi,
'Z',
theta_target,
method='conservative',
target_data=ds.some_name) and the resulting dimension would be named |
Beta Was this translation helpful? Give feedback.
-
Trying to understand the docs for conservative transformation. Is this the correct method for cloud and precipitation variables?
If my new vertical coordinate looks like:
np.arange(-0.5, 80.5, 0.5)
what would the cell bounds look like (np.arange(-0.5, 80.5, 0.5) + 0.5
)? It is a bit confusing from the example which giveszc = np.arange(1.0,12) + 0.5
andtheta = np.linspace(0, 3, 20)
.And if I understand the examples, the transformed products will be on the edges? Just curious how to get back to a center value?
Beta Was this translation helpful? Give feedback.
All reactions