Skip to content

Add spice instructions#299

Merged
laspsandoval merged 8 commits intoIMAP-Science-Operations-Center:mainfrom
laspsandoval:add_spice_instructions
Mar 26, 2026
Merged

Add spice instructions#299
laspsandoval merged 8 commits intoIMAP-Science-Operations-Center:mainfrom
laspsandoval:add_spice_instructions

Conversation

@laspsandoval
Copy link
Contributor

@laspsandoval laspsandoval commented Mar 23, 2026

SPICE Query Support

This PR adds support for querying and downloading SPICE kernel files from the IMAP data archive.

Changes

New spice_query function (io.py) — Implements a /spice-query API endpoint wrapper supporting filtering by start_date, end_date,
ingestion_start_date/ingestion_end_date, type, and version. Handles the version=latest → latest=true remapping and the ingestion_*_date → start/end_ingest_date key
remapping.

CLI updates (cli.py) — The previously unimplemented --table spice path now routes to spice_query. Adds a --type argument for specifying kernel type (e.g.
ephemeris_predicted). The results table now renders SPICE-specific columns (Kernel Type, Min/Max Date, Ingestion Date, Version, Filename).

README — Adds examples for querying and downloading SPICE kernels via both the CLI and curl.

file_validation.py — Adds xlsx as a valid ancillary file extension.

Version bump — 0.37.2 → 0.37.3.

Tests — New tests for spice_query covering valid params, remapping logic, no-params error, bad-params error, and CLI integration.

@laspsandoval
Copy link
Contributor Author

pre-commit.ci autofix

@laspsandoval laspsandoval requested a review from lacoak21 March 23, 2026 21:34
@laspsandoval laspsandoval self-assigned this Mar 23, 2026
@laspsandoval laspsandoval added this to the March 2026 milestone Mar 23, 2026
@laspsandoval laspsandoval moved this to In Progress in IMAP Mar 23, 2026
@laspsandoval laspsandoval requested a review from maxinelasp March 24, 2026 15:43
Copy link
Contributor

@maxinelasp maxinelasp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So happy to see this change!! Just a few comments about combining variables

@laspsandoval
Copy link
Contributor Author

pre-commit.ci autofix

@laspsandoval laspsandoval merged commit 387de0c into IMAP-Science-Operations-Center:main Mar 26, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in IMAP Mar 26, 2026
@laspsandoval laspsandoval deleted the add_spice_instructions branch March 26, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

I-ALiRT - Add SPICE documentation to ialirt-data-access

2 participants