-
Notifications
You must be signed in to change notification settings - Fork 378
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
Adapt CDL cmap to match ordinal label mapping #1368
Conversation
Can you upload an example plot? |
Hmm, the plot looks a little odd. Can you use the geolocation from the sample image and view the raw CDL file in QGIS at the same location? Especially here in the Midwest, almost everything should be corn (yellow) or soybean (green), with a small amount of urban (gray) and more grassland (light green) as you move further west. I'm not even sure what the white class would be. |
Yeah, that second plot is what it should look like. What image and mask year is it? I'll zoom in on QGIS until I get the exact plot it should look like. |
I had 2011 |
Sup fellas, I think the Also, would gently recommend not spending time on this :) |
You are correct, although vmax should be len(cmap) - 1, not 255.
I needed a break :) |
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.
@nilsleh see what you think of this solution
@calebrob6 does Chesapeake not map mask values to ordinal ranges? Should it? Trying to decide whether or not we need cmap to be a dict or if it can be a much simpler list. |
Decided to keep it as a dict to match |
I can split the changes to each file into separate PRs if you want. Might make it easier to backport only CDL (the rest will have to wait until 0.5). |
0dff7ea
to
131fd31
Compare
new cmap with ordinal labels:
Also saw that
return fig
was missing from plot.Example: