CIRADA-Tools / RM-Tools

RM-synthesis, RM-clean and QU-fitting on polarised radio spectra
MIT License
44 stars 23 forks source link

3D cube writer breaks if BUNIT doesn't exist #116

Closed AlecThomson closed 7 months ago

AlecThomson commented 7 months ago

As per the title, the issue comes up in do_RMsynth_3D.writefits. The writer falls over if the input files don't have a BUNIT card in the header.

I had caught a similar issue before but clearly missed some extra checks. Fix PR incoming.