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

Example of masked areal interpolation #197

Open
martinfleis opened this issue Dec 13, 2023 · 8 comments
Open

Example of masked areal interpolation #197

martinfleis opened this issue Dec 13, 2023 · 8 comments

Comments

@martinfleis
Copy link
Member

Do we have an example notebook for masked area interpolation? The one using raster. I thought I have seen it before and wanted to share it with a student but can't find anything now. @knaaptime do you have it in some research code available somewhere, at least?

@knaaptime
Copy link
Member

knaaptime commented Dec 13, 2023

dang. the logic is here, but that's all been wrapped into the function now and it doesnt look like i ever pushed up an updated example. Lame on my part. Let me find something for you

@knaaptime
Copy link
Member

@martinfleis
Copy link
Member Author

martinfleis commented Dec 13, 2023

I've seen that one but was hoping to find a direct application of masked_area_interpolate

@knaaptime
Copy link
Member

yeah i'll grab you one

@knaaptime
Copy link
Member

not much explanation here (and it works a lot better with the interactive map), but here's a barebones example https://gist.github.com/knaaptime/7067008cac2837aa131793f0f3f1faca

@martinfleis
Copy link
Member Author

You're the best! Thanks!

@knaaptime
Copy link
Member

@martinfleis unrelated, but whats up with shapely sending those invalid value encountered in intersection warnings?

@martinfleis
Copy link
Member Author

GEOS issue that in fact does not affect the outcome. Some of it was fixed in GEOS 3.12 but I'm not sure if all.

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