Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert WCSNAME to hash for HLET filename #183

Merged
merged 3 commits into from
Oct 13, 2021

Conversation

stsci-hack
Copy link
Contributor

The convention used to create the headerlet filenames for WCS solutions based on updated/new IDCTAB reference files was modified to insure the names have a shorter, constant length. This PR does that by converting the WCSNAME keyword value used to make the headerlet filename unique into a simple SHA1 hash, then the code only uses the first 6 characters of the hash in the new filename.

This addresses a problem the STScI archive has with the previous variable length and overly long filenames.

Copy link
Member

@mcara mcara left a comment

Choose a reason for hiding this comment

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

I think headerlet name is not important and if archive thinks that first 6 digits is enough, I think this code is perfect.

@stsci-hack stsci-hack merged commit 6290dff into spacetelescope:master Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants