{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/make-surface/issues/91","labels_url":"https://api.github.com/repos/mapbox/make-surface/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/make-surface/issues/91/comments","events_url":"https://api.github.com/repos/mapbox/make-surface/issues/91/events","html_url":"https://github.com/mapbox/make-surface/issues/91","id":87113888,"number":91,"title":"AttributeError: 'numpy.ndarray' object has no attribute 'mask'","user":{"login":"jdtoy","id":879000,"avatar_url":"https://avatars.githubusercontent.com/u/879000?v=3","gravatar_id":"","url":"https://api.github.com/users/jdtoy","html_url":"https://github.com/jdtoy","followers_url":"https://api.github.com/users/jdtoy/followers","following_url":"https://api.github.com/users/jdtoy/following{/other_user}","gists_url":"https://api.github.com/users/jdtoy/gists{/gist_id}","starred_url":"https://api.github.com/users/jdtoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdtoy/subscriptions","organizations_url":"https://api.github.com/users/jdtoy/orgs","repos_url":"https://api.github.com/users/jdtoy/repos","events_url":"https://api.github.com/users/jdtoy/events{/privacy}","received_events_url":"https://api.github.com/users/jdtoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T21:29:41Z","updated_at":"2015-06-10T21:29:41Z","closed_at":null,"body":"This error occurs when vectorizing without a nodata value.\r\nUse `makesurface vectorize --nodata <value>` to avoid the problem.\r\n\r\nRelated(?): https://github.com/mapbox/make-surface/issues/51 Masked arrays with no nodata\r\nSee also (?): https://github.com/mapbox/rasterio/issues/240, https://github.com/mapbox/rasterio/issues/241.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/bin/makesurface\", line 9, in <module>\r\n    load_entry_point('makesurface==0.2.14.dev0', 'console_scripts', 'makesurface')()\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 664, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 644, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 991, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 837, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 464, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/makesurface/scripts/cli.py\", line 42, in vectorize\r\n    makesurface.vectorize(infile, outfile, classes, classfile, weight, nodata, smoothing, bidx, carto, axonometrize, nosimple, setnodata, nibble, outvar)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/makesurface/__init__.py\", line 4, in vectorize\r\n    vectorize_raster.vectorizeRaster(infile, outfile, classes, classfile, weight, nodata, smoothing, bidx, cartoCSS, axonometrize, nosimple, setNoData, nibbleMask, outvar)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/makesurface/scripts/vectorize_raster.py\", line 128, in vectorizeRaster\r\n    classRas, breaks = classify(inarr, int(classes), weight)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/makesurface/scripts/vectorize_raster.py\", line 33, in classify\r\n    outRas[np.where(inArr.mask == True)] = 0\r\nAttributeError: 'numpy.ndarray' object has no attribute 'mask'\r\n```"}}