spacetelescope / stwcs

WCS based distortion models and coordinate transformation.
http://stwcs.readthedocs.io
4 stars 18 forks source link

Convert WCSNAME to hash for HLET filename #183

Closed stsci-hack closed 3 years ago

stsci-hack commented 3 years ago

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.