int drms_array_rawconvert ( arraylen_t  n,
DRMS_Type_t  dsttype,
double  bzero,
double  bscale,
void *  dst,
DRMS_Type_t  srctype,
void *  src 
)

Converts the first n values of src->data, interpreted as being of type srctype, to type dsttype, with scaling by bzero and bscale as applicable for the datatype, by calling the appropriate function drms_array2*. The resulting data are placed in dst.

Parameters:
n Number of values to convert.
dsttype Destination 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.
dst Contiguous array of type dsttype into which the converted data are stored upon success.
srctype Source datatype (see DRMS_Type_t).
src Source data, which is of type srctype.
Returns:
DRMS status (see drms_statuscodes.h). 0 if successful, non-0 otherwise.

Definition at line 161 of file drms_array.c.


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