Skip to content

Error in examples/spatial/malaria_prevalence.ipynb #735

Open
@williambdean

Description

@williambdean

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions