How to use the spiceypy.utils.support_types function in spiceypy

To help you get started, we’ve selected a few spiceypy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AndrewAnnex / SpiceyPy / spiceypy / utils / libspicehelper.py View on Github external
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

from ctypes import CDLL, POINTER, c_int, c_double, c_char, c_char_p, c_void_p
import os
import platform
from . import support_types as stypes
from . import callbacks

host_OS = platform.system()
sharedLib = "cspice.dll" if host_OS == "Windows" else "spice.so"
sitePath = os.path.join(os.path.dirname(__file__), sharedLib)
libspice = CDLL(sitePath)

s_cell_p = POINTER(stypes.SpiceCell)
s_elip_p = POINTER(stypes.Ellipse)
s_plan_p = POINTER(stypes.Plane)
s_dla_p = POINTER(stypes.SpiceDLADescr)
s_eks_p = POINTER(stypes.SpiceEKSegSum)
s_eka_p = POINTER(stypes.SpiceEKAttDsc)
s_dsk_p = POINTER(stypes.SpiceDSKDescr)
c_double_p = POINTER(c_double)
c_int_p = POINTER(c_int)

__author__ = "AndrewAnnex"

# ######################################################################################################################
# A

libspice.appndc_c.argtypes = [c_char_p, s_cell_p]
libspice.appndd_c.argtypes = [c_double, s_cell_p]
github AndrewAnnex / SpiceyPy / spiceypy / utils / libspicehelper.py View on Github external
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

from ctypes import CDLL, POINTER, c_int, c_double, c_char, c_char_p, c_void_p
import os
import platform
from . import support_types as stypes
from . import callbacks

host_OS = platform.system()
sharedLib = "cspice.dll" if host_OS == "Windows" else "spice.so"
sitePath = os.path.join(os.path.dirname(__file__), sharedLib)
libspice = CDLL(sitePath)

s_cell_p = POINTER(stypes.SpiceCell)
s_elip_p = POINTER(stypes.Ellipse)
s_plan_p = POINTER(stypes.Plane)
s_dla_p  = POINTER(stypes.SpiceDLADescr)
s_eks_p  = POINTER(stypes.SpiceEKSegSum)
s_eka_p  = POINTER(stypes.SpiceEKAttDsc)
s_dsk_p  = POINTER(stypes.SpiceDSKDescr)
c_double_p = POINTER(c_double)
c_int_p  = POINTER(c_int)

__author__ = 'AndrewAnnex'

# ######################################################################################################################
# A

libspice.appndc_c.argtypes = [c_char_p, s_cell_p]
libspice.appndd_c.argtypes = [c_double, s_cell_p]
github AndrewAnnex / SpiceyPy / spiceypy / utils / libspicehelper.py View on Github external
from ctypes import CDLL, POINTER, c_int, c_double, c_char, c_char_p, c_void_p
import os
import platform
from . import support_types as stypes
from . import callbacks

host_OS = platform.system()
sharedLib = "cspice.dll" if host_OS == "Windows" else "spice.so"
sitePath = os.path.join(os.path.dirname(__file__), sharedLib)
libspice = CDLL(sitePath)

s_cell_p = POINTER(stypes.SpiceCell)
s_elip_p = POINTER(stypes.Ellipse)
s_plan_p = POINTER(stypes.Plane)
s_dla_p = POINTER(stypes.SpiceDLADescr)
s_eks_p = POINTER(stypes.SpiceEKSegSum)
s_eka_p = POINTER(stypes.SpiceEKAttDsc)
s_dsk_p = POINTER(stypes.SpiceDSKDescr)
c_double_p = POINTER(c_double)
c_int_p = POINTER(c_int)

__author__ = "AndrewAnnex"

# ######################################################################################################################
# A

libspice.appndc_c.argtypes = [c_char_p, s_cell_p]
libspice.appndd_c.argtypes = [c_double, s_cell_p]
libspice.appndi_c.argtypes = [c_int, s_cell_p]
libspice.axisar_c.argtypes = [(c_double * 3), c_double, (c_double * 3) * 3]

# #######################################################################################################################