Skip to content

Add interval data to spiceqldb.hdf - #165

Merged
Kelvinrr merged 7 commits into
DOI-USGS:mainfrom
chkim-usgs:ivl_seg
Oct 29, 2026
Merged

Kelvinrr merged 7 commits into
DOI-USGS:mainfrom
chkim-usgs:ivl_seg

Conversation

@chkim-usgs

@chkim-usgs chkim-usgs commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Extrapolates interval data and appends them as datasets to spiceqldb.hdf, example:

spice/tgo/spk/predicted
├── path_index, starttime, start_kindex, stoptime, stop_kindex (unchanged)
├── intervals_start f64 coverage window start (ET)
├── intervals_stop f64 coverage window stop (ET)
├── intervals_start_kindex u64 row in path_index
├── intervals_stop_kindex u64 row in path_index (same values as start_kindex)
├── interval_body_code i32 NAIF ID the interval belongs to

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.

@chkim-usgs
chkim-usgs marked this pull request as ready for review October 27, 2026 21:31

@Kelvinrr Kelvinrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

initial review

Comment thread SpiceQL/src/inventoryimpl.cpp Outdated
Comment on lines +75 to +78
string DB_SEGMENT_START_KEY = "segments_start";
string DB_SEGMENT_STOP_KEY = "segments_stop";
string DB_SEGMENT_START_INDICES_KEY = "segments_start_kindex";
string DB_SEGMENT_STOP_INDICES_KEY = "segments_stop_kindex";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

are we still storing the segments?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, storing segments adds a minuscule amount of time compared to storing intervals

Comment thread SpiceQL/src/inventoryimpl.cpp Resolved
Comment thread SpiceQL/src/inventoryimpl.cpp Resolved
@chkim-usgs chkim-usgs mentioned this pull request Oct 28, 2026
1 task done
@chkim-usgs chkim-usgs changed the title Add interval and segment data to spiceqldb.hdf Add interval data to spiceqldb.hdf Oct 28, 2026
@Kelvinrr
Kelvinrr merged commit f27856c into DOI-USGS:main Oct 29, 2026
11 checks passed
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