Skip to content

Header preview when opening FITS file displays * character as . character #1423

@victorliu1231

Description

@victorliu1231

Describe the bug
When opening a FITS file with file browser UI popup, the "File Information" and "Header" previews display the * character as a . character in the BUNIT keyword. E.g. if 'BUNIT = K (Ta*)' in the header, it shows up as 'BUNIT = K. (Ta.)' and 'Pixel unit = K. (Ta.)' in the frontend.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'File' --> 'Open Image'
  2. Click on any FITS file where the BUNIT keyword has a * character.
  3. Scroll down to 'Pixel unit' in 'File Information' and 'BUNIT =' in 'Header'
  4. See error.

Expected behavior
The frontend should display the * character properly. E.g. if 'BUNIT = K (Ta*)' in the header, it shows up as 'BUNIT = K (Ta*)' and 'Pixel unit = K (Ta*)' in the frontend.

Screenshots or videos
frontend_file_information
frontend_header
command_line_header

Platform info (please complete the following information):

  • OS: Linux RHEL
  • Browser: Mozilla Firefox
  • Browser version: 128.4.0esr (64-bit)
  • CARTA version: 4.1.0 (18 Jan 2024)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions