transientskp / tkp

A transients-discovery pipeline for astronomical image-based surveys
http://docs.transientskp.org/
BSD 2-Clause "Simplified" License
19 stars 14 forks source link

WSClean image central frequencies are not parsed by TraP #571

Closed AntoniaR closed 4 years ago

AntoniaR commented 4 years ago

Currently the WSClean images are not being parsed correctly by TraP as the observing frequency is not found in the fits header.

AntoniaR commented 4 years ago

From looking at the code and my temporary fix script, I think the problem is that the header fields should be in capitals and not lower case. For instance, in the following line it should be "CTYPE3" instead of "ctype3". https://github.com/transientskp/tkp/blob/2aab1d021d10e3d1f3c4c8a836aea96ac6ae413f/tkp/accessors/fitsimage.py#L136 Also, the LOFAR and AARTFAAC images are now typically being made by WSClean so the frequency will also be specified using CTYPE, etc... So I will update the logic for this.

AntoniaR commented 4 years ago

I have just tested my fix with a MeerKAT image that had not had it's headers updated yet and the frequency information was correctly obtained from the header