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

H3-py is capable only for raster files? #381

Open
ventel-the-great opened this issue Jun 15, 2024 · 1 comment
Open

H3-py is capable only for raster files? #381

ventel-the-great opened this issue Jun 15, 2024 · 1 comment

Comments

@ventel-the-great
Copy link

Can be h3-py be adopted to plot regular/irregular/curvelinear grids popular in netcdf format?

@dfellis
Copy link
Collaborator

dfellis commented Jun 15, 2024

I don't understand your question. H3 has many inputs for geospatial coordinates, including polygons defined in lat, lng pairs, which is by definition a vector. But the H3 grid is a discrete grid system to represent that data, and it's purpose is binning data for simpler and more uniform area analyses.

So you can take any other grid system's data and convert it to H3's grid system, but there will be conversion error as the grids won't perfectly line up, and how you do that is up to you (just centerpoint to centerpoint, or checking for all cells that intersect the input grid cell and then either distributing the value evenly amongst them or calculating the percentage of overlap and adding that percentage to each H3 cell; these are the most common solutions).

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