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

Expand raster colormap style selection functionality #205

Closed
lstillwe opened this issue Sep 9, 2024 · 5 comments
Closed

Expand raster colormap style selection functionality #205

lstillwe opened this issue Sep 9, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request fix in progress issue is currently being addressed

Comments

@lstillwe
Copy link
Contributor

lstillwe commented Sep 9, 2024

Expand raster colormap style selection functionality to include features such as, choosing another type of colormap and setting the number of intervals. Also include selection for making colormap type - "intervals" or "ramp".

@lstillwe lstillwe added the enhancement New feature or request label Sep 9, 2024
@lstillwe lstillwe self-assigned this Sep 9, 2024
@BrianOBlanton BrianOBlanton self-assigned this Sep 9, 2024
@BrianOBlanton
Copy link
Collaborator

I'd be happy to work on this with you, in terms of the functionality and needs. although probably not very helpful in terms of actual implementation...

@lstillwe
Copy link
Contributor Author

lstillwe commented Sep 9, 2024

Great! Thank you.
Looking into packages for sources of predefined colormaps.
Found this so far: https://www.npmjs.com/package/colormap

@BrianOBlanton
Copy link
Collaborator

"Jet" in that package is pretty close to MATLAB's. There is also this:

https://docs.geoserver.org/latest/en/user/community/colormap/index.html

@lstillwe lstillwe added the fix in progress issue is currently being addressed label Sep 13, 2024
@lstillwe
Copy link
Contributor Author

lstillwe commented Oct 1, 2024

@BrianOBlanton I have this pretty much working now. I can demo at the team meeting. I remember that you mentioned maybe cutting down on the color ramps available. Right now I have included the 3 that you gave me, and everything from brewer.

They just get included in the code like this ...

colorRamps = {
DefaultMaxWaterLevel: ['#313695', '#323C98', '#4E80B9', '#84BAD8', '#C0E3EF', '#EFF9DB', '#FEECA2', '#FDBD6F', '#F57A49', '#D93629', '#A50026'],
DefaultMaxWindVelocity: ['#3E26A9', '#4433CD', '#4743E8', '#4755F6', '#4367FE', '#337AFD', '#2D8CF4', '#259CE8', '#1BAADF', '#04B6CE', '#12BEB9', '#2FC5A2', '#47CB86', '#71CD64', '#9FC941', '#C9C128', '#EBBB30', '#FFC13A', '#FBD42E', '#F5E824', '#FAFB14'],
DefaultMaxSignificantWaveHeight: ['#30123B', '#3D3790', '#455ACD', '#467BF3', '#3E9BFF', '#28BBEC', '#18D7CC', '#21EBAC', '#46F884', '#78FF5A', '#A3FD3C', '#C4F133', '#E2DD37', '#F6C33A', '#FEA531', '#FC8021', '#F05B11', '#DE3D08', '#C42502', '#A31201', '#7A0402'],
GeoStyler: ['#E7000E', '#F48E00', '#FFED00', '#00943D', '#272C82', '#611E82'],
GreenRed: ['#00FF00', '#FF0000'],
...brewer}

So if there are any other special ones that you wish to add, please just let me know and I will.

Screenshot 2024-10-01 at 9 47 31 AM

@BrianOBlanton
Copy link
Collaborator

Holy crap! this is incredible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix in progress issue is currently being addressed
Projects
None yet
Development

No branches or pull requests

3 participants