readfloat - Reads TDF variables and converts to floating point data

SYNOPSIS


#include "terrno.h"
#include "gp.h"

float *readfloat(var)
VARP var;

DESCRIPTION

readfloat reads all elements of the variable var and scales the values to float. The function allocates its own memory and returns a pointer to the data. Stored bad-values and values outside [usemax, usemin] (datasets) are converted to GP_BAD_FLOAT. Does not support string variables. Compare with gpgetscaled.

RETURN VALUES

Returns data pointer when successful, and NULL if unsuccessful with terrno set to the appropriate error code.

FILES

include/gp.h, include/terrno.h, lib/libapp.a

SEE ALSO

gpvar, gpgetvar, gpgetscaled, datasets

NOTES

None.


Last Update: $Date: 1999/05/10 20:57:03 $