Python Forum

Full Version: 3d Interpolation with irregular input grid
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a 3-dimension dataset on a grid which has regular monotonic x and y coordinates, but an irregular, non-monotonic z coordinate.

In other words this z coordinate varies with every data point, so is necessarily 3-dimensional itself.

I would like to take a horizontal slice through this data, i.e. to interpolate it onto a single z level.

Does anyone know of a way to do this in python? I've tried interpolate.griddata but I don't think that can handle a 3-d input coordinate.

Thanks
(Feb-09-2017, 06:33 PM)Larz60+ Wrote: [ -> ]see https://gist.github.com/aadm/424490cfbb4...d9fd69dcb2

Thanks for your reply but this is for a 3d field on a regular grid. My data has one coordinate which is irregular and non-monotonic.