@spiceErrorCheck<EOL>def bschoi(value, ndim, array, order):
value = ctypes.c_int(value)<EOL>ndim = ctypes.c_int(ndim)<EOL>array = stypes.toIntVector(array)<EOL>order = stypes.toIntVector(order)<EOL>return libspice.bschoi_c(value, ndim, array, order)<EOL>
Do a binary search for a given value within an integer array,
accompanied by an order vector.  Return the index of the
matching array entry, or -1 if the key value is not found.

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

:param value: Key value to be found in array.
:type value: int
:param ndim: Dimension of array.
:type ndim: int
:param array: Integer array to search.
:type array: Array of ints
:param order: Order vector.
:type order: Array of ints
:return: index
:rtype: int