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

campt reports PixelValue from the first band always #5235

Closed
afrigeri opened this issue Jun 28, 2023 · 1 comment · Fixed by #5269
Closed

campt reports PixelValue from the first band always #5235

afrigeri opened this issue Jun 28, 2023 · 1 comment · Fixed by #5269
Assignees
Labels
bug Something isn't working

Comments

@afrigeri
Copy link
Contributor

afrigeri commented Jun 28, 2023

ISIS version(s) affected: 7.0.0

Description

campt reports PixelValue from the first band even when asking for band != 1

How to reproduce

download 10 by 10 pixel Chandrayaan-1 M3 sub-cube M3_10x10.cub.zip

unzip M3_10x10.cub.zip
campt from=M3_10x10.cub+1 sample=1 line=1  | grep PixelValue
PixelValue                 = -18.618536
campt from=M3_10x10.cub+25 sample=1 line=1  | grep PixelValue
PixelValue                 = -18.618536

should be: 16.72398

Possible Solution
explode-ing the cube then reassemble it, as a workaround.

Additional context

@afrigeri afrigeri added the bug Something isn't working label Jun 28, 2023
@AustinSanders
Copy link
Contributor

I suspect that this is related to #5234. We're experiencing a bug in which cube attributes are not being identified, which would mean that the "+25" that is appended to the filename is being skipped, which could very well lead to the behavior you've described.

I'll do some testing and update this issue as I make progress.

@acpaquette acpaquette mentioned this issue Aug 17, 2023
12 tasks
@acpaquette acpaquette self-assigned this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants