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

Chesapeake7 doesn't have an embedded color table #60

Closed
calebrob6 opened this issue Aug 2, 2021 · 1 comment · Fixed by #66
Closed

Chesapeake7 doesn't have an embedded color table #60

calebrob6 opened this issue Aug 2, 2021 · 1 comment · Fixed by #66
Assignees
Labels
datasets Geospatial or benchmark datasets
Milestone

Comments

@calebrob6
Copy link
Member

All the tiffs in the Chesapeake series have embedded color tables except for the Chesapeake7 tiff. This causes the cmap = src.colormap(1) line to throw a ValueError.

@calebrob6
Copy link
Member Author

The colormaps for the other files are all the same:

{0: (0, 0, 0, 0), 1: (0, 197, 255, 255), 2: (0, 168, 132, 255), 3: (38, 115, 0, 255), 4: (76, 230, 0, 255), 5: (163, 255, 115, 255), 6: (255, 170, 0, 255), 7: (255, 0, 0, 255), 8: (156, 156, 156, 255), 9: (0, 0, 0, 255), 10: (115, 115, 0, 255), 11: (230, 230, 0, 255), 12: (255, 255, 115, 255), 13: (197, 0, 255, 255), 14: (0, 0, 0, 255), 15: (0, 0, 0, 255)}

however the class mapping for the 7-class version is different:
image

We can probably just embed the appropriate color maps directly into the class.

@adamjstewart adamjstewart added the datasets Geospatial or benchmark datasets label Aug 2, 2021
@adamjstewart adamjstewart self-assigned this Aug 2, 2021
@adamjstewart adamjstewart added this to the 0.1.0 milestone Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants