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

Create ES50 heatmap on globe website #39

Closed
MathewBiddle opened this issue Aug 9, 2022 · 11 comments
Closed

Create ES50 heatmap on globe website #39

MathewBiddle opened this issue Aug 9, 2022 · 11 comments

Comments

@MathewBiddle
Copy link
Contributor

There is a really nice visualization tool at https://glaroc.github.io/gbif_globe/ and the source code is available at https://github.com/glaroc/gbif_globe.

It looks like you could replace the following two lines with references to your own jpg images.
https://github.com/glaroc/gbif_globe/blob/09e7ef973239e94db28838b87721058e0019fa83/src/App.js#L43-L44

If obisindicators could create the ES50 indicator for the globe and save the maps as jpg images, we might be able to use this visualization tool.

@MathewBiddle
Copy link
Contributor Author

@MathewBiddle
Copy link
Contributor Author

images need to be 16k by 8k px.

@MathewBiddle
Copy link
Contributor Author

Okay, here's what I've learned:

  • I've been able to project this image of species density (as calculated and generated here - See cell 23) onto the globe.
  • The projection that seems to fit is PlateCarree(). But, we might want to test with other available projections.
  • I had to make the background of the image transparent so the earth topology comes through. Otherwise it's just your map wrapped around a ball (in hindsight that might make this easier if we disregard the topology layer - wont need to match up projections and centers).

Below are some tinkerings with a small image:

image
image

@MathewBiddle
Copy link
Contributor Author

you can see my progress at https://github.com/MathewBiddle/gbif_globe

@MathewBiddle
Copy link
Contributor Author

MathewBiddle commented Aug 25, 2022

Published! https://mathewbiddle.github.io/gbif_globe/

Note:

  • only these layers are available:
    • 2020 image
    • 2010 image
  • The projections are wrong for this display
  • I removed the topography layer - too difficult to match up topography projection to data projection without knowing what it was originally.
  • Images are coming from the 2010 and 2020 jpgs at https://github.com/MathewBiddle/bio_ice

@MathewBiddle
Copy link
Contributor Author

Projection is PlateCarree

image

@MathewBiddle
Copy link
Contributor Author

Checkout the README for details on how to create the images for projecting onto sphere.

@7yl4r
Copy link
Member

7yl4r commented Aug 26, 2022

🔥 I am excited to see progress on this.

@7yl4r
Copy link
Member

7yl4r commented Oct 26, 2022

ongoing development now over here: https://github.com/MathewBiddle/globe

Last piece before closing this is to add a link to it.

@MathewBiddle
Copy link
Contributor Author

ANNNDD Here is the link to it: https://mathewbiddle.github.io/globe/

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

No branches or pull requests

2 participants