Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Volume data interpolation
Replies: 6   Last Post: Apr 15, 2013 10:03 AM

 Messages: [ Previous | Next ]
 Jonathan W Smith Posts: 90 Registered: 12/17/10
Re: Volume data interpolation
Posted: Apr 15, 2013 10:03 AM

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jonva9\$k2a\$1@newscl01ah.mathworks.com>...
> Xr=rand(3,1000);
> Vr=rand(1,1000);
>
> F=TriScatteredInterp(Xr',Vr(:));
> [X Y Z]=ndgrid(linspace(0,1,10),linspace(0,1,10),linspace(0,1,10));
>
> F(X,Y,Z)
>
> % Bruno

How can the interpolation be done in the case that X Y Z are all arrays each having 3 dimensions? I have set up interp3 similarly to Anna, with V, Y, Z being 3-D arrays, but the end result is an 3 dimensional array with all NaNs.

Each array is 41 by 71 x 8 (lat, lon, and height).

The first array contains ozone data.
The 2nd array is are the changing vertical levels corresponding with the iozone data.
The 3rd array contains pressure levels for a different set of ozone data.

I want to interpolate the first array onto the 3rd array, being mindful of two things 1) in the 2nd array there is a different pressure for each array grid cell (decreasing with height in the 3rd dimension and 2) that in the 3rd array the pressure is only different for each of the 8 layer , in other words its the same horizontally across the array grid for an individual layer.

Thanks
Jonathan

Date Subject Author
5/11/12 Anna
5/11/12 Matt J
5/13/12 Anna
5/13/12 Bruno Luong
4/15/13 Jonathan W Smith
5/13/12 Anna
5/13/12 Anna