Reference Manual of the nadc-tools API and Libraries - SRON
Reference Manual of the nadc-tools API and Libraries - SRON
Reference Manual of the nadc-tools API and Libraries - SRON
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2.11.3 NADC AKIMA PO<br />
Identifier NADC AKIMA PO<br />
Purpose evaluates <strong>the</strong> interpolation value on a new gridpoint x val<br />
Usage NADC AKIMA PO( dim in, x in,<br />
a coef, b coef, c coef, d coef, x val );<br />
Input size t dim in : dimension <strong>of</strong> x in, y in<br />
float *x in : x values<br />
double *a coef : polynomial coefficients<br />
double *b coef : polynomial coefficients<br />
double *c coef : polynomial coefficients<br />
double *d coef : polynomial coefficients<br />
float x val : <strong>the</strong> abscissa at which you want a y-value<br />
Returns <strong>the</strong> function value at point x val<br />
Comment Given an n-dim. array <strong>of</strong> abscissa x in <strong>and</strong> arrays a, b, c, d <strong>of</strong><br />
polynomial coefficients as returned by <strong>the</strong> NADC AKIMA SU, this<br />
subroutine returns <strong>the</strong> interpolated value at abscissa x val<br />
The polynomial coefficients a,b,c,d must be known from a<br />
call to subroutine ’NADC AKIMA SU’.<br />
2.12 NADC ALLOC<br />
Identifier NADC ALLOC<br />
Author R.M. van Hees<br />
Language ANSI-C<br />
Purpose pointer testing <strong>and</strong> memory allocation<br />
Comment contains ALLOC C2D, ALLOC S2D, ALLOC I2D, ALLOC R2D, ALLOC D2D<br />
ALLOC I3D, ALLOC I4D,<br />
FREE 2D, FREE 3D, <strong>and</strong> FREE 4D<br />
2.12.1 ALLOC UC2D<br />
Identifier ALLOC UC2D<br />
Purpose allocate a unsigned character matrix with dimensions [ypix][xpix]<br />
Usage plane = ALLOC UC2D( ypix, xpix );<br />
Input size t ypix : Y dimension (slowest axis)<br />
size t xpix : X dimension (fastest axis)<br />
Returns pointer to allocated memory<br />
Comment none<br />
2.12.2 ALLOC C2D<br />
Identifier ALLOC C2D<br />
Purpose allocate a character data matrix with dimensions [ypix][xpix]<br />
Usage plane = ALLOC C2D( ypix, xpix );<br />
Input size t ypix : Y dimension (slowest axis)<br />
size t xpix : X dimension (fastest axis)<br />
Returns pointer to allocated memory<br />
Comment none<br />
29