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

Add io-bii colormap #159

Merged
merged 2 commits into from
Mar 10, 2023

Conversation

pjhartzell
Copy link
Contributor

@pjhartzell pjhartzell commented Mar 10, 2023

Description

Adds a continuous colormap for the Impact Observatory Biodiversity Intactness Index (io-bii) dataset modeled after the UN Biodiversity Intactness Index colormap. The colormap is intended for use with the io-bii data transformed as 0.97*(data**3.84) and rescaled to [0, 1]. This results in a logarithmic colormap that focuses on intactness index values in the 0.6 to 0.95 range to better distinguish land areas that are close to the critical 0.9 index value.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Item tile preview endpoint

I imported the io-bii Collection and a few Items into a local pgstac database and used the tile preview endpoint to render an image with the proposed colormap:

preview

legend colormap endpoint

The legend endpoint also renders the colorbar correctly:

legend

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Changelog has been updated
  • Documentation has been updated
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format)

Copy link
Member

@mmcfarland mmcfarland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@pjhartzell
Copy link
Contributor Author

@mmcfarland Could you merge the PR? Thanks!

@mmcfarland mmcfarland merged commit f662076 into microsoft:main Mar 10, 2023
lossyrob pushed a commit that referenced this pull request Apr 10, 2023
* feat: io-bii colormap

* fix: apply format
lossyrob added a commit that referenced this pull request Apr 10, 2023
* feat: io-bii colormap

* fix: apply format

Co-authored-by: Preston Hartzell <preston.hartzell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants