@spiceErrorCheck<EOL>def copy(cell):
assert isinstance(cell, stypes.SpiceCell)<EOL>if cell.dtype is <NUM_LIT:0>:<EOL><INDENT>newcopy = stypes.SPICECHAR_CELL(cell.size, cell.length)<EOL><DEDENT>elif cell.dtype is <NUM_LIT:1>:<EOL><INDENT>newcopy = stypes.SPICEDOUBLE_CELL(cell.size)<EOL><DEDENT>elif cell.dtype is <NUM_LIT:2>:<EOL><INDENT>newcopy = stypes.SPICEINT_CELL(cell.size)<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT>libspice.copy_c(ctypes.byref(cell), ctypes.byref(newcopy))<EOL>return newcopy<EOL>
Copy the contents of a SpiceCell of any data type to another
cell of the same type.

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

:param cell: Cell to be copied.
:type cell: spiceypy.utils.support_types.SpiceCell
:return: New cell
:rtype: spiceypy.utils.support_types.SpiceCell