Piecewise linear scaling for 2D wave, interpolation
millot1
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?
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.
March 26, 2014 at 04:47 pm - Permalink
No, there is no piecewise wave scaling.
March 26, 2014 at 05:27 pm - Permalink