Skip to content

expand the contents to cover more of functionality - #1

Open
martinfleis wants to merge 1 commit into
e-marshall:vector_cube_blogpostfrom
martinfleis:xvec
Open

martinfleis wants to merge 1 commit into
e-marshall:vector_cube_blogpostfrom
martinfleis:xvec

Conversation

@martinfleis

Copy link
Copy Markdown

Hi, as discussed over in xarray-contrib#693, this adds a bit more coverage of Xvec's functionality to the draft blogpost.

Also note that you are linking to images in the markdown that are not part of the branch, so will not render.

I was also wondering if it is worth mentioning that the example is indeed reproducible but the point extraction will (lazily) load 140GB of data :). It would certainly have helped me but a good news is that it did successfully ran on a MacBook air :D.


max_temp_buffer = era5_europe_cities.xvec.query(
"geometry", max_temp_city["geometry"].data.item().buffer(0.5)
"geometry", max_temp_city["geometry"].data.item(), predicate="dwithin", distance=0.5

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In the context of both xvec and geopandas, using dwithin predicate shall be preferred over intersection via buffer as it can be significantly faster.

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.

1 participant