DRMS_Array_t* drms_array_create ( DRMS_Type_t  type,
int  naxis,
axislen_t *  axis,
void *  data,
int *  status 
)

Creates a DRMS_Array_t struct with the specified values for the elements type, naxis, and axis. The array axis must be of length naxis (at least) unless it is NULL. If data is a nun-NULL pointer, the data pointer of the created array is set to it; otherwise, a data space of appropriate size is malloc'd (but left with unknown contents). type cannot be DRMS_TYPE_RAW. No checks are made for legitimate (positive) values of axis[n]. None of the other elements of the struct are filled except dope.

Parameters:
type The data type of the DRMS array struct to create.
naxis The number of axes of the DRMS array struct to create.
axis The lengths of each axis of the DRMS array struct to create.
data A linear array of data values, of type type, which are "stolen" by the DRMS array struct being created.
DRMS status (see drms_statuscodes.h). 0 if successful, non-0 otherwise.
Returns:
The created DRMS array struct.

Definition at line 7 of file drms_array.c.


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