DRMS_Array_t* drms_array_slice ( axislen_t *  start,
axislen_t *  end,
DRMS_Array_t src 
)

Returns a newly created array struct (created with drms_array_create, q.v.) in which the data element corresponds to a subset hypercube of dimension src->naxis with only the index values for dimension n in the closed range [start[n], end[n]]. The extraction is performed by the function ndim_pack.

Parameters:
start The index value of the dimension (orthogonal to the slice) that marks the start of the slice.
end The index value of the dimension (orthogonal to the slice) that marks the end of the slice.
src The DRMS array struct from which a slice is to be extracted.
Returns:
The created DRMS array struct.

Definition at line 109 of file drms_array.c.


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