DESCRIPTIONDisplaceLat displaces the coordinates of the "Function" lattice by a scaled function of the "Displacement" lattice, producing a curvilinear lattice output with Function's data and new coordinates. DisplaceLat can be used to combine a satellite image with 2D coordinates (latitude and longitude) with a 2D lattice of elevation data to produce an elevation map with 3D coordinates (latitude, longitude, and elevation). The displacement data is scaled by the Scale value.
If Displacement is a scalar lattice (has one data element) and Function has uniform or perimeter coordinates, the displacement data is added as an orthogonal dimension, as in the example above. If Displacement is scalar and Function has curvilinear coordinates, the result is not well defined, and DisplaceLat will not fire.
If Displacement has more than one element, it must have at least as many elements as Function has dimensions. Each of Displacement's scaled values are added element-wise to Function's coordinates. In this way, DisplaceLat can make 3D displacements of 2D coordinates.
Function and Displacement must have the same dimensionality and size.
The input data lattice.
Displacement offset lattice.
Displacement scale factor.
The displaced lattice.
SEE ALSOMagnitudeLat, LatToGeom.
© The Numerical Algorithms Group Ltd, Oxford UK. 2000