@spiceErrorCheck<EOL>@spiceFoundExceptionThrower<EOL>def dafgsr(handle, recno, begin, end):
handle = ctypes.c_int(handle)<EOL>recno = ctypes.c_int(recno)<EOL>begin = ctypes.c_int(begin)<EOL>end = ctypes.c_int(end)<EOL>data = stypes.emptyDoubleVector(<NUM_LIT:1> + min([<NUM_LIT>,end.value]) - max([begin.value,<NUM_LIT:1>]))<EOL>found = ctypes.c_int()<EOL>libspice.dafgsr_c(handle, recno, begin, end, data, ctypes.byref(found))<EOL>return stypes.cVectorToPython(data), bool(found.value)<EOL>
Read a portion of the contents of (words in) a summary record in a DAF file.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgsr_c.html

:param handle: Handle of DAF.
:type handle: int
:param recno: Record number; word indices are 1-based, 1 to 128 inclusive.
:type recno: int
:param begin: Index of first word to read from record, will be clamped > 0.
:type begin: int
:param end: Index of last word to read, wll be clamped < 129
:type end: int
:return: Contents of request sub-record
:rtype: float numpy.ndarray