Python Forum
3d Interpolation with irregular input grid
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3d Interpolation with irregular input grid
#1
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
Reply
#2
see https://gist.github.com/aadm/424490cfbb4...d9fd69dcb2
Reply
#3
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem using two-dimensional interpolation. Result looks bad player1682 4 2,504 Oct-12-2021, 09:27 AM
Last Post: player1682
  programming an interpolation polynom relating newton Hallo810 1 2,202 Nov-14-2020, 03:05 PM
Last Post: buran
  Indirect Bilinear Interpolation hegdep 0 2,208 Jan-09-2018, 10:51 AM
Last Post: hegdep

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020