Closed b1quint closed 6 years ago
It seems that just reading and writing it again using CCDData.read and CCDData.write fixes the problem. This should be integrated into the main code, though. Example:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from ccdproc import CCDData
def fix_goodman_header():
list_of_files = sys.argv[1:]
for filename in list_of_files:
ccd = CCDData.read(filename, unit="adu")
path, name = os.path.split(filename)
filename = os.path.join(path, 'h' + name)
ccd.write(filename, overwrite=True)
if __name__ == '__main__':
fix_goodman_header()
I notified Stephen about this issue when it first appeared. The solution you propose is correct though I believe this should be fixed from the Goodman's side. i.e. UNC.
This is the error message that has been showing during today's observation. Here is the instrumental configuration:
Here is the complete traceback: