microsoft / PlanetaryComputerExamples

Examples of using the Planetary Computer
MIT License
378 stars 184 forks source link

NumPy compat on hrea example #136

Closed TomAugspurger closed 2 years ago

TomAugspurger commented 2 years ago

Something changed upstream in NumPy (probably) to make np.ma.squeeze(xarray_datarray) fail with an AttributeError looking for the .view attribute. rasterio.plot is calling np.ma.squeeze.

I think the intent is for np.ma.squeeze to return a masked array, so this is probably a deliberate change by NumPy.