Skip to content

Conversation

@tronsgaard
Copy link
Contributor

To conform with the FITS standard (max 8 chars) and get rid of repeated warnings in the log, I propose to shorten the following FITS keywords inserted by PyReduce:

  • E_TRANSPOSE => E_TRANSP
  • E_INSTRUMENT => E_INSTRU
  • E_TELESCOPE => E_TELESC
  • E_EXPTIME => E_EXPTIM

It might be desirable to add some sort of backward compatibility with previously reduced files, but it will also complicate the code, perhaps unnecessarily.

@ivh
Copy link
Owner

ivh commented Feb 25, 2025

I don't think I will merge this one, exactly for the compatibility reasons that you mention.
But the warning anny me too, so I will probably silence all with
fits.conf.update_default('verify', 'silentfix')

@tronsgaard
Copy link
Contributor Author

If it helps, I've changed it such that it can still read files with the old keywords, but new files get produced with the shortened keywords?

@ivh ivh closed this Oct 2, 2025
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