Closed spectram closed 8 months ago
What's SoFiA2?
Unfortunately, that format is what is expected in the FITS standard:
>>> from astropy import units as u
>>> (u.Jy/u.beam).to_string('FITS')
'beam-1 Jy'
Since this is an upstream issue (it is coming directly from astropy), I suggest opening an issue there.
SoFiA is an HI source finding tool. https://github.com/SoFiA-Admin/SoFiA-2 I will first check with SoFiA2 authors before raising the issue in Astropy. I reckon there could be other factors involved.
SpectralCube.write() seems to save BUNIT as 'beam-1 Jy'. This is creating issues running SoFiA2. The space after beam-1 also makes parsing unnecessarily cumbersome.