Vertical regridding?

51 views
Skip to first unread message

Andreas Hilboll

unread,
Apr 15, 2014, 9:43:48 AM4/15/14
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.

Richard Hattersley

unread,
Apr 15, 2014, 12:19:32 PM4/15/14
to scitoo...@googlegroups.com, li...@hilboll.de
Hi Andreas,

Good timing! We have plans to refactor the regridding API, and we're looking at what the regrid operation will be able to do and what the API should be. It'd be good if we could factor in your needs/efforts.

For now it'd be helpful to know what kind of regrid algorithm do you need? And how does your proposed rescale parameter interact with it?

Regards,
Richard

LeonH

unread,
Apr 28, 2014, 6:34:44 AM4/28/14
to scitoo...@googlegroups.com, li...@hilboll.de
How is the vertical regridding function going? I have the need to regrid lat-height cubes (ie. ones that have been collapsed over their longitude dimension). It would be great if the vertical regrid were just part of the cube.regridded() function, so I could just use the same method whether I wanted a lat-lon regrid or a lat-height regrid.
Reply all
Reply to author
Forward
0 new messages