DRMS_Array_t* drms_array_convert ( DRMS_Type_t  dsttype,
double  bzero,
double  bscale,
DRMS_Array_t src 
)

Converts the data in src->data to type dsttype, scaling by the values bzero and bscale, by calling the function drms_array_rawconvert. It returns a newly created array struct with the converted values but without copying or setting the elements other than those set by drms_array_create. In particular, the elements bzero and bscale are not set. drms_array_convert_inplace performs the same type conversion, but instead of returning a new array simply replaces the src->data element.

Parameters:
dst Contiguous array of type dsttype into which the converted data are stored upon success.
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 The source array containing that data to be converted.

Definition at line 93 of file drms_array.c.


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