The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jonathan W Smith

Posts: 90
Registered: 12/17/10
Re: Volume data interpolation
Posted: Apr 15, 2013 10:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jonva9$k2a$>...
> 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.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.