idx
int64
0
63k
question
stringlengths
61
4.03k
target
stringlengths
6
1.23k
58,600
def bodc2n ( code , lenout = _default_len_out ) : code = ctypes . c_int ( code ) name = stypes . stringToCharP ( " " * lenout ) lenout = ctypes . c_int ( lenout ) found = ctypes . c_int ( ) libspice . bodc2n_c ( code , lenout , name , ctypes . byref ( found ) ) return stypes . toPythonString ( name ) , bool ( found . value )
Translate the SPICE integer code of a body into a common name for that body .
58,601
def bodc2s ( code , lenout = _default_len_out ) : code = ctypes . c_int ( code ) name = stypes . stringToCharP ( " " * lenout ) lenout = ctypes . c_int ( lenout ) libspice . bodc2s_c ( code , lenout , name ) return stypes . toPythonString ( name )
Translate a body ID code to either the corresponding name or if no name to ID code mapping exists the string representation of the body ID value .
58,602
def bodfnd ( body , item ) : body = ctypes . c_int ( body ) item = stypes . stringToCharP ( item ) return bool ( libspice . bodfnd_c ( body , item ) )
Determine whether values exist for some item for any body in the kernel pool .
58,603
def bodn2c ( name ) : name = stypes . stringToCharP ( name ) code = ctypes . c_int ( 0 ) found = ctypes . c_int ( 0 ) libspice . bodn2c_c ( name , ctypes . byref ( code ) , ctypes . byref ( found ) ) return code . value , bool ( found . value )
Translate the name of a body or object to the corresponding SPICE integer ID code .
58,604
def bods2c ( name ) : name = stypes . stringToCharP ( name ) code = ctypes . c_int ( 0 ) found = ctypes . c_int ( 0 ) libspice . bods2c_c ( name , ctypes . byref ( code ) , ctypes . byref ( found ) ) return code . value , bool ( found . value )
Translate a string containing a body name or ID code to an integer code .
58,605
def bodvcd ( bodyid , item , maxn ) : bodyid = ctypes . c_int ( bodyid ) item = stypes . stringToCharP ( item ) dim = ctypes . c_int ( ) values = stypes . emptyDoubleVector ( maxn ) maxn = ctypes . c_int ( maxn ) libspice . bodvcd_c ( bodyid , item , maxn , ctypes . byref ( dim ) , values ) return dim . value , stypes . cVectorToPython ( values )
Fetch from the kernel pool the double precision values of an item associated with a body where the body is specified by an integer ID code .
58,606
def bodvrd ( bodynm , item , maxn ) : bodynm = stypes . stringToCharP ( bodynm ) item = stypes . stringToCharP ( item ) dim = ctypes . c_int ( ) values = stypes . emptyDoubleVector ( maxn ) maxn = ctypes . c_int ( maxn ) libspice . bodvrd_c ( bodynm , item , maxn , ctypes . byref ( dim ) , values ) return dim . value , stypes . cVectorToPython ( values )
Fetch from the kernel pool the double precision values of an item associated with a body .
58,607
def bschoc ( value , ndim , lenvals , array , order ) : value = stypes . stringToCharP ( value ) ndim = ctypes . c_int ( ndim ) lenvals = ctypes . c_int ( lenvals ) array = stypes . listToCharArrayPtr ( array , xLen = lenvals , yLen = ndim ) order = stypes . toIntVector ( order ) return libspice . bschoc_c ( value , ndim , lenvals , array , order )
Do a binary search for a given value within a character string array accompanied by an order vector . Return the index of the matching array entry or - 1 if the key value is not found .
58,608
def bschoi ( value , ndim , array , order ) : value = ctypes . c_int ( value ) ndim = ctypes . c_int ( ndim ) array = stypes . toIntVector ( array ) order = stypes . toIntVector ( order ) return libspice . bschoi_c ( value , ndim , array , order )
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 .
58,609
def bsrchc ( value , ndim , lenvals , array ) : value = stypes . stringToCharP ( value ) ndim = ctypes . c_int ( ndim ) lenvals = ctypes . c_int ( lenvals ) array = stypes . listToCharArrayPtr ( array , xLen = lenvals , yLen = ndim ) return libspice . bsrchc_c ( value , ndim , lenvals , array )
Do a binary earch for a given value within a character string array . Return the index of the first matching array entry or - 1 if the key value was not found .
58,610
def bsrchd ( value , ndim , array ) : value = ctypes . c_double ( value ) ndim = ctypes . c_int ( ndim ) array = stypes . toDoubleVector ( array ) return libspice . bsrchd_c ( value , ndim , array )
Do a binary search for a key value within a double precision array assumed to be in increasing order . Return the index of the matching array entry or - 1 if the key value is not found .
58,611
def bsrchi ( value , ndim , array ) : value = ctypes . c_int ( value ) ndim = ctypes . c_int ( ndim ) array = stypes . toIntVector ( array ) return libspice . bsrchi_c ( value , ndim , array )
Do a binary search for a key value within an integer array assumed to be in increasing order . Return the index of the matching array entry or - 1 if the key value is not found .
58,612
def ccifrm ( frclss , clssid , lenout = _default_len_out ) : frclss = ctypes . c_int ( frclss ) clssid = ctypes . c_int ( clssid ) lenout = ctypes . c_int ( lenout ) frcode = ctypes . c_int ( ) frname = stypes . stringToCharP ( lenout ) center = ctypes . c_int ( ) found = ctypes . c_int ( ) libspice . ccifrm_c ( frclss , clssid , lenout , ctypes . byref ( frcode ) , frname , ctypes . byref ( center ) , ctypes . byref ( found ) ) return frcode . value , stypes . toPythonString ( frname ) , center . value , bool ( found . value )
Return the frame name frame ID and center associated with a given frame class and class ID .
58,613
def cgv2el ( center , vec1 , vec2 ) : center = stypes . toDoubleVector ( center ) vec1 = stypes . toDoubleVector ( vec1 ) vec2 = stypes . toDoubleVector ( vec2 ) ellipse = stypes . Ellipse ( ) libspice . cgv2el_c ( center , vec1 , vec2 , ctypes . byref ( ellipse ) ) return ellipse
Form a SPICE ellipse from a center vector and two generating vectors .
58,614
def cidfrm ( cent , lenout = _default_len_out ) : cent = ctypes . c_int ( cent ) lenout = ctypes . c_int ( lenout ) frcode = ctypes . c_int ( ) frname = stypes . stringToCharP ( lenout ) found = ctypes . c_int ( ) libspice . cidfrm_c ( cent , lenout , ctypes . byref ( frcode ) , frname , ctypes . byref ( found ) ) return frcode . value , stypes . toPythonString ( frname ) , bool ( found . value )
Retrieve frame ID code and name to associate with a frame center .
58,615
def ckcov ( ck , idcode , needav , level , tol , timsys , cover = None ) : ck = stypes . stringToCharP ( ck ) idcode = ctypes . c_int ( idcode ) needav = ctypes . c_int ( needav ) level = stypes . stringToCharP ( level ) tol = ctypes . c_double ( tol ) timsys = stypes . stringToCharP ( timsys ) if not cover : cover = stypes . SPICEDOUBLE_CELL ( 20000 ) assert isinstance ( cover , stypes . SpiceCell ) assert cover . dtype == 1 libspice . ckcov_c ( ck , idcode , needav , level , tol , timsys , ctypes . byref ( cover ) ) return cover
Find the coverage window for a specified object in a specified CK file .
58,616
def cklpf ( filename ) : filename = stypes . stringToCharP ( filename ) handle = ctypes . c_int ( ) libspice . cklpf_c ( filename , ctypes . byref ( handle ) ) return handle . value
Load a CK pointing file for use by the CK readers . Return that file s handle to be used by other CK routines to refer to the file .
58,617
def ckobj ( ck , outCell = None ) : assert isinstance ( ck , str ) ck = stypes . stringToCharP ( ck ) if not outCell : outCell = stypes . SPICEINT_CELL ( 1000 ) assert isinstance ( outCell , stypes . SpiceCell ) assert outCell . dtype == 2 libspice . ckobj_c ( ck , ctypes . byref ( outCell ) ) return outCell
Find the set of ID codes of all objects in a specified CK file .
58,618
def ckopn ( filename , ifname , ncomch ) : filename = stypes . stringToCharP ( filename ) ifname = stypes . stringToCharP ( ifname ) ncomch = ctypes . c_int ( ncomch ) handle = ctypes . c_int ( ) libspice . ckopn_c ( filename , ifname , ncomch , ctypes . byref ( handle ) ) return handle . value
Open a new CK file returning the handle of the opened file .
58,619
def ckw01 ( handle , begtim , endtim , inst , ref , avflag , segid , nrec , sclkdp , quats , avvs ) : handle = ctypes . c_int ( handle ) begtim = ctypes . c_double ( begtim ) endtim = ctypes . c_double ( endtim ) inst = ctypes . c_int ( inst ) ref = stypes . stringToCharP ( ref ) avflag = ctypes . c_int ( avflag ) segid = stypes . stringToCharP ( segid ) sclkdp = stypes . toDoubleVector ( sclkdp ) quats = stypes . toDoubleMatrix ( quats ) avvs = stypes . toDoubleMatrix ( avvs ) nrec = ctypes . c_int ( nrec ) libspice . ckw01_c ( handle , begtim , endtim , inst , ref , avflag , segid , nrec , sclkdp , quats , avvs )
Add a type 1 segment to a C - kernel .
58,620
def ckw02 ( handle , begtim , endtim , inst , ref , segid , nrec , start , stop , quats , avvs , rates ) : handle = ctypes . c_int ( handle ) begtim = ctypes . c_double ( begtim ) endtim = ctypes . c_double ( endtim ) inst = ctypes . c_int ( inst ) ref = stypes . stringToCharP ( ref ) segid = stypes . stringToCharP ( segid ) start = stypes . toDoubleVector ( start ) stop = stypes . toDoubleVector ( stop ) rates = stypes . toDoubleVector ( rates ) quats = stypes . toDoubleMatrix ( quats ) avvs = stypes . toDoubleMatrix ( avvs ) nrec = ctypes . c_int ( nrec ) libspice . ckw02_c ( handle , begtim , endtim , inst , ref , segid , nrec , start , stop , quats , avvs , rates )
Write a type 2 segment to a C - kernel .
58,621
def ckw03 ( handle , begtim , endtim , inst , ref , avflag , segid , nrec , sclkdp , quats , avvs , nints , starts ) : handle = ctypes . c_int ( handle ) begtim = ctypes . c_double ( begtim ) endtim = ctypes . c_double ( endtim ) inst = ctypes . c_int ( inst ) ref = stypes . stringToCharP ( ref ) avflag = ctypes . c_int ( avflag ) segid = stypes . stringToCharP ( segid ) sclkdp = stypes . toDoubleVector ( sclkdp ) quats = stypes . toDoubleMatrix ( quats ) avvs = stypes . toDoubleMatrix ( avvs ) nrec = ctypes . c_int ( nrec ) starts = stypes . toDoubleVector ( starts ) nints = ctypes . c_int ( nints ) libspice . ckw03_c ( handle , begtim , endtim , inst , ref , avflag , segid , nrec , sclkdp , quats , avvs , nints , starts )
Add a type 3 segment to a C - kernel .
58,622
def ckw05 ( handle , subtype , degree , begtim , endtim , inst , ref , avflag , segid , sclkdp , packts , rate , nints , starts ) : handle = ctypes . c_int ( handle ) subtype = ctypes . c_int ( subtype ) degree = ctypes . c_int ( degree ) begtim = ctypes . c_double ( begtim ) endtim = ctypes . c_double ( endtim ) inst = ctypes . c_int ( inst ) ref = stypes . stringToCharP ( ref ) avflag = ctypes . c_int ( avflag ) segid = stypes . stringToCharP ( segid ) n = ctypes . c_int ( len ( packts ) ) sclkdp = stypes . toDoubleVector ( sclkdp ) packts = stypes . toDoubleMatrix ( packts ) rate = ctypes . c_double ( rate ) nints = ctypes . c_int ( nints ) starts = stypes . toDoubleVector ( starts ) libspice . ckw05_c ( handle , subtype , degree , begtim , endtim , inst , ref , avflag , segid , n , sclkdp , packts , rate , nints , starts )
Write a type 5 segment to a CK file .
58,623
def cltext ( fname ) : fnameP = stypes . stringToCharP ( fname ) fname_len = ctypes . c_int ( len ( fname ) ) libspice . cltext_ ( fnameP , fname_len )
Internal undocumented command for closing a text file opened by RDTEXT .
58,624
def cmprss ( delim , n , instr , lenout = _default_len_out ) : delim = ctypes . c_char ( delim . encode ( encoding = 'UTF-8' ) ) n = ctypes . c_int ( n ) instr = stypes . stringToCharP ( instr ) output = stypes . stringToCharP ( lenout ) libspice . cmprss_c ( delim , n , instr , lenout , output ) return stypes . toPythonString ( output )
Compress a character string by removing occurrences of more than N consecutive occurrences of a specified character .
58,625
def cnmfrm ( cname , lenout = _default_len_out ) : lenout = ctypes . c_int ( lenout ) frname = stypes . stringToCharP ( lenout ) cname = stypes . stringToCharP ( cname ) found = ctypes . c_int ( ) frcode = ctypes . c_int ( ) libspice . cnmfrm_c ( cname , lenout , ctypes . byref ( frcode ) , frname , ctypes . byref ( found ) ) return frcode . value , stypes . toPythonString ( frname ) , bool ( found . value )
Retrieve frame ID code and name to associate with an object .
58,626
def convrt ( x , inunit , outunit ) : inunit = stypes . stringToCharP ( inunit ) outunit = stypes . stringToCharP ( outunit ) y = ctypes . c_double ( ) if hasattr ( x , "__iter__" ) : outArray = [ ] for n in x : libspice . convrt_c ( n , inunit , outunit , ctypes . byref ( y ) ) outArray . append ( y . value ) return outArray x = ctypes . c_double ( x ) libspice . convrt_c ( x , inunit , outunit , ctypes . byref ( y ) ) return y . value
Take a measurement X the units associated with X and units to which X should be converted ; return Y the value of the measurement in the output units .
58,627
def copy ( cell ) : assert isinstance ( cell , stypes . SpiceCell ) if cell . dtype is 0 : newcopy = stypes . SPICECHAR_CELL ( cell . size , cell . length ) elif cell . dtype is 1 : newcopy = stypes . SPICEDOUBLE_CELL ( cell . size ) elif cell . dtype is 2 : newcopy = stypes . SPICEINT_CELL ( cell . size ) else : raise NotImplementedError libspice . copy_c ( ctypes . byref ( cell ) , ctypes . byref ( newcopy ) ) return newcopy
Copy the contents of a SpiceCell of any data type to another cell of the same type .
58,628
def cpos ( string , chars , start ) : string = stypes . stringToCharP ( string ) chars = stypes . stringToCharP ( chars ) start = ctypes . c_int ( start ) return libspice . cpos_c ( string , chars , start )
Find the first occurrence in a string of a character belonging to a collection of characters starting at a specified location searching forward .
58,629
def cposr ( string , chars , start ) : string = stypes . stringToCharP ( string ) chars = stypes . stringToCharP ( chars ) start = ctypes . c_int ( start ) return libspice . cposr_c ( string , chars , start )
Find the first occurrence in a string of a character belonging to a collection of characters starting at a specified location searching in reverse .
58,630
def cvpool ( agent ) : agent = stypes . stringToCharP ( agent ) update = ctypes . c_int ( ) libspice . cvpool_c ( agent , ctypes . byref ( update ) ) return bool ( update . value )
Indicate whether or not any watched kernel variables that have a specified agent on their notification list have been updated .
58,631
def cyllat ( r , lonc , z ) : r = ctypes . c_double ( r ) lonc = ctypes . c_double ( lonc ) z = ctypes . c_double ( z ) radius = ctypes . c_double ( ) lon = ctypes . c_double ( ) lat = ctypes . c_double ( ) libspice . cyllat_c ( r , lonc , z , ctypes . byref ( radius ) , ctypes . byref ( lon ) , ctypes . byref ( lat ) ) return radius . value , lon . value , lat . value
Convert from cylindrical to latitudinal coordinates .
58,632
def cylrec ( r , lon , z ) : r = ctypes . c_double ( r ) lon = ctypes . c_double ( lon ) z = ctypes . c_double ( z ) rectan = stypes . emptyDoubleVector ( 3 ) libspice . cylrec_c ( r , lon , z , rectan ) return stypes . cVectorToPython ( rectan )
Convert from cylindrical to rectangular coordinates .
58,633
def cylsph ( r , lonc , z ) : r = ctypes . c_double ( r ) lonc = ctypes . c_double ( lonc ) z = ctypes . c_double ( z ) radius = ctypes . c_double ( ) colat = ctypes . c_double ( ) lon = ctypes . c_double ( ) libspice . cyllat_c ( r , lonc , z , ctypes . byref ( radius ) , ctypes . byref ( colat ) , ctypes . byref ( lon ) ) return radius . value , colat . value , lon . value
Convert from cylindrical to spherical coordinates .
58,634
def dafac ( handle , buffer ) : handle = ctypes . c_int ( handle ) lenvals = ctypes . c_int ( len ( max ( buffer , key = len ) ) + 1 ) n = ctypes . c_int ( len ( buffer ) ) buffer = stypes . listToCharArrayPtr ( buffer ) libspice . dafac_c ( handle , n , lenvals , buffer )
Add comments from a buffer of character strings to the comment area of a binary DAF file appending them to any comments which are already present in the file s comment area .
58,635
def dafec ( handle , bufsiz , lenout = _default_len_out ) : handle = ctypes . c_int ( handle ) buffer = stypes . emptyCharArray ( yLen = bufsiz , xLen = lenout ) bufsiz = ctypes . c_int ( bufsiz ) lenout = ctypes . c_int ( lenout ) n = ctypes . c_int ( ) done = ctypes . c_int ( ) libspice . dafec_c ( handle , bufsiz , lenout , ctypes . byref ( n ) , ctypes . byref ( buffer ) , ctypes . byref ( done ) ) return n . value , stypes . cVectorToPython ( buffer ) , bool ( done . value )
Extract comments from the comment area of a binary DAF .
58,636
def dafopr ( fname ) : fname = stypes . stringToCharP ( fname ) handle = ctypes . c_int ( ) libspice . dafopr_c ( fname , ctypes . byref ( handle ) ) return handle . value
Open a DAF for subsequent read requests .
58,637
def dafopw ( fname ) : fname = stypes . stringToCharP ( fname ) handle = ctypes . c_int ( ) libspice . dafopw_c ( fname , ctypes . byref ( handle ) ) return handle . value
Open a DAF for subsequent write requests .
58,638
def dafrfr ( handle , lenout = _default_len_out ) : handle = ctypes . c_int ( handle ) lenout = ctypes . c_int ( lenout ) nd = ctypes . c_int ( ) ni = ctypes . c_int ( ) ifname = stypes . stringToCharP ( lenout ) fward = ctypes . c_int ( ) bward = ctypes . c_int ( ) free = ctypes . c_int ( ) libspice . dafrfr_c ( handle , lenout , ctypes . byref ( nd ) , ctypes . byref ( ni ) , ifname , ctypes . byref ( fward ) , ctypes . byref ( bward ) , ctypes . byref ( free ) ) return nd . value , ni . value , stypes . toPythonString ( ifname ) , fward . value , bward . value , free . value
Read the contents of the file record of a DAF .
58,639
def dafrs ( insum ) : insum = stypes . toDoubleVector ( insum ) libspice . dafrs_c ( ctypes . byref ( insum ) )
Change the summary for the current array in the current DAF .
58,640
def dafus ( insum , nd , ni ) : insum = stypes . toDoubleVector ( insum ) dc = stypes . emptyDoubleVector ( nd ) ic = stypes . emptyIntVector ( ni ) nd = ctypes . c_int ( nd ) ni = ctypes . c_int ( ni ) libspice . dafus_c ( insum , nd , ni , dc , ic ) return stypes . cVectorToPython ( dc ) , stypes . cVectorToPython ( ic )
Unpack an array summary into its double precision and integer components .
58,641
def dasac ( handle , buffer ) : handle = ctypes . c_int ( handle ) n = ctypes . c_int ( len ( buffer ) ) buflen = ctypes . c_int ( max ( len ( s ) for s in buffer ) + 1 ) buffer = stypes . listToCharArrayPtr ( buffer ) libspice . dasac_c ( handle , n , buflen , buffer )
Add comments from a buffer of character strings to the comment area of a binary DAS file appending them to any comments which are already present in the file s comment area .
58,642
def dasec ( handle , bufsiz = _default_len_out , buflen = _default_len_out ) : handle = ctypes . c_int ( handle ) buffer = stypes . emptyCharArray ( buflen , bufsiz ) bufsiz = ctypes . c_int ( bufsiz ) buflen = ctypes . c_int ( buflen ) n = ctypes . c_int ( 0 ) done = ctypes . c_int ( ) libspice . dasec_c ( handle , bufsiz , buflen , ctypes . byref ( n ) , ctypes . byref ( buffer ) , ctypes . byref ( done ) ) return n . value , stypes . cVectorToPython ( buffer ) , done . value
Extract comments from the comment area of a binary DAS file .
58,643
def dasopr ( fname ) : fname = stypes . stringToCharP ( fname ) handle = ctypes . c_int ( ) libspice . dasopr_c ( fname , ctypes . byref ( handle ) ) return handle . value
Open a DAS file for reading .
58,644
def dcyldr ( x , y , z ) : x = ctypes . c_double ( x ) y = ctypes . c_double ( y ) z = ctypes . c_double ( z ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . dcyldr_c ( x , y , z , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from rectangular to cylindrical coordinates .
58,645
def dgeodr ( x , y , z , re , f ) : x = ctypes . c_double ( x ) y = ctypes . c_double ( y ) z = ctypes . c_double ( z ) re = ctypes . c_double ( re ) f = ctypes . c_double ( f ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . dgeodr_c ( x , y , z , re , f , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from rectangular to geodetic coordinates .
58,646
def diags2 ( symmat ) : symmat = stypes . toDoubleMatrix ( symmat ) diag = stypes . emptyDoubleMatrix ( x = 2 , y = 2 ) rotateout = stypes . emptyDoubleMatrix ( x = 2 , y = 2 ) libspice . diags2_c ( symmat , diag , rotateout ) return stypes . cMatrixToNumpy ( diag ) , stypes . cMatrixToNumpy ( rotateout )
Diagonalize a symmetric 2x2 matrix .
58,647
def dlatdr ( x , y , z ) : x = ctypes . c_double ( x ) y = ctypes . c_double ( y ) z = ctypes . c_double ( z ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . dlatdr_c ( x , y , z , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from rectangular to latitudinal coordinates .
58,648
def dp2hx ( number , lenout = _default_len_out ) : number = ctypes . c_double ( number ) lenout = ctypes . c_int ( lenout ) string = stypes . stringToCharP ( lenout ) length = ctypes . c_int ( ) libspice . dp2hx_c ( number , lenout , string , ctypes . byref ( length ) ) return stypes . toPythonString ( string )
Convert a double precision number to an equivalent character string using base 16 scientific notation .
58,649
def dpgrdr ( body , x , y , z , re , f ) : body = stypes . stringToCharP ( body ) x = ctypes . c_double ( x ) y = ctypes . c_double ( y ) z = ctypes . c_double ( z ) re = ctypes . c_double ( re ) f = ctypes . c_double ( f ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . dpgrdr_c ( body , x , y , z , re , f , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian matrix of the transformation from rectangular to planetographic coordinates .
58,650
def drdcyl ( r , lon , z ) : r = ctypes . c_double ( r ) lon = ctypes . c_double ( lon ) z = ctypes . c_double ( z ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . drdcyl_c ( r , lon , z , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from cylindrical to rectangular coordinates .
58,651
def drdgeo ( lon , lat , alt , re , f ) : lon = ctypes . c_double ( lon ) lat = ctypes . c_double ( lat ) alt = ctypes . c_double ( alt ) re = ctypes . c_double ( re ) f = ctypes . c_double ( f ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . drdgeo_c ( lon , lat , alt , re , f , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from geodetic to rectangular coordinates .
58,652
def drdlat ( r , lon , lat ) : r = ctypes . c_double ( r ) lon = ctypes . c_double ( lon ) lat = ctypes . c_double ( lat ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . drdlat_c ( r , lon , lat , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
Compute the Jacobian of the transformation from latitudinal to rectangular coordinates .
58,653
def drdpgr ( body , lon , lat , alt , re , f ) : body = stypes . stringToCharP ( body ) lon = ctypes . c_double ( lon ) lat = ctypes . c_double ( lat ) alt = ctypes . c_double ( alt ) re = ctypes . c_double ( re ) f = ctypes . c_double ( f ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . drdpgr_c ( body , lon , lat , alt , re , f , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian matrix of the transformation from planetographic to rectangular coordinates .
58,654
def drdsph ( r , colat , lon ) : r = ctypes . c_double ( r ) colat = ctypes . c_double ( colat ) lon = ctypes . c_double ( lon ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . drdsph_c ( r , colat , lon , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from spherical to rectangular coordinates .
58,655
def dskb02 ( handle , dladsc ) : handle = ctypes . c_int ( handle ) nv = ctypes . c_int ( 0 ) np = ctypes . c_int ( 0 ) nvxtot = ctypes . c_int ( 0 ) vtxbds = stypes . emptyDoubleMatrix ( 3 , 2 ) voxsiz = ctypes . c_double ( 0.0 ) voxori = stypes . emptyDoubleVector ( 3 ) vgrext = stypes . emptyIntVector ( 3 ) cgscal = ctypes . c_int ( 0 ) vtxnpl = ctypes . c_int ( 0 ) voxnpt = ctypes . c_int ( 0 ) voxnpl = ctypes . c_int ( 0 ) libspice . dskb02_c ( handle , dladsc , ctypes . byref ( nv ) , ctypes . byref ( np ) , ctypes . byref ( nvxtot ) , vtxbds , ctypes . byref ( voxsiz ) , voxori , vgrext , ctypes . byref ( cgscal ) , ctypes . byref ( vtxnpl ) , ctypes . byref ( voxnpt ) , ctypes . byref ( voxnpl ) ) return nv . value , np . value , nvxtot . value , stypes . cMatrixToNumpy ( vtxbds ) , voxsiz . value , stypes . cVectorToPython ( voxori ) , stypes . cVectorToPython ( vgrext ) , cgscal . value , vtxnpl . value , voxnpt . value , voxnpl . value
Return bookkeeping data from a DSK type 2 segment .
58,656
def dskcls ( handle , optmiz = False ) : handle = ctypes . c_int ( handle ) optmiz = ctypes . c_int ( optmiz ) libspice . dskcls_c ( handle , optmiz )
Close a DSK file .
58,657
def dskd02 ( handle , dladsc , item , start , room ) : handle = ctypes . c_int ( handle ) item = ctypes . c_int ( item ) start = ctypes . c_int ( start ) room = ctypes . c_int ( room ) n = ctypes . c_int ( 0 ) values = stypes . emptyDoubleVector ( room ) libspice . dskd02_c ( handle , dladsc , item , start , room , ctypes . byref ( n ) , values ) return stypes . cVectorToPython ( values )
Fetch double precision data from a type 2 DSK segment .
58,658
def dskgd ( handle , dladsc ) : handle = ctypes . c_int ( handle ) dskdsc = stypes . SpiceDSKDescr ( ) libspice . dskgd_c ( handle , ctypes . byref ( dladsc ) , ctypes . byref ( dskdsc ) ) return dskdsc
Return the DSK descriptor from a DSK segment identified by a DAS handle and DLA descriptor .
58,659
def dski02 ( handle , dladsc , item , start , room ) : handle = ctypes . c_int ( handle ) item = ctypes . c_int ( item ) start = ctypes . c_int ( start ) room = ctypes . c_int ( room ) n = ctypes . c_int ( ) values = stypes . emptyIntVector ( room ) libspice . dski02_c ( handle , dladsc , item , start , room , ctypes . byref ( n ) , values ) return stypes . cMatrixToNumpy ( values )
Fetch integer data from a type 2 DSK segment .
58,660
def dskmi2 ( vrtces , plates , finscl , corscl , worksz , voxpsz , voxlsz , makvtl , spxisz ) : nv = ctypes . c_int ( len ( vrtces ) ) vrtces = stypes . toDoubleMatrix ( vrtces ) np = ctypes . c_int ( len ( plates ) ) plates = stypes . toIntMatrix ( plates ) finscl = ctypes . c_double ( finscl ) corscl = ctypes . c_int ( corscl ) worksz = ctypes . c_int ( worksz ) voxpsz = ctypes . c_int ( voxpsz ) voxlsz = ctypes . c_int ( voxlsz ) makvtl = ctypes . c_int ( makvtl ) spxisz = ctypes . c_int ( spxisz ) work = stypes . emptyIntMatrix ( 2 , worksz ) spaixd = stypes . emptyDoubleVector ( 10 ) spaixi = stypes . emptyIntVector ( spxisz ) libspice . dskmi2_c ( nv , vrtces , np , plates , finscl , corscl , worksz , voxpsz , voxlsz , makvtl , spxisz , work , spaixd , spaixi ) return stypes . cVectorToPython ( spaixd ) , stypes . cVectorToPython ( spaixi )
Make spatial index for a DSK type 2 segment . The index is returned as a pair of arrays one of type int and one of type float . These arrays are suitable for use with the DSK type 2 writer dskw02 .
58,661
def dskn02 ( handle , dladsc , plid ) : handle = ctypes . c_int ( handle ) plid = ctypes . c_int ( plid ) normal = stypes . emptyDoubleVector ( 3 ) libspice . dskn02_c ( handle , dladsc , plid , normal ) return stypes . cVectorToPython ( normal )
Compute the unit normal vector for a specified plate from a type 2 DSK segment .
58,662
def dskp02 ( handle , dladsc , start , room ) : handle = ctypes . c_int ( handle ) start = ctypes . c_int ( start ) room = ctypes . c_int ( room ) n = ctypes . c_int ( 0 ) plates = stypes . emptyIntMatrix ( 3 , room ) libspice . dskp02_c ( handle , dladsc , start , room , ctypes . byref ( n ) , plates ) return stypes . cMatrixToNumpy ( plates )
Fetch triangular plates from a type 2 DSK segment .
58,663
def dskrb2 ( vrtces , plates , corsys , corpar ) : nv = ctypes . c_int ( len ( vrtces ) ) vrtces = stypes . toDoubleMatrix ( vrtces ) np = ctypes . c_int ( len ( plates ) ) plates = stypes . toIntMatrix ( plates ) corsys = ctypes . c_int ( corsys ) corpar = stypes . toDoubleVector ( corpar ) mncor3 = ctypes . c_double ( 0.0 ) mxcor3 = ctypes . c_double ( 0.0 ) libspice . dskrb2_c ( nv , vrtces , np , plates , corsys , corpar , ctypes . byref ( mncor3 ) , ctypes . byref ( mxcor3 ) ) return mncor3 . value , mxcor3 . value
Determine range bounds for a set of triangular plates to be stored in a type 2 DSK segment .
58,664
def dskv02 ( handle , dladsc , start , room ) : handle = ctypes . c_int ( handle ) start = ctypes . c_int ( start ) room = ctypes . c_int ( room ) n = ctypes . c_int ( ) vrtces = stypes . emptyDoubleMatrix ( 3 , room ) libspice . dskv02_c ( handle , dladsc , start , room , ctypes . byref ( n ) , vrtces ) return stypes . cMatrixToNumpy ( vrtces )
Fetch vertices from a type 2 DSK segment .
58,665
def dskw02 ( handle , center , surfid , dclass , fname , corsys , corpar , mncor1 , mxcor1 , mncor2 , mxcor2 , mncor3 , mxcor3 , first , last , vrtces , plates , spaixd , spaixi ) : handle = ctypes . c_int ( handle ) center = ctypes . c_int ( center ) surfid = ctypes . c_int ( surfid ) dclass = ctypes . c_int ( dclass ) fname = stypes . stringToCharP ( fname ) corsys = ctypes . c_int ( corsys ) corpar = stypes . toDoubleVector ( corpar ) mncor1 = ctypes . c_double ( mncor1 ) mxcor1 = ctypes . c_double ( mxcor1 ) mncor2 = ctypes . c_double ( mncor2 ) mxcor2 = ctypes . c_double ( mxcor2 ) mncor3 = ctypes . c_double ( mncor3 ) mxcor3 = ctypes . c_double ( mxcor3 ) first = ctypes . c_double ( first ) last = ctypes . c_double ( last ) nv = ctypes . c_int ( len ( vrtces ) ) vrtces = stypes . toDoubleMatrix ( vrtces ) np = ctypes . c_int ( len ( plates ) ) plates = stypes . toIntMatrix ( plates ) spaixd = stypes . toDoubleVector ( spaixd ) spaixi = stypes . toIntVector ( spaixi ) libspice . dskw02_c ( handle , center , surfid , dclass , fname , corsys , corpar , mncor1 , mxcor1 , mncor2 , mxcor2 , mncor3 , mxcor3 , first , last , nv , vrtces , np , plates , spaixd , spaixi )
Write a type 2 segment to a DSK file .
58,666
def dskx02 ( handle , dladsc , vertex , raydir ) : handle = ctypes . c_int ( handle ) vertex = stypes . toDoubleVector ( vertex ) raydir = stypes . toDoubleVector ( raydir ) plid = ctypes . c_int ( ) xpt = stypes . emptyDoubleVector ( 3 ) found = ctypes . c_int ( ) libspice . dskx02_c ( handle , ctypes . byref ( dladsc ) , vertex , raydir , ctypes . byref ( plid ) , xpt , ctypes . byref ( found ) ) return plid . value , stypes . cVectorToPython ( xpt ) , bool ( found . value )
Determine the plate ID and body - fixed coordinates of the intersection of a specified ray with the surface defined by a type 2 DSK plate model .
58,667
def dskxv ( pri , target , srflst , et , fixref , vtxarr , dirarr ) : pri = ctypes . c_int ( pri ) target = stypes . stringToCharP ( target ) nsurf = ctypes . c_int ( len ( srflst ) ) srflst = stypes . toIntVector ( srflst ) et = ctypes . c_double ( et ) fixref = stypes . stringToCharP ( fixref ) nray = ctypes . c_int ( len ( vtxarr ) ) vtxarr = stypes . toDoubleMatrix ( vtxarr ) dirarr = stypes . toDoubleMatrix ( dirarr ) xptarr = stypes . emptyDoubleMatrix ( y = nray ) fndarr = stypes . emptyIntVector ( nray ) libspice . dskxv_c ( pri , target , nsurf , srflst , et , fixref , nray , vtxarr , dirarr , xptarr , fndarr ) return stypes . cMatrixToNumpy ( xptarr ) , stypes . cVectorToPython ( fndarr )
Compute ray - surface intercepts for a set of rays using data provided by multiple loaded DSK segments .
58,668
def dsphdr ( x , y , z ) : x = ctypes . c_double ( x ) y = ctypes . c_double ( y ) z = ctypes . c_double ( z ) jacobi = stypes . emptyDoubleMatrix ( ) libspice . dsphdr_c ( x , y , z , jacobi ) return stypes . cMatrixToNumpy ( jacobi )
This routine computes the Jacobian of the transformation from rectangular to spherical coordinates .
58,669
def dtpool ( name ) : name = stypes . stringToCharP ( name ) found = ctypes . c_int ( ) n = ctypes . c_int ( ) typeout = ctypes . c_char ( ) libspice . dtpool_c ( name , ctypes . byref ( found ) , ctypes . byref ( n ) , ctypes . byref ( typeout ) ) return n . value , stypes . toPythonString ( typeout . value ) , bool ( found . value )
Return the data about a kernel pool variable .
58,670
def ducrss ( s1 , s2 ) : assert len ( s1 ) is 6 and len ( s2 ) is 6 s1 = stypes . toDoubleVector ( s1 ) s2 = stypes . toDoubleVector ( s2 ) sout = stypes . emptyDoubleVector ( 6 ) libspice . ducrss_c ( s1 , s2 , sout ) return stypes . cVectorToPython ( sout )
Compute the unit vector parallel to the cross product of two 3 - dimensional vectors and the derivative of this unit vector .
58,671
def dvcrss ( s1 , s2 ) : assert len ( s1 ) is 6 and len ( s2 ) is 6 s1 = stypes . toDoubleVector ( s1 ) s2 = stypes . toDoubleVector ( s2 ) sout = stypes . emptyDoubleVector ( 6 ) libspice . dvcrss_c ( s1 , s2 , sout ) return stypes . cVectorToPython ( sout )
Compute the cross product of two 3 - dimensional vectors and the derivative of this cross product .
58,672
def dvdot ( s1 , s2 ) : assert len ( s1 ) is 6 and len ( s2 ) is 6 s1 = stypes . toDoubleVector ( s1 ) s2 = stypes . toDoubleVector ( s2 ) return libspice . dvdot_c ( s1 , s2 )
Compute the derivative of the dot product of two double precision position vectors .
58,673
def dvhat ( s1 ) : assert len ( s1 ) is 6 s1 = stypes . toDoubleVector ( s1 ) sout = stypes . emptyDoubleVector ( 6 ) libspice . dvhat_c ( s1 , sout ) return stypes . cVectorToPython ( sout )
Find the unit vector corresponding to a state vector and the derivative of the unit vector .
58,674
def dvnorm ( state ) : assert len ( state ) is 6 state = stypes . toDoubleVector ( state ) return libspice . dvnorm_c ( state )
Function to calculate the derivative of the norm of a 3 - vector .
58,675
def dvsep ( s1 , s2 ) : assert len ( s1 ) is 6 and len ( s2 ) is 6 s1 = stypes . toDoubleVector ( s1 ) s2 = stypes . toDoubleVector ( s2 ) return libspice . dvsep_c ( s1 , s2 )
Calculate the time derivative of the separation angle between two input states S1 and S2 .
58,676
def edlimb ( a , b , c , viewpt ) : limb = stypes . Ellipse ( ) a = ctypes . c_double ( a ) b = ctypes . c_double ( b ) c = ctypes . c_double ( c ) viewpt = stypes . toDoubleVector ( viewpt ) libspice . edlimb_c ( a , b , c , viewpt , ctypes . byref ( limb ) ) return limb
Find the limb of a triaxial ellipsoid viewed from a specified point .
58,677
def edterm ( trmtyp , source , target , et , fixref , abcorr , obsrvr , npts ) : trmtyp = stypes . stringToCharP ( trmtyp ) source = stypes . stringToCharP ( source ) target = stypes . stringToCharP ( target ) et = ctypes . c_double ( et ) fixref = stypes . stringToCharP ( fixref ) abcorr = stypes . stringToCharP ( abcorr ) obsrvr = stypes . stringToCharP ( obsrvr ) trgepc = ctypes . c_double ( ) obspos = stypes . emptyDoubleVector ( 3 ) trmpts = stypes . emptyDoubleMatrix ( x = 3 , y = npts ) npts = ctypes . c_int ( npts ) libspice . edterm_c ( trmtyp , source , target , et , fixref , abcorr , obsrvr , npts , ctypes . byref ( trgepc ) , obspos , trmpts ) return trgepc . value , stypes . cVectorToPython ( obspos ) , stypes . cMatrixToNumpy ( trmpts )
Compute a set of points on the umbral or penumbral terminator of a specified target body where the target shape is modeled as an ellipsoid .
58,678
def ekacec ( handle , segno , recno , column , nvals , cvals , isnull ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) recno = ctypes . c_int ( recno ) column = stypes . stringToCharP ( column ) nvals = ctypes . c_int ( nvals ) vallen = ctypes . c_int ( len ( max ( cvals , key = len ) ) + 1 ) cvals = stypes . listToCharArrayPtr ( cvals ) isnull = ctypes . c_int ( isnull ) libspice . ekacec_c ( handle , segno , recno , column , nvals , vallen , cvals , isnull )
Add data to a character column in a specified EK record .
58,679
def ekacei ( handle , segno , recno , column , nvals , ivals , isnull ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) recno = ctypes . c_int ( recno ) column = stypes . stringToCharP ( column ) nvals = ctypes . c_int ( nvals ) ivals = stypes . toIntVector ( ivals ) isnull = ctypes . c_int ( isnull ) libspice . ekacei_c ( handle , segno , recno , column , nvals , ivals , isnull )
Add data to an integer column in a specified EK record .
58,680
def ekaclc ( handle , segno , column , vallen , cvals , entszs , nlflgs , rcptrs , wkindx ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) column = stypes . stringToCharP ( column ) vallen = ctypes . c_int ( vallen ) cvals = stypes . listToCharArrayPtr ( cvals ) entszs = stypes . toIntVector ( entszs ) nlflgs = stypes . toIntVector ( nlflgs ) rcptrs = stypes . toIntVector ( rcptrs ) wkindx = stypes . toIntVector ( wkindx ) libspice . ekaclc_c ( handle , segno , column , vallen , cvals , entszs , nlflgs , rcptrs , wkindx ) return stypes . cVectorToPython ( wkindx )
Add an entire character column to an EK segment .
58,681
def ekacld ( handle , segno , column , dvals , entszs , nlflgs , rcptrs , wkindx ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) column = stypes . stringToCharP ( column ) dvals = stypes . toDoubleVector ( dvals ) entszs = stypes . toIntVector ( entszs ) nlflgs = stypes . toIntVector ( nlflgs ) rcptrs = stypes . toIntVector ( rcptrs ) wkindx = stypes . toIntVector ( wkindx ) libspice . ekacld_c ( handle , segno , column , dvals , entszs , nlflgs , rcptrs , wkindx ) return stypes . cVectorToPython ( wkindx )
Add an entire double precision column to an EK segment .
58,682
def ekacli ( handle , segno , column , ivals , entszs , nlflgs , rcptrs , wkindx ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) column = stypes . stringToCharP ( column ) ivals = stypes . toIntVector ( ivals ) entszs = stypes . toIntVector ( entszs ) nlflgs = stypes . toIntVector ( nlflgs ) rcptrs = stypes . toIntVector ( rcptrs ) wkindx = stypes . toIntVector ( wkindx ) libspice . ekacli_c ( handle , segno , column , ivals , entszs , nlflgs , rcptrs , wkindx ) return stypes . cVectorToPython ( wkindx )
Add an entire integer column to an EK segment .
58,683
def ekappr ( handle , segno ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) recno = ctypes . c_int ( ) libspice . ekappr_c ( handle , segno , ctypes . byref ( recno ) ) return recno . value
Append a new empty record at the end of a specified E - kernel segment .
58,684
def ekbseg ( handle , tabnam , cnames , decls ) : handle = ctypes . c_int ( handle ) tabnam = stypes . stringToCharP ( tabnam ) ncols = ctypes . c_int ( len ( cnames ) ) cnmlen = ctypes . c_int ( len ( max ( cnames , key = len ) ) + 1 ) cnames = stypes . listToCharArrayPtr ( cnames ) declen = ctypes . c_int ( len ( max ( decls , key = len ) ) + 1 ) decls = stypes . listToCharArrayPtr ( decls ) segno = ctypes . c_int ( ) libspice . ekbseg_c ( handle , tabnam , ncols , cnmlen , cnames , declen , decls , ctypes . byref ( segno ) ) return segno . value
Start a new segment in an E - kernel .
58,685
def ekccnt ( table ) : table = stypes . stringToCharP ( table ) ccount = ctypes . c_int ( ) libspice . ekccnt_c ( table , ctypes . byref ( ccount ) ) return ccount . value
Return the number of distinct columns in a specified currently loaded table .
58,686
def ekcii ( table , cindex , lenout = _default_len_out ) : table = stypes . stringToCharP ( table ) cindex = ctypes . c_int ( cindex ) lenout = ctypes . c_int ( lenout ) column = stypes . stringToCharP ( lenout ) attdsc = stypes . SpiceEKAttDsc ( ) libspice . ekcii_c ( table , cindex , lenout , column , ctypes . byref ( attdsc ) ) return stypes . toPythonString ( column ) , attdsc
Return attribute information about a column belonging to a loaded EK table specifying the column by table and index .
58,687
def ekdelr ( handle , segno , recno ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) recno = ctypes . c_int ( recno ) libspice . ekdelr_c ( handle , segno , recno )
Delete a specified record from a specified E - kernel segment .
58,688
def ekffld ( handle , segno , rcptrs ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) rcptrs = stypes . toIntVector ( rcptrs ) libspice . ekffld_c ( handle , segno , ctypes . cast ( rcptrs , ctypes . POINTER ( ctypes . c_int ) ) )
Complete a fast write operation on a new E - kernel segment .
58,689
def ekfind ( query , lenout = _default_len_out ) : query = stypes . stringToCharP ( query ) lenout = ctypes . c_int ( lenout ) nmrows = ctypes . c_int ( ) error = ctypes . c_int ( ) errmsg = stypes . stringToCharP ( lenout ) libspice . ekfind_c ( query , lenout , ctypes . byref ( nmrows ) , ctypes . byref ( error ) , errmsg ) return nmrows . value , error . value , stypes . toPythonString ( errmsg )
Find E - kernel data that satisfy a set of constraints .
58,690
def ekgc ( selidx , row , element , lenout = _default_len_out ) : selidx = ctypes . c_int ( selidx ) row = ctypes . c_int ( row ) element = ctypes . c_int ( element ) lenout = ctypes . c_int ( lenout ) null = ctypes . c_int ( ) found = ctypes . c_int ( ) cdata = stypes . stringToCharP ( lenout ) libspice . ekgc_c ( selidx , row , element , lenout , cdata , ctypes . byref ( null ) , ctypes . byref ( found ) ) return stypes . toPythonString ( cdata ) , null . value , bool ( found . value )
Return an element of an entry in a column of character type in a specified row .
58,691
def ekgd ( selidx , row , element ) : selidx = ctypes . c_int ( selidx ) row = ctypes . c_int ( row ) element = ctypes . c_int ( element ) ddata = ctypes . c_double ( ) null = ctypes . c_int ( ) found = ctypes . c_int ( ) libspice . ekgd_c ( selidx , row , element , ctypes . byref ( ddata ) , ctypes . byref ( null ) , ctypes . byref ( found ) ) return ddata . value , null . value , bool ( found . value )
Return an element of an entry in a column of double precision type in a specified row .
58,692
def ekgi ( selidx , row , element ) : selidx = ctypes . c_int ( selidx ) row = ctypes . c_int ( row ) element = ctypes . c_int ( element ) idata = ctypes . c_int ( ) null = ctypes . c_int ( ) found = ctypes . c_int ( ) libspice . ekgi_c ( selidx , row , element , ctypes . byref ( idata ) , ctypes . byref ( null ) , ctypes . byref ( found ) ) return idata . value , null . value , bool ( found . value )
Return an element of an entry in a column of integer type in a specified row .
58,693
def ekifld ( handle , tabnam , ncols , nrows , cnmlen , cnames , declen , decls ) : handle = ctypes . c_int ( handle ) tabnam = stypes . stringToCharP ( tabnam ) ncols = ctypes . c_int ( ncols ) nrows = ctypes . c_int ( nrows ) cnmlen = ctypes . c_int ( cnmlen ) cnames = stypes . listToCharArray ( cnames ) declen = ctypes . c_int ( declen ) recptrs = stypes . emptyIntVector ( nrows ) decls = stypes . listToCharArray ( decls ) segno = ctypes . c_int ( ) libspice . ekifld_c ( handle , tabnam , ncols , nrows , cnmlen , cnames , declen , decls , ctypes . byref ( segno ) , recptrs ) return segno . value , stypes . cVectorToPython ( recptrs )
Initialize a new E - kernel segment to allow fast writing .
58,694
def ekinsr ( handle , segno , recno ) : handle = ctypes . c_int ( handle ) segno = ctypes . c_int ( segno ) recno = ctypes . c_int ( recno ) libspice . ekinsr_c ( handle , segno , recno )
Add a new empty record to a specified E - kernel segment at a specified index .
58,695
def eklef ( fname ) : fname = stypes . stringToCharP ( fname ) handle = ctypes . c_int ( ) libspice . eklef_c ( fname , ctypes . byref ( handle ) ) return handle . value
Load an EK file making it accessible to the EK readers .
58,696
def eknelt ( selidx , row ) : selidx = ctypes . c_int ( selidx ) row = ctypes . c_int ( row ) return libspice . eknelt_c ( selidx , row )
Return the number of elements in a specified column entry in the current row .
58,697
def ekntab ( ) : n = ctypes . c_int ( 0 ) libspice . ekntab_c ( ctypes . byref ( n ) ) return n . value
Return the number of loaded EK tables .
58,698
def ekopn ( fname , ifname , ncomch ) : fname = stypes . stringToCharP ( fname ) ifname = stypes . stringToCharP ( ifname ) ncomch = ctypes . c_int ( ncomch ) handle = ctypes . c_int ( ) libspice . ekopn_c ( fname , ifname , ncomch , ctypes . byref ( handle ) ) return handle . value
Open a new E - kernel file and prepare the file for writing .
58,699
def ekopr ( fname ) : fname = stypes . stringToCharP ( fname ) handle = ctypes . c_int ( ) libspice . ekopr_c ( fname , ctypes . byref ( handle ) ) return handle . value
Open an existing E - kernel file for reading .