Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
397 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
=============== | ||
Cells Explained | ||
=============== | ||
|
||
Spice Cells are data structures included in SPICE and serve as the equivalents to lists and sets for CSPICE. | ||
For more primary documentation on cells, please see the `Cells required reading <https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/cells.html>`_. | ||
For SpiceyPy, cells can be constructed in a variety of ways, shown below. | ||
|
||
.. code:: python | ||
import spiceypy as spice | ||
# create a spice bool cell using a function | ||
bool_cell = spice.cell_bool(10) | ||
# create a spice time cell using a function | ||
time_cell = spice.cell_time(10) | ||
# create a spice int cell using a function | ||
int_cell = spice.cell_int(10) | ||
# create a spice double cell using a function | ||
double_cell = spice.cell_double(10) | ||
# create a spice char cell using a function | ||
char_cell = spice.cell_char(10, 10) | ||
One can also use provided classes to provide easier type checking, | ||
in future versions SpiceyPy this may become default. | ||
|
||
.. code:: python | ||
import spiceypy as spice | ||
# create a spice bool cell using a function | ||
bool_cell = spice.Cell_Bool(10) | ||
# create a spice time cell using a function | ||
time_cell = spice.Cell_Time(10) | ||
# create a spice int cell using a function | ||
int_cell = spice.Cell_Int(10) | ||
# create a spice double cell using a function | ||
double_cell = spice.Cell_Double(10) | ||
# create a spice char cell using a function | ||
char_cell = spice.Cell_Char(10, 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ Contents: | |
|
||
installation | ||
exampleone | ||
cells | ||
lessonindex | ||
documentation | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.