1DSGRID2D(3NCARG) NCAR GRAPHICS DSGRID2D(3NCARG)
2
3
4
6 DSGRID2D - double precision Fortran entry for iterpolation from 2D ran‐
7 dom data to an output grid.
8
10 CALL DSGRID2D (NPNTS, X, Y, Z, NUMXOUT, NUMYOUT, XO, YO, ZO, IER)
11
13 NPNTS (Integer, Input) - The number of input data points.
14
15 X (Double precision, Input) - An array containing the X coor‐
16 dinates of the input data points.
17
18 Y (Double precision, Input) - An array containing the Y coor‐
19 dinates of the input data points.
20
21 Z (Double precision, Input) - An array containing the func‐
22 tional values of the input data points. That is, Z(L) is
23 the value of the input function at coordinate (X(L),Y(L)),
24 for L=1,NPNTS.
25
26 NUMXOUT (Integer, Input) - The number of X values in the output
27 grid.
28
29 NUMYOUT (Integer, Input) - The number of Y values in the output
30 grid.
31
32 XO (Double precision, Input) - An array of dimension NUMXOUT
33 containing the X coordinates of the output data grid. The
34 values in XO must be increasing, but need not be equally
35 spaced.
36
37 YO (Double precision, Input) - An array of dimension NUMYOUT
38 containing the Y coordinates of the output data grid. The
39 values in YO must be increasing, but need not be equally
40 spaced.
41
42 ZO (Double precision, Output) - A two-dimensional array of
43 dimension NUMXOUT x NUMYOUT containing the interpolated
44 functional values. ZO(I,J) is the interpolated value at
45 grid point (XO(I),YO(J)).
46
47 IER (Integer, Output) - An error return value. If IER is
48 returned as 0, then no errors were detected. If IER is non-
49 zero, then refer to the man page for dsgrid_errors for
50 details.
51
53 DSGRID2D is the double precision gridding function for 2D data in the
54 Dsgrid package. The behavior of DSGRID2D is controlled by values set
55 for the various parameters described in dsgrid_params. Values for
56 these parameters can be set using the subroutines DSSETI, DSSETRD, and
57 DSSETC.
58
59 In almost all cases the ngmath function NATGRIDD is superior to
60 DSGRID2D for 2D interpolation. See the man page for NATGRIDD for
61 details.
62
64 To use DSGRID2D, load the NCAR Graphics library ngmath.
65
67 dsgrid, dsgrid_params, dsseti, dsgeti, dssetrd, dsgetrd, dssetc,
68 dsgetc.
69
70 Complete documentation for Dsgrid is available at URL
71 http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html
72
74 Copyright (C) 2000
75 University Corporation for Atmospheric Research
76
77 This documentation is free software; you can redistribute it and/or
78 modify it under the terms of the GNU General Public License as pub‐
79 lished by the Free Software Foundation; either version 2 of the
80 License, or (at your option) any later version.
81
82 This software is distributed in the hope that it will be useful, but
83 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
84 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
85 Public License for more details.
86
87 You should have received a copy of the GNU General Public License along
88 with this software; if not, write to the Free Software Foundation,
89 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
90
91
92
93
94UNIX September 1997-1998 DSGRID2D(3NCARG)