Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FITS file loading error CUNIT4 #35

Open
razman786 opened this issue May 10, 2022 · 0 comments
Open

FITS file loading error CUNIT4 #35

razman786 opened this issue May 10, 2022 · 0 comments

Comments

@razman786
Copy link
Contributor

When trying to load particular FITS files the following error is shown:

File ".local/lib/python3.8/site-packages/astro_tigger_lsm-1.7.1-py3.8.egg/Tigger/Coordinates.py", line 359, in __init__
    self.wcs = WCS(header)
  File ".local/lib/python3.8/site-packages/astropy/wcs/wcs.py", line 537, in __init__
    self.wcs.set()
astropy.wcs._wcs.InvalidTransformError: ERROR 6 in wcs_units() at line 3195 of file cextern/wcslib/C/wcs.c:
In CUNIT4 : Mismatched units type 'charge': have 'm/S', want 'm/s'.

Error loading FITS image ../CD-joint/wsrt.fits: ERROR 6 in wcs_units() at line 3195 of file cextern/wcslib/C/wcs.c:
In CUNIT4 : Mismatched units type 'charge': have 'm/S', want 'm/s'.
razman786 added a commit to razman786/tigger-lsm that referenced this issue May 10, 2022
bennahugo added a commit that referenced this issue May 25, 2022
* Fixes issue #35 - FITS CUNIT 'M/S' header.

* Requires Python >=3.6

* Deprecate Python 2.7 testing

* Deprecate python 2.7 build

Co-authored-by: Benjamin Hugo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant