Andreas Hilboll
unread,Apr 15, 2014, 9:43:48 AM4/15/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scitoo...@googlegroups.com
Hi,
I need to vertically regrid a cube. I'm thinking of something like
def regrid_vertical(cube, weights, grid, rescale=False):
"""Verticall regrid a cube
Parameters
----------
cube : the cube to be regridded
weights : weights applied to the cube to be regridded. must have
the same dimensions as cube
grid : cube having the dimcoords the cube shall be regridded to.
horizontal coordinates must be the same as cube. units of the vertical
coordinates of grid and cube must be compatible
rescale : bool, indicating if the target cube shall be rescaled
so that the vertically integrated cube stays the same
"""
Is there already functionality to achieve this in iris? If not, is it
planned? If not, would you be interested in me preparing a PR for this
(eventually)?
Sunny greetings:
Andreas.