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

automatically apply discrete colormap when cmap doesn't have 256 values #321

Closed
vincentsarago opened this issue Dec 21, 2020 · 0 comments · Fixed by #325
Closed

automatically apply discrete colormap when cmap doesn't have 256 values #321

vincentsarago opened this issue Dec 21, 2020 · 0 comments · Fixed by #325
Assignees

Comments

@vincentsarago
Copy link
Member

vincentsarago commented Dec 21, 2020

When a user has a custom colormap which is not a 256 dict (for 0 to 256) we should automatically switch to apply_discrete_cmap because

  • make_lut won't work with dict which doesn't have 256 values
  • we don't want to make a LUT with more than 256 value (e.g if a cmap is like {0: [...], 1000:[...]} a lut would be really large, while we could use apply_discrete_cmap directly.

lookup_table = make_lut(colormap)

This is to support developmentseed/titiler#153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant