
Routines that interpolate from 2D random data to a rectangular output grid. These routines are part of the Natgrid package which implements a natural neighbor interpolation method.
    function natgrids(
        x[*]  : float,
        y[*]  : float,
        z[*]  : float,
        xo[*] : float,
        yo[*] : float
    )
    function natgridd(
        x[*]  : double,
        y[*]  : double,
        z[*]  : double,
        xo[*] : double,
        yo[*] : double
    )
If an error code is returned, you can look up the meaning of the code in the Natgrid documentation at the URL:
http://ngwww.ucar.edu/ngdoc/ng/ngmath/natgrid/errors.html#ErrorTable
begin NumXOut = 21 NumYOut = 21 ISLIM = 6 x = new((/ISLIM/),double) y = new((/ISLIM/),double) z = new((/ISLIM/),double) xi = new((/NumXOut/),double) yi = new((/NumYOut/),double) x = (/0.00, 1.00, 0.00, 1.00, 0.40, 0.75/) y = (/0.00, 0.00, 1.00, 1.00, 0.20, 0.65/) z = (/0.00, 0.00, 0.00, 0.00, 1.25, 0.80/) xc = 1./(NumXOut-1.) xi = ispan(0,NumXOut-1,1) * xc yc = 1./(NumYOut-1.) yi = ispan(0,NumYOut-1,1) * yc zi = natgridd(x, y, z, xi, yi) end
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?