Skip to content

Firefly-2048: fix bug in reading tables with TZERO - #1994

Open
robyww wants to merge 1 commit into
rc-2026.2from
FIREFLY-2048-fits-tzero
Open

Firefly-2048: fix bug in reading tables with TZERO#1994
robyww wants to merge 1 commit into
rc-2026.2from
FIREFLY-2048-fits-tzero

Conversation

@robyww

@robyww robyww commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Firefly-2048: fix bug in reading tables with TZERO

  • nom-tam-fits bug: hduTable.getColumnMeta(icol, "TZERO") will return a null. The problem seems to be with the nom-tam-fits function
  • We do not handle longs correctly when we need to scale them. We are converting the long to a double
  • Fixed the two bugs, implement a work around convenience function for getColumnMeta and do the right thing with longs.
  • A little clean up on HiPSRetrieve.java

Testing

  • build the rubin portal locally with this branch
  • choose DP2 & DP2 Images
  • under Observation Type and Source -> Collection -> LSST.DP2
  • target: 53.25, -28.089 EQ_J2000
  • Search
  • for the first image use the File Contents pull down to go to HDU #9 and show the table.
  • The first 4 columns should be int, int, long, int
  • compare with data-int to see the wrong data

@robyww robyww added this to the 2026.2 milestone Aug 12, 2026
@robyww robyww self-assigned this Aug 12, 2026
@robyww robyww added bug Table Changes to table or table model labels Aug 12, 2026
- nom-tam-fits bug: hduTable.getColumnMeta(icol, "TZERO") will return a null. The problem seems to be with the nom-tam-fits function
- We do not handle longs correctly when we need to scale them. We are converting the long to a double
- Fixed the two bugs, implement a work around convenience function for getColumnMeta and do the right thing with longs.
- A little clean up on HiPSRetrieve.java
@robyww
robyww force-pushed the FIREFLY-2048-fits-tzero branch from 52e7e30 to c965120 Compare August 12, 2026 22:48
@robyww
robyww requested a review from kpuriIpac August 12, 2026 22:52
@robyww
robyww marked this pull request as ready for review August 12, 2026 22:54
@robyww
robyww requested a review from gpdf August 12, 2026 22:55
@timj

timj commented Aug 12, 2026

Copy link
Copy Markdown

If we think this is also a nom-tam-fits bug, can we also file a ticket with them?

@robyww

robyww commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

I am going to make a nom-tam-fits issue soon.

@robyww

robyww commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

nom-tam-fits issue: nom-tam-fits/nom-tam-fits#882

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

Labels

bug Table Changes to table or table model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants