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

Cartopy plot not rendering #188

Closed
scottyhq opened this issue Jun 28, 2023 · 4 comments
Closed

Cartopy plot not rendering #188

scottyhq opened this issue Jun 28, 2023 · 4 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file visualization

Comments

@scottyhq
Copy link
Contributor

https://tutorial.xarray.dev/intermediate/hvplot.html#geography

In theory, errors should be caught by CI, but situations come up with caching execution where if the failure is accidentally overlooked, the notebook isn't executed again unless it's content changes...

execute:
execute_notebooks: 'cache'
allow_errors: false

File ~/micromamba/envs/xarray-tutorial/lib/python3.11/site-packages/cartopy/img_transform.py:278, in regrid(array, source_x_coords, source_y_coords, source_proj, target_proj, target_x_points, target_y_points, mask_extrapolated)
    274 else:
    275     # Versions of scipy >= v0.16 added the balanced_tree argument,
    276     # which caused the KDTree to hang with this input.
    277     kdtree = scipy.spatial.cKDTree(xyz, balanced_tree=False)
--> 278     _, indices = kdtree.query(target_xyz, k=1)
    279 mask = indices >= len(xyz)
    280 indices[mask] = 0

File _ckdtree.pyx:795, in scipy.spatial._ckdtree.cKDTree.query()

ValueError: 'x' must be finite, check for nan or inf values
@dcherian
Copy link
Contributor

dcherian commented Jul 3, 2023

Pin scipy? SciTools/cartopy#2199

@dcherian dcherian mentioned this issue Jul 3, 2023
34 tasks
@scottyhq
Copy link
Contributor Author

will be fixed in cartopy>=0.22 or can add pykdtree to the environment (SciTools/cartopy#2217 (comment))

@mzuranski
Copy link

Greetings! Just wanted to check in and see if there has been any movement on this.

@scottyhq scottyhq added visualization bug Something isn't working dependencies Pull requests that update a dependency file labels Feb 21, 2024
@scottyhq
Copy link
Contributor Author

fixed by #256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file visualization
Projects
None yet
Development

No branches or pull requests

3 participants