arcpy.NumPyArrayToRaster cont.

Discussion created by slburns on Jan 24, 2012
Latest reply on Jan 30, 2012 by slburns
I am still having difficulties converting a numpy array to a raster.
I have created a raster for my cell sizes and have found the latitude min and longitude min for the lower_left_corner and use the following code:

from numpy import *

corner=arcpy.Point(139.8, -39.2)
myRaster=arcpy.NumPyArrayToRaster(myarray, corner, mylon, mylat)

but I receive an error message:
Runtime error <type 'exceptions.TypeError'>: Argument x_cell_size: Expected a numeric value, Raster instance or path name.

however the documentation says that you can use a raster for the cell size. Not sure where I am going wrong here.
Any feedback will be greatly appreciated.