-
Notifications
You must be signed in to change notification settings - Fork 6
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
DAS-2161: Updates libs with no user visible changes. #16
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8225754
DAS-2180: Updates libs with no changes.
flamingbear e23594e
DAS-2180: upgrade pillow with small work around changes
flamingbear e344889
DAS-2180: Fixes expected color_map test.
flamingbear 834a21a
DAS-2180: update CHANGELOG
flamingbear 63cbf05
DAS-2180: use enumerate to build color_map
flamingbear 25266eb
DAS-2180: Chuck up a .snyk file
flamingbear e09ebf4
DAS-2180: Upgrade gdal package.
flamingbear 3f6b6fc
DAS-2180: revert gdal version up
flamingbear 53ffaed
DAS-2161: Fix typo on PR
flamingbear ff2439b
DAS-2180: remove snyk file
flamingbear 749e62c
DAS-2161: conda gdal to 3.9 / snyk to 3.7
flamingbear b7481c1
DAS-2161: Release these changes
flamingbear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
harmony-service-lib~=1.0.26 | ||
harmony-service-lib~=1.0.27 | ||
pystac~=0.5.6 | ||
matplotlib==3.7.1 | ||
rasterio==1.3.6 | ||
rioxarray==0.15.0 | ||
numpy==1.24.2 | ||
pillow==10.0.0 | ||
pyproj==3.6.0 | ||
matplotlib==3.9.0 | ||
rasterio==1.3.10 | ||
rioxarray==0.15.5 | ||
numpy==1.26.4 | ||
pillow==10.3.0 | ||
pyproj==3.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay then. This is me gathering my thoughts (please tell me if anything below is wonky):
all_black_color_map
returns a dictionary of 256 key/value pairs. All have an RGBA tuple that is black.color_tuples
and assign those values to their appropriate index in the dictionary (but it essentially starts at 0 and fills the first N indices).So, the questions I have:
color_tuples
is significantly less than 256, and you have multiple black values at the end of the colour map? Does that matter?colour_tuples
is more than 256? Would that be a problem? (It seems like the code will all still work, but maybenodata
would not be set as expected?)Possibly nitpicky thought (feel free to ignore), you could use
enumerate
below maybe:(And yes, I know I used "color", but only to be consistent 😉)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we have gotten that before and will still see that. It does not matter, because there are no values in the data that will have those indexes. For example run
gdalinfo
on the ASTGTMV003_N00E022_dem.png from the regression tests.No, because we only ask for 254 values when quantizing .
I just tried with 300 for giggles and quantize won't go above 256:
ValueError: bad number of colors
Also No Data is set right before reprojection, so it would end up overwriting the last color in the table. Which is also why I only ask for 254 values, so that we have a transparent and no data index available without ruining any of the quantized values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure that's cleaner.