@spiceErrorCheck<EOL>def wnextd(side, window):
assert isinstance(window, stypes.SpiceCell)<EOL>assert window.dtype == <NUM_LIT:1><EOL>assert side == '<STR_LIT:L>' or side == '<STR_LIT:R>'<EOL>side = ctypes.c_char(side.encode(encoding='<STR_LIT>'))<EOL>libspice.wnextd_c(side, ctypes.byref(window))<EOL>return window<EOL>
Extract the left or right endpoints from a double precision
window.

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

:param side: Extract left "L" or right "R" endpoints. 
:type side: str
:param window: Window to be extracted. 
:type window: spiceypy.utils.support_types.SpiceCell
:return: Extracted Window.
:rtype: spiceypy.utils.support_types.SpiceCell