ratt-ru / pfb-imaging

Preconditioned forward/backward clean algorithm
MIT License
6 stars 5 forks source link

FITS headers conventions #105

Open IanHeywood opened 1 week ago

IanHeywood commented 1 week ago

The reference frequency in the FITS headers produced by pfb seem to correspond to the lowest frequency in the data, e.g. for this UHF map:

CRVAL3  =        592376953.125

It's more standard for MFS images to have the central frequency, but if there's a good reason to have the lowest frequency instead it can be worked around.

landmanbester commented 1 week ago

Thanks for pointing this out. I'm not actually sure if my headers strictly adhere to the fits format (since the truth is actually encoded in the dds and fits is mainly for viewing). I set the headers up here

https://github.com/ratt-ru/pfb-imaging/blob/7e3077cd9dc9ae6d4eb0765153b384fec770f828/pfb/utils/fits.py#L33

if you spot anything else that needs to change please report it on this issue. I've renamed it to make it a bit more general