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

no wcs grid for DES fits image #2386

Open
kswang1029 opened this issue Jun 1, 2024 · 4 comments
Open

no wcs grid for DES fits image #2386

kswang1029 opened this issue Jun 1, 2024 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@kswang1029
Copy link
Collaborator

kswang1029 commented Jun 1, 2024

Describe the bug
This is a user bug report. If we load the image

https://drive.google.com/file/d/1bDbI9-DV-nAssT5bJslAvMOdHWaO7qhJ/view?usp=drive_web

we do not see the wcs grid rendered properly. The console shows errors as

Screenshot 2024-06-01 at 18 24 06

line277: plot = astPlot(wcsinfo, gbox, pbox, args);

If we load the image in ds9 and save as a slice in fits again, then the wcs grid can be rendered successfully in CARTA. For some reason, this trick regulates the fits header.

Let's see if a fix can be applied to handle this case (or not, ie headers fault)

To Reproduce
Steps to reproduce the behavior:

  1. download the example image https://drive.google.com/file/d/1bDbI9-DV-nAssT5bJslAvMOdHWaO7qhJ/view?usp=drive_web
  2. load it in CARTA and we won't see wcs grid rendered properly.
  3. load the image in ds9 and save as a slice
  4. load the ds9-processed fits image in CARTA and we will see the wcs grid rendered properly.

Expected behavior
can handle such fits header

Platform info (please complete the following information):

  • OS [e.g. macOS Monterey]: macOS ventura
  • Browser [e.g. chrome, safari, electron app]: electron app
  • Browser version [e.g. 22]:
  • Backend branch [e.g. dev, v3b2 release]: v4.1-stable
  • Frontend branch [e.g. dev, v3b2 release]: v4.1-stable
@kswang1029 kswang1029 added bug Something isn't working question Further information is requested labels Jun 1, 2024
@loveluthien
Copy link
Collaborator

The problem comes from the file name. If renaming the file with a simpler name, wcs grid works. No need to use ds9 to save it as a new file. It seems that AST has some difficulties to handle complex file name.

@kswang1029
Copy link
Collaborator Author

The problem comes from the file name. If renaming the file with a simpler name, wcs grid works. No need to use ds9 to save it as a new file. It seems that AST has some difficulties to handle complex file name.

Interesting. Any idea on which char causing the problem?

@kswang1029
Copy link
Collaborator Author

The problem comes from the file name. If renaming the file with a simpler name, wcs grid works. No need to use ds9 to save it as a new file. It seems that AST has some difficulties to handle complex file name.

Interesting. Any idea on which char causing the problem?

I guess it is "=" or ","?

@loveluthien
Copy link
Collaborator

@kswang1029 yes, it is ",".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants