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

Converts the first n values of src, interpreted as being of type src_type, to doubles, scaling them by bzero and bscale. If the resulting scaled numeric values are outside the representable range for the type, the value is replaced by DRMS_MISSING_TIME. If the data are of type DRMS_TYPE_STRING, then they are scanned by sscan_time, then scaled, and then checked for validity as doubles.

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 the time datatype values 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 2427 of file drms_array.c.


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