esciencecenter-digital-skills / geospatial-python

Introduction to Geospatial Raster and Vector Data with Python
https://esciencecenter-digital-skills.github.io/geospatial-python/
Other
3 stars 0 forks source link

Exercise error in episode 08 #25

Closed cpranav93 closed 2 years ago

cpranav93 commented 2 years ago

For the Exercise: Compare two ways of bounding box cropping,

The example code block gives the following error:

TypeError Traceback (most recent call last) /mnt/c/Documents and Settings/PranavChandramouli/Documents/One Drive/OneDrive - Netherlands eScience Center/Projects/Course_Development/Geospatial_python/geospatial-python/Code_cells_check.ipynb Cell 66' in <cell line: 1>() ----> 1 raster_clip_polygon2 = true_color_image.rio.clip(polygon['geometry'], polygon.crs) 2 raster_clip_polygon2.plot.imshow()

TypeError: 'module' object is not subscriptable

Needs to be checked.

cpranav93 commented 2 years ago

Fixed.