How to use the spiceypy.utils.support_types.SpiceEKAttDsc 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
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]

# #######################################################################################################################
# B
github AndrewAnnex / SpiceyPy / spiceypy / utils / support_types.py View on Github external
return bool(self._nullok)

    def __str__(self) -> str:
        return (
            f""
        )


class SpiceEKSegSum(Structure):
    _fields_ = [
        ("_tabnam", c_char * 65),
        ("_nrows", c_int),
        ("_ncols", c_int),
        ("_cnames", (c_char * 100) * 33),
        ("_cdescrs", SpiceEKAttDsc * 100),
    ]

    @property
    def tabnam(self):
        return to_python_string(self._tabnam)

    @property
    def nrows(self):
        return self._nrows

    @property
    def ncols(self):
        return self._ncols

    @property
    def cnames(self):
github AndrewAnnex / SpiceyPy / spiceypy / utils / support_types.py View on Github external
    @property
    def nullok(self):
        return bool(self._nullok)

    def __str__(self):
        return '' % \
               (self.cclass, self.dtype, self.strlen, self.size, self.indexd, self.nullok)


class SpiceEKSegSum(Structure):
    _fields_ = [
        ('_tabnam', c_char * 65),
        ('_nrows', c_int),
        ('_ncols', c_int),
        ('_cnames', (c_char * 100) * 33),
        ('_cdescrs', SpiceEKAttDsc * 100)
    ]

    @property
    def tabnam(self):
        return toPythonString(self._tabnam)

    @property
    def nrows(self):
        return self._nrows

    @property
    def ncols(self):
        return self._ncols

    @property
    def cnames(self):
github AndrewAnnex / SpiceyPy / spiceypy / utils / libspicehelper.py View on Github external
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]

# #######################################################################################################################
# B