@@ -2759,38 +2759,6 @@ def dasopw(fname: str) -> int:
27592759 return handle.value
27602760
27612761
2762- @spice_error_check
2763- def dasrdc(
2764- handle: int, first: int, last: int, bpos: int, epos: int, datlen: int
2765- ) -> list:
2766- """
2767- Read character data from a range of DAS logical addresses.
2768-
2769- https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasrdc_c.html
2770-
2771- :param handle: DAS file handle.
2772- :param first: start range of DAS character logical addresses.
2773- :param last: end range of DAS character logical addresses.
2774- :param bpos: end positions of substrings.
2775- :param epos: begin positions of substrings.
2776- :param datlen: Common length of the character arrays in data.
2777- :return: Data having addresses first through last.
2778- """
2779- _handle = ctypes.c_int(handle)
2780- _first = ctypes.c_int(first)
2781- _last = ctypes.c_int(last)
2782- _bpos = ctypes.c_int(bpos)
2783- _epos = ctypes.c_int(epos)
2784- _datlen = ctypes.c_int(datlen)
2785- sublen = epos - bpos + 1
2786- r = int((last - first + sublen) // sublen)
2787- _data = stypes.empty_char_array(x_len=epos + 1, y_len=r)
2788- libspice.dasrdc_c(
2789- _handle, _first, _last, _bpos, _epos, _datlen, ctypes.byref(_data)
2790- )
2791- return stypes.c_vector_to_python(_data)
2792-
2793-
27942762@spice_error_check
27952763def dasrdd(handle: int, first: int, last: int) -> ndarray:
27962764 """
@@ -2876,41 +2844,6 @@ def dasrfr(
28762844 )
28772845
28782846
2879- @spice_error_check
2880- def dasudc(
2881- handle: int,
2882- first: int,
2883- last: int,
2884- bpos: int,
2885- epos: int,
2886- datlen: int,
2887- data: Sequence[str],
2888- ) -> None:
2889- """
2890- Update character data in a specified range of DAS logical
2891- addresses with substrings of a character array.
2892-
2893- https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasudc_c.html
2894-
2895- :param handle: DAS file handle.
2896- :param last: Range of DAS character logical addresses.
2897- :param bpos: Begin and end positions of substrings.
2898- :param epos: Begin and end positions of substrings.
2899- :param datlen: Common length of the character arrays in data.
2900- :param data: Data having addresses first through last.
2901- """
2902- _handle = ctypes.c_int(handle)
2903- _first = ctypes.c_int(first)
2904- _last = ctypes.c_int(last)
2905- _bpos = ctypes.c_int(bpos)
2906- _epos = ctypes.c_int(epos)
2907- _datlen = ctypes.c_int(datlen)
2908- sublen = epos - bpos + 1
2909- r = int((last - first + sublen) // sublen)
2910- _data = stypes.list_to_char_array_ptr(data, x_len=epos + 1, y_len=r)
2911- libspice.dasudc_c(_handle, _first, _last, _bpos, _epos, _datlen, _data)
2912-
2913-
29142847@spice_error_check
29152848def dasudd(handle: int, first: int, last: int, data: ndarray) -> None:
29162849 """
0 commit comments