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

Error in examples/spatial/malaria_prevalence.ipynb #735

Open
wd60622 opened this issue Nov 15, 2024 · 0 comments
Open

Error in examples/spatial/malaria_prevalence.ipynb #735

wd60622 opened this issue Nov 15, 2024 · 0 comments

Comments

@wd60622
Copy link

wd60622 commented Nov 15, 2024

Something up with the CRS using these versions:

rasterio.__version__
# '1.4.2'
pyproj.__version__
# '3.7.0'
mapclassify.__version__
# '2.8.1'

Here is the tracback:

──────────────────────────────────────────── Error running examples/spatial/malaria_prevalence.ipynb ─────────────────────────────────────────────

---------------------------------------------------------------------------
Exception encountered at "In [7]":
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
Cell In[7], line 13
      9 with rio.open(in_path) as src:
     11     img = src.read()
---> 13     src_crs = src.crs["init"].upper()
     14     min_lon, min_lat, max_lon, max_lat = src.bounds
     15     xs = gambia_gpdf_4326["geometry"].x

File rasterio/crs.pyx:885, in rasterio.crs.CRS.__getitem__()

KeyError: 'init'
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

1 participant