int drms_array2string ( arraylen_t  n,
DRMS_Type_t  src_type,
double  bzero,
double  bscale,
void *  src,
char **  dst 
)

Converts the first n values of src, interpreted as being of type src_type, to strings which are placed in the array dst using a sprintf function with a 24.17lg format, if the type is numeric. If the type is DRMS_TYPE_TIME, the sprint_time function is used, with a TAI representation accurate to the nearest second. If the type is DRMS_TYPE_STRING, the strings are simply copied. For numeric types (including DRMS_TYPE_TIME), the data are first scaled by bzero and bscale before being printed to strings. Data with values represent- ing missing data are represented by single-character null terminators; however, no check is performed on whether the scaling would result in valid data for the type.

Parameters:
n Number of values to convert.
src_type Source datatype (see DRMS_Type_t).
bzero Offset by which raw data values are to be shifted to produce actual data values.
bscale Scaling factor by which raw data values are to be multiplied to produce actual data values.
src Source data, which is of type srctype.
dst Contiguous array of string pointers into which the converted data are stored upon success.
Returns:
DRMS status (see drms_statuscodes.h). 0 if successful, non-0 otherwise.

Definition at line 2722 of file drms_array.c.


Generated on Mon Mar 26 07:00:49 2018 for JSOC_Documentation by  doxygen 1.5.7.1