The data type of the array must be integer, I think you still have floating point values, so here is a sample, converting one of my random integer .npy files into an integer, an image, then a polygon
>>> az
array([[ 0., 0., 6., ..., 0., 0., 4.],
[ 0., 0., 0., ..., 0., 2., 0.],
[ 0., 4., 0., ..., 10., 0., 0.],
...,
[ 2., 0., 0., ..., 0., 0., 2.],
[ 0., 0., 0., ..., 0., 8., 0.],
[ 10., 4., 0., ..., 0., 0., 6.]])
>>>
>>> eee_zee = az.astype(int)
>>> eee_zee
array([[ 0, 0, 6, ..., 0, 0, 4],
[ 0, 0, 0, ..., 0, 2, 0],
[ 0, 4, 0, ..., 10, 0, 0],
...,
[ 2, 0, 0, ..., 0, 0, 2],
[ 0, 0, 0, ..., 0, 8, 0],
[10, 4, 0, ..., 0, 0, 6]])
>>> out = arcpy.NumPyArrayToRaster(eee_zee)
>>> out.save("f:/temp/ez.tif")
>>>
>>> p = arcpy.RasterToPolygon_conversion("f:/temp/ez.tif","f:/temp/ez_.shp","NO_SIMPLIFY")
>>>
Now, you have to be aware that it will make many unique areas IF you have many areas. That could be limitation
I just used the no_simplify and sent it out to a shapefile which loaded into arcmap
The keep line is eee_zee = az.astype(int) ... that sent the floating point array to an integer view. Then I saved it to a raster (tif) then to a shapefile
Next step... I want to see an image of what you are working with
PS in Global Reach, it has had 2163 view but only 12 people...
so these people...
- have no life other than to view this thread multiple times,
- there a whole load of unsigned in people reading this thread or
- there is something wrong with global reach views
Timothy Hales can you provide some insight