snap-desktop
snap-desktop copied to clipboard
Implementing major Color Manipulation modifications done in SeaDAS 8
Major modifications to the Color Manipulation Tool. This spans both the snap-engine and snap-desktop repositories and has been merged with the master from 2020 Feb 26.
The key modifications/additions are:
1. Incorporates color schemes which are auto-applied based on a band-name lookup (configurable in preferences and by editing the xml file)
2. Imports and export cpt format files
3. Adds palette reversal capability
4. Adds a robust Color Manipulation preferences page
5. Fixes a bug in the "From Palette" button (button was named "From File")
6. Adds in some text constants for the spelling of the word colour (enables easily reconfiguring between "Color" and "Colour" spelling)
7. Fixes bug where the "More Options" GUI would not change it's fields between RGB, Indexed band, and SingleBand mode. Previously it would get stuck in the first mode loaded in until application restart.
8. Fixes bugs associated with log scaling where the color bar display would get scrunched up
9. Add log scaling attribute to the cpd palette files and it's reader. When not present the palette is treated as linear.
10. Added some RGB profiles which automatically get installed in auxdata.
11. Added some color palette used by NASA Ocean Color.
12. Updated the help page and added a Color Manipulation Preferences help page.
13. Adds configurable control for the user for the default color behavior when not using a color scheme.
14. Fixes bugs such that color palette point values cannot be edit to be greater than the next point or less than the previous point.
15. Prevent entering a value of 0 or less when in log scaling.
16. Adds the log scaling in all 3 Editor modes (for convenience).
17. Realigns buttons vertically instead of 2 columns for better space management.
18. Color Manipulation tool is now wrapped in a scroll pane.
19. Added a convenience range auto-adjustment button in the Sliders editor for RGB mode which sets the range to a preset range (default: min=0, max=1). This range is useful for reflectance bands. The actual values of this preset range configured in the preferences.
20. Added additional auto-range adjustment buttons for the sliders based on 1sigma, 2sigma, and 3sigma percentages.
21. Added ability to configure which buttons are shown in the "Sliders Editor". The 95% button if hidden now by default.
22. Merge the horizontal zoom into a single toggle button.
23. The preference page contains a restore to defaults setting.
Note: This branch is intentionally configured for SNAP. SeaDAS will likely make minor changes to the defaults. The majority of any configuration adjustments which may differ between SNAP and SeaDAS can be found in: snap-engine/snap-core/src/main/java/org/esa/snap/core/datamode/ColorManipulationDefaults.java snap-engine/snap-core/src/main/java/org/esa/snap/core/util/NamingConvention.java snap-desktop/snap-ui/src/main/resources/auxdata/color_schemes/color_palette_schemes.xml snap-desktop/snap-ui/src/main/resources/auxdata/color_schemes/color_palette_scheme_lookup.xml
Branch: SeaDAS-008f-master