cspyce


Namecspyce JSON
Version 2.3.2 PyPI version JSON
download
home_pagehttps://github.com/SETI/rms-cspyce
SummaryHigh-performance Python interface to the NAIF CSPICE library
upload_time2024-12-17 04:13:25
maintainerRobert S. French
docs_urlNone
authorNone
requires_python>=3.9
licenseApache-2.0
keywords cspyce spice cspice naif jpl space geometry ephemeris
VCS
bugtrack_url
requirements coverage pytest pytest-cov requests numpy setuptools
Travis-CI No Travis.
coveralls test coverage
            [![GitHub release; latest by date](https://img.shields.io/github/v/release/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/releases)
[![GitHub Release Date](https://img.shields.io/github/release-date/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/releases)
[![Test Status](https://img.shields.io/github/actions/workflow/status/SETI/rms-cspyce/run-tests.yml?branch=main)](https://github.com/SETI/rms-cspyce/actions)
[![Code coverage](https://img.shields.io/codecov/c/github/SETI/rms-cspyce/main?logo=codecov)](https://codecov.io/gh/SETI/rms-cspyce)
<br />
[![PyPI - Version](https://img.shields.io/pypi/v/cspyce)](https://pypi.org/project/cspyce)
[![PyPI - Format](https://img.shields.io/pypi/format/cspyce)](https://pypi.org/project/cspyce)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/cspyce)](https://pypi.org/project/cspyce)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cspyce)](https://pypi.org/project/cspyce)
<br />
[![GitHub commits since latest release](https://img.shields.io/github/commits-since/SETI/rms-cspyce/latest)](https://github.com/SETI/rms-cspyce/commits/main/)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/commits/main/)
[![GitHub last commit](https://img.shields.io/github/last-commit/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/commits/main/)
<br />
[![Number of GitHub open issues](https://img.shields.io/github/issues-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/issues)
[![Number of GitHub closed issues](https://img.shields.io/github/issues-closed-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/issues)
[![Number of GitHub open pull requests](https://img.shields.io/github/issues-pr-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/pulls)
[![Number of GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/pulls)
<br />
![GitHub License](https://img.shields.io/github/license/SETI/rms-cspyce)
[![Number of GitHub stars](https://img.shields.io/github/stars/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/stargazers)
![GitHub forks](https://img.shields.io/github/forks/SETI/rms-cspyce)


# `cspyce` MODULE OVERVIEW
Version 2.x, originally released March, 2022 (see above for current installable
version)

PDS Ring-Moon Systems Node, SETI Institute

`cspyce` is a Python module that provides an interface to the C-language CSPICE
library produced by the Navigation and Ancillary Information Facility
([NAIF](https://naif.jpl.nasa.gov/naif/)) of NASA's Planetary Data System (PDS).
It implements most functions of CSPICE in a Python-like way, while also
supporting numerous enhancements, including support for Python exceptions,
array inputs, and aliases.

`cspyce` may be installed by running `pip install cspyce`.

Python versions 3.9 thru 3.13 are currently supported, with pre-built wheels
available for Linux, MacOS, and Windows. NumPy 1.x and 2.x are supported.

If you are looking for information on running or distributing this code from
the GitHub sources, look at the file `README-developers.md` in this directory.

## PYTHONIZATION

`cspyce` has been designed to replicate the core features of CSPICE for
users who wish to translate a program that already exists. Function names in
`cspyce` match their CSPICE names.

However, it is also designed to behave as much as possible like a normal
Python module. To that end, it has the following features.

- The C language requires buffers to be allocated for output and it requires
  array sizes to be included for both input and output. The `cspyce` module,
  instead, eliminates all extraneous inputs, and all output arguments are
  returned as a list (or as a single object if the function only returns one
  item).

- `cspyce` has been fully integrated with Python's exception handling;
  programmers can still opt to use CSPICE's error handling mechanism if they
  wish to.

- All `cspyce` functions can handle positional arguments as well as arguments
  passed by name.

- All `cspyce` functions have informative docstrings, so typing
  `help(function)` provides useful information.

- Many `cspyce` functions take sensible default values if input arguments are
  omitted.

- All `cspyce` functions that take filename arguments now support
  [path-like-argument](https://docs.python.org/3/glossary.html#term-path-like-object)s.
  A path-like argument could be a strings, a byte string, or a `pathlib.Path`.
  The [`pathlib.Path`](https://docs.python.org/3/library/pathlib.html) class provides an
  object-oriented class for manipulating file-system paths and performing common operations
  on files.

## ENHANCEMENTS

In addition, the `cspyce` module takes advantage of features of the Python
language to provide numerous options about how the functions perform their work.
These options include:

- Whether to return a CSPICE-style error condition or to raise a Python
  exception.

- How to handle CSPICE functions that return a status flag, e.g., "found" or
  "ok", instead of using the CSPICE toolkit's error handling mechanism.

- Whether to allow `cspyce` functions to accept arrays of inputs all at once,
  rather than looping through inputs in Python.

- Whether to automate the translation between SPICE body and frame IDs and their
  associated names.

- Whether to allow `cspyce` to support aliases, in which the same body or frame
  is associated with alternative names or IDs.

---
## EXCEPTION HANDLING

In CSPICE, the user can designate what to do in the event of an error condition
using the function `erract()`. In CSPICE, the available options are "RETURN",
"REPORT", "IGNORE", "ABORT", and "DEFAULT". The `cspyce` version of this
function adds new options "EXCEPTION" and "RUNTIME" to the suite of error
handling options supported by CSPICE.

- As usual, the user can select the exception handling mechanism to use by
  calling the function erract(). In `cspyce`, the default is "EXCEPTION".

- When using the "EXCEPTION" option, each CSPICE error condition raises a
  Python exception rather than setting the `failed()` flag. The exception
  contains the text of the CSPICE error, in the form (short message + " -- " +
  long message). The CSPICE error conditions are mapped to standard Python
  exception types in a sensible way:
  - `KeyError` indicates that a SPICE ID or name is unrecognized.
  - `ValueError` indicates that one of the inputs to a function had an invalid
    value.
  - `TypeError` indicates that one of the inputs to a function had an invalid
    type.
  - `IndexError` indicates that an integer index is out of range.
  - `IOError` indicates errors with reading and writing files, including SPICE
    kernels. IOError can also indicate that needed information was not in one
    of the furnished kernels.
  - `MemoryError` indicates that adequate memory could not be allocated, or
    that the defined size of a memory buffer in C is too small.
  - `ZeroDivisionError` indicates that a divide-by-zero has occurred.
  - `RuntimeError` indicates that an action is incompatible with some aspect
    of the CSPICE module's internal configuration.

- When using one of CSPICE's intrinsic error handling methods, no exception
  will be raised, but a call to `failed()` will reveal whether an error has
  occurred. A call to `reset()` is needed to clear the error.

- Care has been taken to reduce the chances that the "dangerous" options
  "IGNORE" and "REPORT" will cause a segmentation fault. However, this
  possibility cannot be entirely ruled out, so caution is advised.

- Because it would be a highly questionable thing to do, the "ABORT" and
  "DEFAULT" options are overridden by "EXCEPTION" when the user is running
  `cspyce` from an interactive shell. However, they resume their standard
  effects during non-interactive runs.

- When using the "RUNTIME" option, each CSPICE error condition raises a
  Python `RuntimeError` exception rather than setting the `failed()` flag. This
  is similar to the "EXCEPTION" option except the type of exception is always
  the same.

- Certain out-of-memory conditions are beyond the control of the CSPICE
  library. These will always raise a MemoryError exception, regardless of the
  exception handling method chosen.

### HANDLING OF ERROR FLAGS

Many CSPICE functions bypass the library's own error handling mechanism; instead
they return a status flag, sometimes called "found" or "ok", or perhaps an empty
response to indicate failure. The `cspyce` module provides alternative options
for these functions.

Within `cspyce`, functions that return error flags have an alternative
implementation with a suffix of "_error", which uses the CSPICE/`cspyce` error
handling mechanism detailed above instead.

Note that most `_error` versions of functions have fewer return values than the
associated non-error versions. The user should be certain which version is being
used before interpreting the returned value(s).

The `cspyce` module provides several ways to control which version of the
function to use:

- The function `use_flags()` takes a function name or list of names and
  designates the original version of each function as the default. If the input
  argument is missing, original versions are selected universally.

- The function `use_errors()` takes a function name or list of names and
  designates the `_error` version of each function as the default. If the input
  argument is missing, `_error` versions are selected universally.

To provide a more consistent Python interface, the `_error` versions of all
`cspyce` functions are selected by default. You can also choose between the
"flag" and "error" versions of a function using `cspyce` function attributes,
as discussed below.

---
## VECTORS AND ARRAYS

### VECTORIZATION
Nearly every function that takes floating-point input (be it a
scalar, 1-D array, or 2-D array) has a vectorized version that allows you to
pass a vector of these items in place of a single value. The CSPICE function is
called for each of the provided inputs, the results are collected, and the
`cspyce` function returns a vector of results.

- Vectorized versions have the same name but with `_vector` appended.

- In a vectorized function, you can replace any or all floating-point input
  parameters with an array having one extra leading dimension. Integer, boolean,
  and string inputs cannot be replaced by arrays.

- If no inputs have an extra dimension, then the result is the same as
  calling the original, un-vectorized function.

- Otherwise, all returned quantities are replaced by arrays having the size of
  the largest leading axis.

- Note that it is permissible to pass arrays with different leading axis sizes
  to the function. The vectorized function cycles through the elements of each
  array repeatedly if necessary. It may make sense to do this if each leading
  axis is an integer fraction of the largest axis size. For example, if the
  first input array has size 100 and the second has size 25, then the returned
  arrays(s) will have 100 elements and the values of the second will each be
  used four times. However, caution is advised when using this capability.

- Some functions are not vectorized. These include:
  - Functions that have no floating-point inputs.
  - Functions that include strings among the returned quantities.
  - Functions that already return arrays where the leading axis could be
    variable in size.

- In the two cases (`ckgp` and `ckgpav`) where a function can be both vectorized
  and either raise an error or return a flag, the `_vector` suffix comes
  before `_error`.

### ARRAYS
An optional import allows the `cspyce` module to support multidimensional
arrays:

```python
import cspyce
import cspyce.arrays
```

The latter import creates a new function in which the suffix `_array` replaces
`_vector` for every vectorized function. Whereas `_vector` functions support
only a single extra dimension, `_array` functions follow all the standard rules
of shape broadcasting as defined in NumPy. For example, if one input has leading
dimension (10,4) and another has dimension (4,), then the two shapes will be
broadcasted together and returned quantities will be arrays with shape (10,4).

You can choose between the scalar, vector, and array versions of a function by
using their explicit names, or by using `cspyce` function attributes, as discussed
below.

---
## ALIASES

Aliases allow the user to associate multiple names or SPICE codes with the same
CSPICE body or frame. Aliases can be used for a variety of purposes.

- You can use names and codes interchangeably as input arguments to any `cspyce`
  function.
- You can use a body name or code in place of a frame name or code, and the
  primary frame associated with that identified body will be used.
- Strings that represent integers are equivalent to the integers themselves.

Most importantly, you can allow multiple names or codes to refer to the same
CSPICE body or frame. For bodies and frames that have multiple names or codes,
calls to a `cspyce` function will try each option in sequence until it finds one
that works. Options are always tried in the order in which they were defined, so
higher-priority names and codes are tried first.

Example 1: Jupiter's moon Dia uses code 553, but it previously used code
55076. With 55076 defined as an alias for 553, a `cspyce` call will return
information about Dia under either of its codes.

Example 2: The Earth's rotation is, by default, modeled by frame "IAU_EARTH".
However, "ITRF93" is the name of a much more precise description of Earth's
rotation. If you define "IAU_EARTH" as an alias for "ITRF93", then the `cspyce`
toolkit will use ITRF93 if it is available, and otherwise IAU_EARTH.

Immediately after a `cspyce` call involving aliases, you can find out what value
or values were actually used by looking at attributes of the function. For
example, the first input to the `cspyce` function `spkez` is called `targ` and
it identifies the code of a target being observed. After a call to

```python
cspyce.spkez(553, ...)
```
the value of `cspyce.spkez.targ` will be the code actually used, in this case
either 553 or 55076.

To enable aliases, you must import an additional module

```python
import cspyce
import cspyce.aliases
```

(Note that `cspyce.aliases` and `cspyce.arrays` can both be imported, and in
either order. Note also that these are unconventional modules, in that they
introduce new functionality into the `cspyce` namespace rather than creating
new namespaces called `cspyce.aliases` and `cspyce.arrays`.)

With this import, a new function is defined for every `cspyce` function that takes
a frame or body as input. The new function has the same name as the pre-existing
`cspyce` function, but with `_alias` inserted immediately after the original
`cspyce` name (and before any other suffix such as `_vector` or `_error`).

You can make alias support the default for individual `cspyce` functions or for
the entire `cspyce` module by calling `cspyce.use_aliases()`. These versions
can subsequently be disabled as the default by calling `cspyce.use_noaliases()`
(see more detailed discussion below).

To define a body alias or frame alias, call

    cspyce.define_body_aliases(name_or_code, name_or_code, ...)
    cspyce.define_frame_aliases(name_or_code, name_or_code, ...)

where the arguments are an arbitrary list of codes and names.

To determine the aliases associated with a name or code, call

    cspyce.get_body_aliases(name_or_code)
    cspyce.get_frame_aliases(name_or_code)

where the argument is either a name or a code.

You can also select between the alias-supporting and alias-nonsupporting
versions of a function using function attributes as discussed below.

---
## FUNCTION NAMES, VERSIONS AND SELECTION METHODS

A `cspyce` function can accumulate several suffixes, based on the particular
behavior, as so:
```python
basename[_alias][_vector|_array][_error]
```
Only functions that are truly distinct are defined. For example, if a function
does not have a vector option, then no function will exist containing the
`_vector` suffix.

You can use these functions to set defaults:

    cspyce.use_flags()
    cspyce.use_errors()
    cspyce.use_scalars()
    cspyce.use_vectors()
    cspyce.use_arrays()
    cspyce.use_aliases()
    cspyce.use_noaliases()

Each function can take one or more arguments referencing specific `cspyce`
functions, in which case the defaults only apply to those functions. If no
arguments are specified, the default applies to all functions. For example,
to use "flags" as the default for all functions except `ckgp`, you could use:

    cspyce.use_flags()
    cspyce.use_errors(cspyce.ckgp)

### FUNCTION ATTRIBUTES

Function attributes provide a simpler mechanism for choosing the needed
version of a function, without needing to remember the suffix rules. Every
`cspyce` function has these attributes, each of which identifies another
(or possibly the same) `cspyce` function:

| Attribute      | Meaning                                                    |
|----------------|------------------------------------------------------------|
| `func.flag`    | the equivalent function without the _error suffix, if any. |
| `func.error`   | the equivalent function with the _error suffix, if any.    |
| `func.scalar`  | the equivalent function without _array or _vector suffixes.|
| `func.vector`  | the equivalent function with the _vector suffix, if any.   |
| `func.array`   | the equivalent function with the _array suffix, if any.    |
| `func.alias`   | the equivalent function with the _alias suffix, if any.    |
| `func.noalias` | the equivalent function without the _alias suffix, if any. |

These attributes are always defined, even if the particular option is not
supported by that function. This saves the programmer the effort of remembering,
for example, which functions support aliases or which functions support flags.

Thus, if the programmer wishes to be sure they are using the error version of
function `bodn2c`, and wants the vector version if it exists (but it doesn't!),
they can call

```python
cspyce.bodn2c.error.vector(args, ...)
```

---
## RECORD ENHANCEMENTS

### SpiceCell
`cspyce` provides an enhanced version of `SpiceCell` to make it simpler to use for
both CSPICE and in Python.

In the documentation that follows, _active elements_ refer to those elements in the
`SpiceCell` whose `index` is such that `0 ≤ index < spice_cell.card`.

#### Constructors
To create a `SpiceCell`:

```python
from cspyce import SpiceCell, SPICE_CELL_INT, SPICE_CELL_DOUBLE
spice_cell = SpiceCell(typeno=SPICE_CELL_INT, size=20)
spice_cell = SpiceCell(typeno=SPICE_CELL_DOUBLE, size=10)
```

With these constructors, `spice_cell.card` will be set to 0 and there will initially be
no active elements.

If you already have data that you want to convert to a spice cell, you can use a simpler
interface:
```python
spice_cell = SpiceCell([1, 2, 3, 4, 5])
spice_cell = SpiceCell(np.arange(1.0, 10.0))
spice_cell = SpiceCell(np.arange(1.0, 10.0), size=40)  # set size explicitly
```
If you use these constructions, Python will create a `SpiceCell` whose size is a little
bigger than the length of the given data. The passed first argument will be the active
elements.

Any CSPICE function that expects a `SpiceCell` as an input can also be passed an array,
a tuple, or anything that can reasonably be converted into an appropriately typed
`SpiceCell`:

Any CSPICE function that returns a `SpiceCell` as a result takes an optional final
argument.
* If this argument is omitted, a `SpiceCell` with a function-specific default capacity
  will be created, and the output will be placed into it.
* If this argument is a `SpiceCell`, it will be used as the output argument.
* If this argument is an integer, a `SpiceCell` with that capacity will be created and
  used as the output.

In all cases, the `SpiceCell` output will also be a return value.

```shell
>>> import cspyce
>>> cspyce.wninsd(2.0, 4.9, (1.0, 3.0, 5.0, 7.0, 9.0, 11.0))
<SpiceCell double 6/12 [ 1.   4.9  5.   7.   9.  11. ]>
```

#### Sequence-like operations

`SpiceCell` offers the following methods so that they behave like Python sequences.

`spice_cell[index]`, `spice_cell[index] = value`

:  Gets or sets the `index`-th element of the `SpiceCell`.
   Must have `-len(spice_cell) ≤ index < spice_cell.size`.  As in Python, we allow
   negative indices, but -1, -2, etc count backwards from the last active elements.

`len(spice_cell)`
: Returns the number of active elements of `spice_cell`.

`spice_cell.append(value)`
: If `value` is a float or integer, it is added to the `SpiceCell`'s active cells.
If `value` is an array, all of its elements are added to the `SpiceCell`'s active cells.
The cell's maximum size is grown if necessary.

`spice_cell.extend(values)`
: Appends each value in `values` to the end of the `SpiceCell`'s active cells.
Each element of `values` can be a float, an integer, or an array.
The `SpiceCell`'s maximum size is grown if necessary.

`spice_cell += values`
: Synonym for `spice_cell.extend(values)`

`spice_cell.clear()`
: Make all elements inactive. Same as `spice_cell.card = 0`.

`iter(spice_cell)`
: Iterates through the active elements of `spice_cell`.
Because of this iterator, `list(spice_cell)`, `set(spice_cell)`, and `tuple(spice_cell)`
work as expected.
You can also write a for loop `for item in spice_cell: ...` to iterate through
the active elements.

`bool(spice_cell)`
: If a `spice_cell` is used in a boolean context, its value is `False` if all elements
are inactive (`spice.cell.card == 0`), and `True` otherwise.

#### SpiceCell-specific operations

`SpiceCell` also has the following methods and properties specific to a `SpiceCell`.

`spice_cell.size`
: Gets the current maximum size of the `SpiceCell`.

`spice_cell.size = value`
: Grows or shrinks the maximum size of the `SpiceCell`.
If the number of active elements is greater than `value`, it is reduced to `value`.
This operation is a `cspyce` enhancement that does not exist in CSPICE.

`spice_cell.card`
: Same as `len(spice_cell)`.  (Also known as the "cardinality", hence the name).

`spice_cell.card = value`
: Changes the number of active elements in the `SpiceCell`.
Must have `0 ≤ value < spice_cell.size`.

`spice_cell.as_array()`
: Returns a view of the active contents of the array as a numpy array

`spice_cell.as_intervals()`
: Returns a view of the active contents of the array as a 2-dimensional `card/2`x 2 array.
Many `SpiceCell`s are used to represent intervals in which each
pair of numbers represents the lower and upper bounds.

Although `cspyce`'s `SpiceCell`s can grow and shrink, CSPICE is not aware of this
capability. Its functions will still raise a WINDOWOVERFLOW if `SpiceCell.size` is
not large enough to hold the results.  The user must increase `SpiceCell.size` and try
again.

#### Handling intervals and other structures

Although internally, a `SpiceCell` is a flat array of integers or floats,
some CSPICE routines treat the contents of a `SpiceCell`
as if it were a 2-dimensional array.
For example, some CSPICE routines expect the `SpiceCell` to contain pairs of values
where each pair represents the limits of an interval.

To simplify dealing with this use case, the methods `append` and `extend` have been enhanced.
You can pass an array or an array-like object to `append`, and all elements of the
array will be added to the `SpiceCell`.
Likewise you can pass `extend` a sequence of array-like objects, and all of them will
be added to the `SpiceCell`.

So, for example, you could write:
```python
spice_cell.append([10, 20])
spice_cell.extend([[35, 50], [90, 100], [120, 140]])
```
to add intervals to your SpiceCell.

To view a `SpiceCell` containing intervals, you can use `spice_cell.as_intervals()`
as described above.
This is just a shortcut for `spice_cell.as_array().reshape(-1, 2)`, where
-1 is a special marker to `reshape` saying "figure out this value from the size of the
array and the other dimensions".
The expression `spice_cell.as_array().reshape(-1, 3)` would give an array of triples.
`self.as_array().reshape(-1, 4, 4)` gives an array of 4x4 matrices.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SETI/rms-cspyce",
    "name": "cspyce",
    "maintainer": "Robert S. French",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "\"Robert S. French\" <rfrench@seti.org>",
    "keywords": "cspyce, spice, cspice, naif, jpl, space, geometry, ephemeris",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a6/b4/78f1620fcbe6a0698462e9154907830b923b7bc6e490a7a4470ae8279e71/cspyce-2.3.2.tar.gz",
    "platform": null,
    "description": "[![GitHub release; latest by date](https://img.shields.io/github/v/release/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/releases)\n[![GitHub Release Date](https://img.shields.io/github/release-date/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/releases)\n[![Test Status](https://img.shields.io/github/actions/workflow/status/SETI/rms-cspyce/run-tests.yml?branch=main)](https://github.com/SETI/rms-cspyce/actions)\n[![Code coverage](https://img.shields.io/codecov/c/github/SETI/rms-cspyce/main?logo=codecov)](https://codecov.io/gh/SETI/rms-cspyce)\n<br />\n[![PyPI - Version](https://img.shields.io/pypi/v/cspyce)](https://pypi.org/project/cspyce)\n[![PyPI - Format](https://img.shields.io/pypi/format/cspyce)](https://pypi.org/project/cspyce)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/cspyce)](https://pypi.org/project/cspyce)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cspyce)](https://pypi.org/project/cspyce)\n<br />\n[![GitHub commits since latest release](https://img.shields.io/github/commits-since/SETI/rms-cspyce/latest)](https://github.com/SETI/rms-cspyce/commits/main/)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/commits/main/)\n[![GitHub last commit](https://img.shields.io/github/last-commit/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/commits/main/)\n<br />\n[![Number of GitHub open issues](https://img.shields.io/github/issues-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/issues)\n[![Number of GitHub closed issues](https://img.shields.io/github/issues-closed-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/issues)\n[![Number of GitHub open pull requests](https://img.shields.io/github/issues-pr-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/pulls)\n[![Number of GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed-raw/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/pulls)\n<br />\n![GitHub License](https://img.shields.io/github/license/SETI/rms-cspyce)\n[![Number of GitHub stars](https://img.shields.io/github/stars/SETI/rms-cspyce)](https://github.com/SETI/rms-cspyce/stargazers)\n![GitHub forks](https://img.shields.io/github/forks/SETI/rms-cspyce)\n\n\n# `cspyce` MODULE OVERVIEW\nVersion 2.x, originally released March, 2022 (see above for current installable\nversion)\n\nPDS Ring-Moon Systems Node, SETI Institute\n\n`cspyce` is a Python module that provides an interface to the C-language CSPICE\nlibrary produced by the Navigation and Ancillary Information Facility\n([NAIF](https://naif.jpl.nasa.gov/naif/)) of NASA's Planetary Data System (PDS).\nIt implements most functions of CSPICE in a Python-like way, while also\nsupporting numerous enhancements, including support for Python exceptions,\narray inputs, and aliases.\n\n`cspyce` may be installed by running `pip install cspyce`.\n\nPython versions 3.9 thru 3.13 are currently supported, with pre-built wheels\navailable for Linux, MacOS, and Windows. NumPy 1.x and 2.x are supported.\n\nIf you are looking for information on running or distributing this code from\nthe GitHub sources, look at the file `README-developers.md` in this directory.\n\n## PYTHONIZATION\n\n`cspyce` has been designed to replicate the core features of CSPICE for\nusers who wish to translate a program that already exists. Function names in\n`cspyce` match their CSPICE names.\n\nHowever, it is also designed to behave as much as possible like a normal\nPython module. To that end, it has the following features.\n\n- The C language requires buffers to be allocated for output and it requires\n  array sizes to be included for both input and output. The `cspyce` module,\n  instead, eliminates all extraneous inputs, and all output arguments are\n  returned as a list (or as a single object if the function only returns one\n  item).\n\n- `cspyce` has been fully integrated with Python's exception handling;\n  programmers can still opt to use CSPICE's error handling mechanism if they\n  wish to.\n\n- All `cspyce` functions can handle positional arguments as well as arguments\n  passed by name.\n\n- All `cspyce` functions have informative docstrings, so typing\n  `help(function)` provides useful information.\n\n- Many `cspyce` functions take sensible default values if input arguments are\n  omitted.\n\n- All `cspyce` functions that take filename arguments now support\n  [path-like-argument](https://docs.python.org/3/glossary.html#term-path-like-object)s.\n  A path-like argument could be a strings, a byte string, or a `pathlib.Path`.\n  The [`pathlib.Path`](https://docs.python.org/3/library/pathlib.html) class provides an\n  object-oriented class for manipulating file-system paths and performing common operations\n  on files.\n\n## ENHANCEMENTS\n\nIn addition, the `cspyce` module takes advantage of features of the Python\nlanguage to provide numerous options about how the functions perform their work.\nThese options include:\n\n- Whether to return a CSPICE-style error condition or to raise a Python\n  exception.\n\n- How to handle CSPICE functions that return a status flag, e.g., \"found\" or\n  \"ok\", instead of using the CSPICE toolkit's error handling mechanism.\n\n- Whether to allow `cspyce` functions to accept arrays of inputs all at once,\n  rather than looping through inputs in Python.\n\n- Whether to automate the translation between SPICE body and frame IDs and their\n  associated names.\n\n- Whether to allow `cspyce` to support aliases, in which the same body or frame\n  is associated with alternative names or IDs.\n\n---\n## EXCEPTION HANDLING\n\nIn CSPICE, the user can designate what to do in the event of an error condition\nusing the function `erract()`. In CSPICE, the available options are \"RETURN\",\n\"REPORT\", \"IGNORE\", \"ABORT\", and \"DEFAULT\". The `cspyce` version of this\nfunction adds new options \"EXCEPTION\" and \"RUNTIME\" to the suite of error\nhandling options supported by CSPICE.\n\n- As usual, the user can select the exception handling mechanism to use by\n  calling the function erract(). In `cspyce`, the default is \"EXCEPTION\".\n\n- When using the \"EXCEPTION\" option, each CSPICE error condition raises a\n  Python exception rather than setting the `failed()` flag. The exception\n  contains the text of the CSPICE error, in the form (short message + \" -- \" +\n  long message). The CSPICE error conditions are mapped to standard Python\n  exception types in a sensible way:\n  - `KeyError` indicates that a SPICE ID or name is unrecognized.\n  - `ValueError` indicates that one of the inputs to a function had an invalid\n    value.\n  - `TypeError` indicates that one of the inputs to a function had an invalid\n    type.\n  - `IndexError` indicates that an integer index is out of range.\n  - `IOError` indicates errors with reading and writing files, including SPICE\n    kernels. IOError can also indicate that needed information was not in one\n    of the furnished kernels.\n  - `MemoryError` indicates that adequate memory could not be allocated, or\n    that the defined size of a memory buffer in C is too small.\n  - `ZeroDivisionError` indicates that a divide-by-zero has occurred.\n  - `RuntimeError` indicates that an action is incompatible with some aspect\n    of the CSPICE module's internal configuration.\n\n- When using one of CSPICE's intrinsic error handling methods, no exception\n  will be raised, but a call to `failed()` will reveal whether an error has\n  occurred. A call to `reset()` is needed to clear the error.\n\n- Care has been taken to reduce the chances that the \"dangerous\" options\n  \"IGNORE\" and \"REPORT\" will cause a segmentation fault. However, this\n  possibility cannot be entirely ruled out, so caution is advised.\n\n- Because it would be a highly questionable thing to do, the \"ABORT\" and\n  \"DEFAULT\" options are overridden by \"EXCEPTION\" when the user is running\n  `cspyce` from an interactive shell. However, they resume their standard\n  effects during non-interactive runs.\n\n- When using the \"RUNTIME\" option, each CSPICE error condition raises a\n  Python `RuntimeError` exception rather than setting the `failed()` flag. This\n  is similar to the \"EXCEPTION\" option except the type of exception is always\n  the same.\n\n- Certain out-of-memory conditions are beyond the control of the CSPICE\n  library. These will always raise a MemoryError exception, regardless of the\n  exception handling method chosen.\n\n### HANDLING OF ERROR FLAGS\n\nMany CSPICE functions bypass the library's own error handling mechanism; instead\nthey return a status flag, sometimes called \"found\" or \"ok\", or perhaps an empty\nresponse to indicate failure. The `cspyce` module provides alternative options\nfor these functions.\n\nWithin `cspyce`, functions that return error flags have an alternative\nimplementation with a suffix of \"_error\", which uses the CSPICE/`cspyce` error\nhandling mechanism detailed above instead.\n\nNote that most `_error` versions of functions have fewer return values than the\nassociated non-error versions. The user should be certain which version is being\nused before interpreting the returned value(s).\n\nThe `cspyce` module provides several ways to control which version of the\nfunction to use:\n\n- The function `use_flags()` takes a function name or list of names and\n  designates the original version of each function as the default. If the input\n  argument is missing, original versions are selected universally.\n\n- The function `use_errors()` takes a function name or list of names and\n  designates the `_error` version of each function as the default. If the input\n  argument is missing, `_error` versions are selected universally.\n\nTo provide a more consistent Python interface, the `_error` versions of all\n`cspyce` functions are selected by default. You can also choose between the\n\"flag\" and \"error\" versions of a function using `cspyce` function attributes,\nas discussed below.\n\n---\n## VECTORS AND ARRAYS\n\n### VECTORIZATION\nNearly every function that takes floating-point input (be it a\nscalar, 1-D array, or 2-D array) has a vectorized version that allows you to\npass a vector of these items in place of a single value. The CSPICE function is\ncalled for each of the provided inputs, the results are collected, and the\n`cspyce` function returns a vector of results.\n\n- Vectorized versions have the same name but with `_vector` appended.\n\n- In a vectorized function, you can replace any or all floating-point input\n  parameters with an array having one extra leading dimension. Integer, boolean,\n  and string inputs cannot be replaced by arrays.\n\n- If no inputs have an extra dimension, then the result is the same as\n  calling the original, un-vectorized function.\n\n- Otherwise, all returned quantities are replaced by arrays having the size of\n  the largest leading axis.\n\n- Note that it is permissible to pass arrays with different leading axis sizes\n  to the function. The vectorized function cycles through the elements of each\n  array repeatedly if necessary. It may make sense to do this if each leading\n  axis is an integer fraction of the largest axis size. For example, if the\n  first input array has size 100 and the second has size 25, then the returned\n  arrays(s) will have 100 elements and the values of the second will each be\n  used four times. However, caution is advised when using this capability.\n\n- Some functions are not vectorized. These include:\n  - Functions that have no floating-point inputs.\n  - Functions that include strings among the returned quantities.\n  - Functions that already return arrays where the leading axis could be\n    variable in size.\n\n- In the two cases (`ckgp` and `ckgpav`) where a function can be both vectorized\n  and either raise an error or return a flag, the `_vector` suffix comes\n  before `_error`.\n\n### ARRAYS\nAn optional import allows the `cspyce` module to support multidimensional\narrays:\n\n```python\nimport cspyce\nimport cspyce.arrays\n```\n\nThe latter import creates a new function in which the suffix `_array` replaces\n`_vector` for every vectorized function. Whereas `_vector` functions support\nonly a single extra dimension, `_array` functions follow all the standard rules\nof shape broadcasting as defined in NumPy. For example, if one input has leading\ndimension (10,4) and another has dimension (4,), then the two shapes will be\nbroadcasted together and returned quantities will be arrays with shape (10,4).\n\nYou can choose between the scalar, vector, and array versions of a function by\nusing their explicit names, or by using `cspyce` function attributes, as discussed\nbelow.\n\n---\n## ALIASES\n\nAliases allow the user to associate multiple names or SPICE codes with the same\nCSPICE body or frame. Aliases can be used for a variety of purposes.\n\n- You can use names and codes interchangeably as input arguments to any `cspyce`\n  function.\n- You can use a body name or code in place of a frame name or code, and the\n  primary frame associated with that identified body will be used.\n- Strings that represent integers are equivalent to the integers themselves.\n\nMost importantly, you can allow multiple names or codes to refer to the same\nCSPICE body or frame. For bodies and frames that have multiple names or codes,\ncalls to a `cspyce` function will try each option in sequence until it finds one\nthat works. Options are always tried in the order in which they were defined, so\nhigher-priority names and codes are tried first.\n\nExample 1: Jupiter's moon Dia uses code 553, but it previously used code\n55076. With 55076 defined as an alias for 553, a `cspyce` call will return\ninformation about Dia under either of its codes.\n\nExample 2: The Earth's rotation is, by default, modeled by frame \"IAU_EARTH\".\nHowever, \"ITRF93\" is the name of a much more precise description of Earth's\nrotation. If you define \"IAU_EARTH\" as an alias for \"ITRF93\", then the `cspyce`\ntoolkit will use ITRF93 if it is available, and otherwise IAU_EARTH.\n\nImmediately after a `cspyce` call involving aliases, you can find out what value\nor values were actually used by looking at attributes of the function. For\nexample, the first input to the `cspyce` function `spkez` is called `targ` and\nit identifies the code of a target being observed. After a call to\n\n```python\ncspyce.spkez(553, ...)\n```\nthe value of `cspyce.spkez.targ` will be the code actually used, in this case\neither 553 or 55076.\n\nTo enable aliases, you must import an additional module\n\n```python\nimport cspyce\nimport cspyce.aliases\n```\n\n(Note that `cspyce.aliases` and `cspyce.arrays` can both be imported, and in\neither order. Note also that these are unconventional modules, in that they\nintroduce new functionality into the `cspyce` namespace rather than creating\nnew namespaces called `cspyce.aliases` and `cspyce.arrays`.)\n\nWith this import, a new function is defined for every `cspyce` function that takes\na frame or body as input. The new function has the same name as the pre-existing\n`cspyce` function, but with `_alias` inserted immediately after the original\n`cspyce` name (and before any other suffix such as `_vector` or `_error`).\n\nYou can make alias support the default for individual `cspyce` functions or for\nthe entire `cspyce` module by calling `cspyce.use_aliases()`. These versions\ncan subsequently be disabled as the default by calling `cspyce.use_noaliases()`\n(see more detailed discussion below).\n\nTo define a body alias or frame alias, call\n\n    cspyce.define_body_aliases(name_or_code, name_or_code, ...)\n    cspyce.define_frame_aliases(name_or_code, name_or_code, ...)\n\nwhere the arguments are an arbitrary list of codes and names.\n\nTo determine the aliases associated with a name or code, call\n\n    cspyce.get_body_aliases(name_or_code)\n    cspyce.get_frame_aliases(name_or_code)\n\nwhere the argument is either a name or a code.\n\nYou can also select between the alias-supporting and alias-nonsupporting\nversions of a function using function attributes as discussed below.\n\n---\n## FUNCTION NAMES, VERSIONS AND SELECTION METHODS\n\nA `cspyce` function can accumulate several suffixes, based on the particular\nbehavior, as so:\n```python\nbasename[_alias][_vector|_array][_error]\n```\nOnly functions that are truly distinct are defined. For example, if a function\ndoes not have a vector option, then no function will exist containing the\n`_vector` suffix.\n\nYou can use these functions to set defaults:\n\n    cspyce.use_flags()\n    cspyce.use_errors()\n    cspyce.use_scalars()\n    cspyce.use_vectors()\n    cspyce.use_arrays()\n    cspyce.use_aliases()\n    cspyce.use_noaliases()\n\nEach function can take one or more arguments referencing specific `cspyce`\nfunctions, in which case the defaults only apply to those functions. If no\narguments are specified, the default applies to all functions. For example,\nto use \"flags\" as the default for all functions except `ckgp`, you could use:\n\n    cspyce.use_flags()\n    cspyce.use_errors(cspyce.ckgp)\n\n### FUNCTION ATTRIBUTES\n\nFunction attributes provide a simpler mechanism for choosing the needed\nversion of a function, without needing to remember the suffix rules. Every\n`cspyce` function has these attributes, each of which identifies another\n(or possibly the same) `cspyce` function:\n\n| Attribute      | Meaning                                                    |\n|----------------|------------------------------------------------------------|\n| `func.flag`    | the equivalent function without the _error suffix, if any. |\n| `func.error`   | the equivalent function with the _error suffix, if any.    |\n| `func.scalar`  | the equivalent function without _array or _vector suffixes.|\n| `func.vector`  | the equivalent function with the _vector suffix, if any.   |\n| `func.array`   | the equivalent function with the _array suffix, if any.    |\n| `func.alias`   | the equivalent function with the _alias suffix, if any.    |\n| `func.noalias` | the equivalent function without the _alias suffix, if any. |\n\nThese attributes are always defined, even if the particular option is not\nsupported by that function. This saves the programmer the effort of remembering,\nfor example, which functions support aliases or which functions support flags.\n\nThus, if the programmer wishes to be sure they are using the error version of\nfunction `bodn2c`, and wants the vector version if it exists (but it doesn't!),\nthey can call\n\n```python\ncspyce.bodn2c.error.vector(args, ...)\n```\n\n---\n## RECORD ENHANCEMENTS\n\n### SpiceCell\n`cspyce` provides an enhanced version of `SpiceCell` to make it simpler to use for\nboth CSPICE and in Python.\n\nIn the documentation that follows, _active elements_ refer to those elements in the\n`SpiceCell` whose `index` is such that `0 \u2264 index < spice_cell.card`.\n\n#### Constructors\nTo create a `SpiceCell`:\n\n```python\nfrom cspyce import SpiceCell, SPICE_CELL_INT, SPICE_CELL_DOUBLE\nspice_cell = SpiceCell(typeno=SPICE_CELL_INT, size=20)\nspice_cell = SpiceCell(typeno=SPICE_CELL_DOUBLE, size=10)\n```\n\nWith these constructors, `spice_cell.card` will be set to 0 and there will initially be\nno active elements.\n\nIf you already have data that you want to convert to a spice cell, you can use a simpler\ninterface:\n```python\nspice_cell = SpiceCell([1, 2, 3, 4, 5])\nspice_cell = SpiceCell(np.arange(1.0, 10.0))\nspice_cell = SpiceCell(np.arange(1.0, 10.0), size=40)  # set size explicitly\n```\nIf you use these constructions, Python will create a `SpiceCell` whose size is a little\nbigger than the length of the given data. The passed first argument will be the active\nelements.\n\nAny CSPICE function that expects a `SpiceCell` as an input can also be passed an array,\na tuple, or anything that can reasonably be converted into an appropriately typed\n`SpiceCell`:\n\nAny CSPICE function that returns a `SpiceCell` as a result takes an optional final\nargument.\n* If this argument is omitted, a `SpiceCell` with a function-specific default capacity\n  will be created, and the output will be placed into it.\n* If this argument is a `SpiceCell`, it will be used as the output argument.\n* If this argument is an integer, a `SpiceCell` with that capacity will be created and\n  used as the output.\n\nIn all cases, the `SpiceCell` output will also be a return value.\n\n```shell\n>>> import cspyce\n>>> cspyce.wninsd(2.0, 4.9, (1.0, 3.0, 5.0, 7.0, 9.0, 11.0))\n<SpiceCell double 6/12 [ 1.   4.9  5.   7.   9.  11. ]>\n```\n\n#### Sequence-like operations\n\n`SpiceCell` offers the following methods so that they behave like Python sequences.\n\n`spice_cell[index]`, `spice_cell[index] = value`\n\n:  Gets or sets the `index`-th element of the `SpiceCell`.\n   Must have `-len(spice_cell) \u2264 index < spice_cell.size`.  As in Python, we allow\n   negative indices, but -1, -2, etc count backwards from the last active elements.\n\n`len(spice_cell)`\n: Returns the number of active elements of `spice_cell`.\n\n`spice_cell.append(value)`\n: If `value` is a float or integer, it is added to the `SpiceCell`'s active cells.\nIf `value` is an array, all of its elements are added to the `SpiceCell`'s active cells.\nThe cell's maximum size is grown if necessary.\n\n`spice_cell.extend(values)`\n: Appends each value in `values` to the end of the `SpiceCell`'s active cells.\nEach element of `values` can be a float, an integer, or an array.\nThe `SpiceCell`'s maximum size is grown if necessary.\n\n`spice_cell += values`\n: Synonym for `spice_cell.extend(values)`\n\n`spice_cell.clear()`\n: Make all elements inactive. Same as `spice_cell.card = 0`.\n\n`iter(spice_cell)`\n: Iterates through the active elements of `spice_cell`.\nBecause of this iterator, `list(spice_cell)`, `set(spice_cell)`, and `tuple(spice_cell)`\nwork as expected.\nYou can also write a for loop `for item in spice_cell: ...` to iterate through\nthe active elements.\n\n`bool(spice_cell)`\n: If a `spice_cell` is used in a boolean context, its value is `False` if all elements\nare inactive (`spice.cell.card == 0`), and `True` otherwise.\n\n#### SpiceCell-specific operations\n\n`SpiceCell` also has the following methods and properties specific to a `SpiceCell`.\n\n`spice_cell.size`\n: Gets the current maximum size of the `SpiceCell`.\n\n`spice_cell.size = value`\n: Grows or shrinks the maximum size of the `SpiceCell`.\nIf the number of active elements is greater than `value`, it is reduced to `value`.\nThis operation is a `cspyce` enhancement that does not exist in CSPICE.\n\n`spice_cell.card`\n: Same as `len(spice_cell)`.  (Also known as the \"cardinality\", hence the name).\n\n`spice_cell.card = value`\n: Changes the number of active elements in the `SpiceCell`.\nMust have `0 \u2264 value < spice_cell.size`.\n\n`spice_cell.as_array()`\n: Returns a view of the active contents of the array as a numpy array\n\n`spice_cell.as_intervals()`\n: Returns a view of the active contents of the array as a 2-dimensional `card/2`x 2 array.\nMany `SpiceCell`s are used to represent intervals in which each\npair of numbers represents the lower and upper bounds.\n\nAlthough `cspyce`'s `SpiceCell`s can grow and shrink, CSPICE is not aware of this\ncapability. Its functions will still raise a WINDOWOVERFLOW if `SpiceCell.size` is\nnot large enough to hold the results.  The user must increase `SpiceCell.size` and try\nagain.\n\n#### Handling intervals and other structures\n\nAlthough internally, a `SpiceCell` is a flat array of integers or floats,\nsome CSPICE routines treat the contents of a `SpiceCell`\nas if it were a 2-dimensional array.\nFor example, some CSPICE routines expect the `SpiceCell` to contain pairs of values\nwhere each pair represents the limits of an interval.\n\nTo simplify dealing with this use case, the methods `append` and `extend` have been enhanced.\nYou can pass an array or an array-like object to `append`, and all elements of the\narray will be added to the `SpiceCell`.\nLikewise you can pass `extend` a sequence of array-like objects, and all of them will\nbe added to the `SpiceCell`.\n\nSo, for example, you could write:\n```python\nspice_cell.append([10, 20])\nspice_cell.extend([[35, 50], [90, 100], [120, 140]])\n```\nto add intervals to your SpiceCell.\n\nTo view a `SpiceCell` containing intervals, you can use `spice_cell.as_intervals()`\nas described above.\nThis is just a shortcut for `spice_cell.as_array().reshape(-1, 2)`, where\n-1 is a special marker to `reshape` saying \"figure out this value from the size of the\narray and the other dimensions\".\nThe expression `spice_cell.as_array().reshape(-1, 3)` would give an array of triples.\n`self.as_array().reshape(-1, 4, 4)` gives an array of 4x4 matrices.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "High-performance Python interface to the NAIF CSPICE library",
    "version": "2.3.2",
    "project_urls": {
        "Homepage": "https://github.com/SETI/rms-cspyce",
        "Issues": "https://github.com/SETI/rms-cspyce/issues",
        "Repository": "https://github.com/SETI/rms-cspyce",
        "Source": "https://github.com/SETI/rms-cspyce"
    },
    "split_keywords": [
        "cspyce",
        " spice",
        " cspice",
        " naif",
        " jpl",
        " space",
        " geometry",
        " ephemeris"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87393db4c10fe5bb8ae55ba75d80cce89d1f93f427577013493820f6db15c038",
                "md5": "d84c113d88b53a80626fea8db55afccd",
                "sha256": "880a6b38124268a438c18b43c0f31cda7bb7c9d7815df7e7ea830bf255367840"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp310-cp310-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d84c113d88b53a80626fea8db55afccd",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 2032278,
            "upload_time": "2024-12-17T04:12:25",
            "upload_time_iso_8601": "2024-12-17T04:12:25.081537Z",
            "url": "https://files.pythonhosted.org/packages/87/39/3db4c10fe5bb8ae55ba75d80cce89d1f93f427577013493820f6db15c038/cspyce-2.3.2-cp310-cp310-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfd4ca46dd079675e7682aaf46c7b573100fb23c1ab4990eb84c1d7c216792ad",
                "md5": "6967858133e442a88cdc9725e2c54eb7",
                "sha256": "6096cc369ae4f599a2912472da3378899a4a59365718bec582432ace08dffe30"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp310-cp310-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "6967858133e442a88cdc9725e2c54eb7",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 1821028,
            "upload_time": "2024-12-17T04:12:28",
            "upload_time_iso_8601": "2024-12-17T04:12:28.252338Z",
            "url": "https://files.pythonhosted.org/packages/bf/d4/ca46dd079675e7682aaf46c7b573100fb23c1ab4990eb84c1d7c216792ad/cspyce-2.3.2-cp310-cp310-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8cd52cfc7e923791063a6cd3a2e10e2fd3f5fd0c5d397ffd661ff44d34725fb7",
                "md5": "cc5bf349a617b851d52e08fc053fba88",
                "sha256": "328087efaa3c8ec2c8df90a97741ec19e336c602be81e1e87f7d37b0b7a685f7"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "cc5bf349a617b851d52e08fc053fba88",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 6465787,
            "upload_time": "2024-12-17T04:12:31",
            "upload_time_iso_8601": "2024-12-17T04:12:31.695711Z",
            "url": "https://files.pythonhosted.org/packages/8c/d5/2cfc7e923791063a6cd3a2e10e2fd3f5fd0c5d397ffd661ff44d34725fb7/cspyce-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5caa50f801ad1549f376d34f7f77c1c581a4fa01c3f1f49953b635956d65a001",
                "md5": "f0a6a38ce96bf799f2279a5c99249881",
                "sha256": "40ee95198ed6d7412999cb58406c896c935f320bccfbce637f1a27de534226f6"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "f0a6a38ce96bf799f2279a5c99249881",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 1825987,
            "upload_time": "2024-12-17T04:12:35",
            "upload_time_iso_8601": "2024-12-17T04:12:35.024524Z",
            "url": "https://files.pythonhosted.org/packages/5c/aa/50f801ad1549f376d34f7f77c1c581a4fa01c3f1f49953b635956d65a001/cspyce-2.3.2-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1cb4489b0f005d2ba2be97095e6080c6c1e419038e164f73c6c5dc2d72e8f806",
                "md5": "19ade41cd0a2d7b294349fa9e1949124",
                "sha256": "00966ed4ff404dfe06175bea86568c3c8d2d54362c77c079ff8c619dee71a872"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp311-cp311-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "19ade41cd0a2d7b294349fa9e1949124",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 2032271,
            "upload_time": "2024-12-17T04:12:38",
            "upload_time_iso_8601": "2024-12-17T04:12:38.679175Z",
            "url": "https://files.pythonhosted.org/packages/1c/b4/489b0f005d2ba2be97095e6080c6c1e419038e164f73c6c5dc2d72e8f806/cspyce-2.3.2-cp311-cp311-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c671bfac0a13976968c2f9ca1457fddeecfea58088a3c0bc4570081f6c32744",
                "md5": "44712415bd237f9c7d5455342852c359",
                "sha256": "5a1c73a8dcdc57e36966a43500396bfab4135b24b12fbb4479db68c19539ee56"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp311-cp311-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "44712415bd237f9c7d5455342852c359",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 1821012,
            "upload_time": "2024-12-17T04:12:40",
            "upload_time_iso_8601": "2024-12-17T04:12:40.287183Z",
            "url": "https://files.pythonhosted.org/packages/2c/67/1bfac0a13976968c2f9ca1457fddeecfea58088a3c0bc4570081f6c32744/cspyce-2.3.2-cp311-cp311-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2c5c599e115fc6b985b82da99b7a399ed44065bae4f136e5be7436807872317",
                "md5": "8e5c937456b7aefd5ef0f03007f02569",
                "sha256": "0e2ef88262e02f63b791dcbf7d6ef68bcdb7478792cab6dcddf756fc1a08cbd5"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8e5c937456b7aefd5ef0f03007f02569",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 6588440,
            "upload_time": "2024-12-17T04:12:44",
            "upload_time_iso_8601": "2024-12-17T04:12:44.009836Z",
            "url": "https://files.pythonhosted.org/packages/c2/c5/c599e115fc6b985b82da99b7a399ed44065bae4f136e5be7436807872317/cspyce-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8852f894fd82c008ae0ae6ca5628057aee88a7bb489aac29206d9fb81056a98",
                "md5": "26a9798bfc2480fa93e5a4c52e622b1a",
                "sha256": "07bb586758815a4e08280eeb5de3a172dc2cc384059234a9daaaad8023ffe9a5"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "26a9798bfc2480fa93e5a4c52e622b1a",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 1825988,
            "upload_time": "2024-12-17T04:12:50",
            "upload_time_iso_8601": "2024-12-17T04:12:50.292526Z",
            "url": "https://files.pythonhosted.org/packages/e8/85/2f894fd82c008ae0ae6ca5628057aee88a7bb489aac29206d9fb81056a98/cspyce-2.3.2-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3c097a2662e15696fe3fb1d69250e2631fc67d6b50e2182b673f925d53919d3",
                "md5": "58cfa8ed0306ef06e9b09ff7234b68cb",
                "sha256": "4c4b31e11610cf07142cb6783bfb3de8491ed3bbc10a850b29df7cc36a0b8950"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp312-cp312-macosx_10_13_x86_64.whl",
            "has_sig": false,
            "md5_digest": "58cfa8ed0306ef06e9b09ff7234b68cb",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 2031829,
            "upload_time": "2024-12-17T04:12:53",
            "upload_time_iso_8601": "2024-12-17T04:12:53.217368Z",
            "url": "https://files.pythonhosted.org/packages/a3/c0/97a2662e15696fe3fb1d69250e2631fc67d6b50e2182b673f925d53919d3/cspyce-2.3.2-cp312-cp312-macosx_10_13_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0da113837c93ad9146536ad24670d7e71caa7782c0f477f8d3825f6ead5a82c2",
                "md5": "5cc4e26e48e8bce437cc57a16799604e",
                "sha256": "bd1a7396d3550b31b7a454c7846d8f742fab34e23f79540dc1ae9ada5ced115a"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp312-cp312-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "5cc4e26e48e8bce437cc57a16799604e",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 1810550,
            "upload_time": "2024-12-17T04:12:54",
            "upload_time_iso_8601": "2024-12-17T04:12:54.990388Z",
            "url": "https://files.pythonhosted.org/packages/0d/a1/13837c93ad9146536ad24670d7e71caa7782c0f477f8d3825f6ead5a82c2/cspyce-2.3.2-cp312-cp312-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "115ed9e3b0e20adf790a8a22ae672c430f9fe5e58284e7acdc573e11798c8a8b",
                "md5": "9f8a71e96bd79c229b38c287f4562e1e",
                "sha256": "0495ddcb6023a6c68d99e7763a6205f162a9e66a34b5eb48c80eab169d05918c"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "9f8a71e96bd79c229b38c287f4562e1e",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 6513849,
            "upload_time": "2024-12-17T04:12:58",
            "upload_time_iso_8601": "2024-12-17T04:12:58.187409Z",
            "url": "https://files.pythonhosted.org/packages/11/5e/d9e3b0e20adf790a8a22ae672c430f9fe5e58284e7acdc573e11798c8a8b/cspyce-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ede56aef3746bdab39893132fb02dea474da1efda302036117ca7de18724b4a7",
                "md5": "233573f83f542d25e9722e007a7def8d",
                "sha256": "2a7e6107eabd7ef64455e20a9a17e9da28fff8f028aba9d2798c7f6c17aa8899"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "233573f83f542d25e9722e007a7def8d",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 1831572,
            "upload_time": "2024-12-17T04:13:01",
            "upload_time_iso_8601": "2024-12-17T04:13:01.670252Z",
            "url": "https://files.pythonhosted.org/packages/ed/e5/6aef3746bdab39893132fb02dea474da1efda302036117ca7de18724b4a7/cspyce-2.3.2-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53bd0c9ce117c85e30b9ec47b97b7b6f6ab22faea807bbf1e023c9476e666f2c",
                "md5": "f3cfc67eb0eddf3e9ac5f89020173ef2",
                "sha256": "811972693009ce33304665abec4600150990fb5aa62e9c80223d758c10bcf7de"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp313-cp313-macosx_10_13_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f3cfc67eb0eddf3e9ac5f89020173ef2",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.9",
            "size": 2031774,
            "upload_time": "2024-12-17T04:13:03",
            "upload_time_iso_8601": "2024-12-17T04:13:03.201135Z",
            "url": "https://files.pythonhosted.org/packages/53/bd/0c9ce117c85e30b9ec47b97b7b6f6ab22faea807bbf1e023c9476e666f2c/cspyce-2.3.2-cp313-cp313-macosx_10_13_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42523623ce1f49483c8bfda23d9664830c11d994c96466568c12eb9780872634",
                "md5": "22cccd1dfe98b2f8ab4cc49c23ab59cd",
                "sha256": "80847971a2f7e91614da6b5c665edccb8f53f43a320bd8eea7c9f80c3f500529"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp313-cp313-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "22cccd1dfe98b2f8ab4cc49c23ab59cd",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.9",
            "size": 1810668,
            "upload_time": "2024-12-17T04:13:04",
            "upload_time_iso_8601": "2024-12-17T04:13:04.834531Z",
            "url": "https://files.pythonhosted.org/packages/42/52/3623ce1f49483c8bfda23d9664830c11d994c96466568c12eb9780872634/cspyce-2.3.2-cp313-cp313-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7bc7a2e815e3f7d32b63069db3401fa314969219b4fc8a7980ff03a24a52dff7",
                "md5": "ae615001244f0611cfa4d2ebfd98d8cf",
                "sha256": "c386ba6996fd246aacd19325bc1c7cb04284c2c971b52aee3e9300659bb8e6cb"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ae615001244f0611cfa4d2ebfd98d8cf",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.9",
            "size": 6514387,
            "upload_time": "2024-12-17T04:13:06",
            "upload_time_iso_8601": "2024-12-17T04:13:06.674074Z",
            "url": "https://files.pythonhosted.org/packages/7b/c7/a2e815e3f7d32b63069db3401fa314969219b4fc8a7980ff03a24a52dff7/cspyce-2.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c3158e8e86b348b6c3f9f0caba22fabf664d456c26180c3300620eeac0e92da",
                "md5": "d9f3d5f1cf93e17a97daa78a8660b322",
                "sha256": "335951505fc6d10e215cc124d5b97d4b2e8bf67c965d81144b8cee6fc34a014a"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp313-cp313-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d9f3d5f1cf93e17a97daa78a8660b322",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.9",
            "size": 1831501,
            "upload_time": "2024-12-17T04:13:08",
            "upload_time_iso_8601": "2024-12-17T04:13:08.615927Z",
            "url": "https://files.pythonhosted.org/packages/0c/31/58e8e86b348b6c3f9f0caba22fabf664d456c26180c3300620eeac0e92da/cspyce-2.3.2-cp313-cp313-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "112fa90819bd56642b4db790b26297a5738d34c89b51e751fe232342392c0b49",
                "md5": "893f194bc1fc73f944dfdfbdffba44ab",
                "sha256": "47eef6b1f95d226c3ec906146721f8d3a7e0bc2bcd35a3e211d8e2b4c5e3eace"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp39-cp39-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "893f194bc1fc73f944dfdfbdffba44ab",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 2032262,
            "upload_time": "2024-12-17T04:13:11",
            "upload_time_iso_8601": "2024-12-17T04:13:11.519255Z",
            "url": "https://files.pythonhosted.org/packages/11/2f/a90819bd56642b4db790b26297a5738d34c89b51e751fe232342392c0b49/cspyce-2.3.2-cp39-cp39-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5baafe7a2a1ae464078ca2442cb3e2087081b4e7cca3bca43ebc5c82dd5765dd",
                "md5": "14639d0644460455579d787ded5b436c",
                "sha256": "6731014ad9d11970af020ea6dca731bc702b578f1cb3f75cd6acfe18e6ca0535"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp39-cp39-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "14639d0644460455579d787ded5b436c",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 1820729,
            "upload_time": "2024-12-17T04:13:14",
            "upload_time_iso_8601": "2024-12-17T04:13:14.715684Z",
            "url": "https://files.pythonhosted.org/packages/5b/aa/fe7a2a1ae464078ca2442cb3e2087081b4e7cca3bca43ebc5c82dd5765dd/cspyce-2.3.2-cp39-cp39-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "defb058ca68c8b3a5a12a5c7f8188d124e3fcc81b94b70687d9c75d865f1b388",
                "md5": "0bb90404cbdcc3d6d07dd2cd41c42e42",
                "sha256": "f3cd4923ba51717863ddecebf8324d37bc3f1ac071a251006a5cf73eb30719cb"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "0bb90404cbdcc3d6d07dd2cd41c42e42",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 6465449,
            "upload_time": "2024-12-17T04:13:16",
            "upload_time_iso_8601": "2024-12-17T04:13:16.572163Z",
            "url": "https://files.pythonhosted.org/packages/de/fb/058ca68c8b3a5a12a5c7f8188d124e3fcc81b94b70687d9c75d865f1b388/cspyce-2.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "09228fe4664d74fb97221765fef5409d3cfdc93b1d9fd8e92a3f7278ca6dac2b",
                "md5": "b12d34710ab24421a4032f693f7da932",
                "sha256": "35c553724fc6e65e0849cf42b04305495b0037182c29fc7840413d0ae2317b93"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b12d34710ab24421a4032f693f7da932",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 1825285,
            "upload_time": "2024-12-17T04:13:19",
            "upload_time_iso_8601": "2024-12-17T04:13:19.851422Z",
            "url": "https://files.pythonhosted.org/packages/09/22/8fe4664d74fb97221765fef5409d3cfdc93b1d9fd8e92a3f7278ca6dac2b/cspyce-2.3.2-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6b478f1620fcbe6a0698462e9154907830b923b7bc6e490a7a4470ae8279e71",
                "md5": "118a49ba9653f644e084796534c5294c",
                "sha256": "512092e7a2cf161af09fe19408fc7785958e0d18f90bb5dd02151de4186bc366"
            },
            "downloads": -1,
            "filename": "cspyce-2.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "118a49ba9653f644e084796534c5294c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 59417351,
            "upload_time": "2024-12-17T04:13:25",
            "upload_time_iso_8601": "2024-12-17T04:13:25.393472Z",
            "url": "https://files.pythonhosted.org/packages/a6/b4/78f1620fcbe6a0698462e9154907830b923b7bc6e490a7a4470ae8279e71/cspyce-2.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 04:13:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SETI",
    "github_project": "rms-cspyce",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "coverage",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "2.0.0"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": []
        }
    ],
    "lcname": "cspyce"
}
        
Elapsed time: 0.51629s