mapbox / make-surface

Vector surfaces creation routines
MIT License
89 stars 18 forks source link

Masked arrays with no nodata #51

Closed dnomadb closed 9 years ago

dnomadb commented 9 years ago

I had assumed that (and it had seemed like) only rasters with explicit nodata values were read in as masked arrays. I encountered a raster that has a nodata value of 'None', but src.read_band(<band no>) is a masked array, and is therefore "unmasked" (as arrays with no mask are fudged with an empty mask to simplify later processing).

dnomadb commented 9 years ago

Fixed in https://github.com/mapbox/make-surface/commit/b3e57a3744b6dcec85b801164d6598c97e2c0f8e