Piecewise linear scaling for 2D wave, interpolation

Hi

I have a 2d wave zz defined over a grid of roughX and roughY values. roughX values are linearly scaled, i can therefore setscale the x dimension of zz. However, roughY are piecewise linearly scaled: roughY 5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}.

Is there a way to perform a piecewise setscale operation for the y dimension?

Note also that some values of zz (on the edges of the xx,yy domain) are NaN.

Ultimately, i'd like to interpolate my wave zz over fineX, fineY. Is Voronoi my best choice?
Since your data are arranged on a rectangular grid they are not ideal for Voronoi interpolation.

One approach may be to use the ImageFromXYZ operation which would require that you arrange the data as XYZ waves. You can then follow with ImageInterpolate (bilinear) to obtain the desired output resolution.

I hope this helps,

A.G.
WaveMetrics, Inc.
Quote:
Is there a way to perform a piecewise setscale operation for the y dimension?


No, there is no piecewise wave scaling.