Skip to content

Question about writing BUNIT as 'Jy/beam' instead of 'beam-1 Jy' #806

Closed

Description

@spectram

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.

Activity

  1. keflavich commented on May 4, 2022

    @keflavich
    Contributor

    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.

  2. spectram commented on May 4, 2022

    @spectram
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions