Skip to content

Conversation

@jackiryan
Copy link
Collaborator

Description

The behavior of the quantization step for palettized PNGs has been modified to properly handle values that lie above or below the defined colormap steps in the color palette. For example, if a colormap defines its lowest color level as 0, negative numbers would be treated as nodata. Now they are treated as the lowest color level, which is the intended behavior. This change also fixes a bug with the way that nodata values were handled during quantization.

Jira Issue ID

GITC-8325

Local Test Steps

Tested with unit tests and running a script to run against a real TEMPO L2 product. Testing against the regression tests is still pending.

PR Acceptance Checklist

  • Jira ticket acceptance criteria met.
  • CHANGELOG.md updated to include high level summary of PR changes.
  • docker/service_version.txt updated if publishing a release.
  • Tests added/updated and passing.
  • Documentation updated (N/A).

@jackiryan jackiryan merged commit 82e966b into main Dec 3, 2025
7 checks passed
@jackiryan jackiryan deleted the GITC-8325 branch December 3, 2025 22:44
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

Successfully merging this pull request may close these issues.

3 participants