Skip to content

Add notebook script runner and update notebooks#192

Open
chkim-usgs wants to merge 2 commits into
DOI-USGS:mainfrom
chkim-usgs:jupyter
Open

Add notebook script runner and update notebooks#192
chkim-usgs wants to merge 2 commits into
DOI-USGS:mainfrom
chkim-usgs:jupyter

Conversation

@chkim-usgs

@chkim-usgs chkim-usgs commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

WIP: So far, the spiceql-cassini-tutorial.ipynb seems to be outdated because using pyspiceql 1.2.7 with web=True is failing so currently working on getting that updated

Addresses #163

Added a run_notebook.sh script so users can automatically have the tutorial env setup and the notebook run.
Example:

source ./run_notebook.sh -z image-to-ground

Notebooks:

  • csm-stack/image-to-ground-tutorial.ipynb
  • csm-stack/knoten-camera-tutorial.ipynb
  • csm-stack/cam-sandbox.ipynb
  • using-spiceql/spiceql-cassini-tutorial.ipynb
  • using-spiceql/visualizing-with-pyspiceql-tutorial.ipynb

To Do:

  • Update the run_notebook.sh to point to public URL

Licensing

This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words:

This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain.

  • I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

@Kelvinrr

Kelvinrr commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

what error are you seeing for the cassini tutorial?

@chkim-usgs

Copy link
Copy Markdown
Contributor Author

Running into this error locally and via the web service too:

Traceback (most recent call last):
  File "/Users/chkim/repos/SpiceQL/test.py", line 24, in <module>
    spqlpos, kernels = spql.getTargetStates(times,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chkim/miniforge3/envs/spiceql/lib/python3.12/site-packages/pyspiceql/pyspiceql.py", line 4211, in getTargetStates
    return _pyspiceql.getTargetStates(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: std::exception: Error Occured:SPICE(SPKINSUFFDATA) Insufficient ephemeris data has been loaded to compute the state of -82 (CASSINI) relative to 6 (SATURN BARYCENTER) at the ephemeris epoch 2004 JUN 20 00:01:04.184.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants