Q:

Importing CSV matrix of z values to raster with no x y coordinates using ArcGIS Desktop?

I have a CSV file of depth values that have no spatial information. I know the "cell size" of the data but not where it should be put in space.
How do I convert this into a data format, such as tif, that I can import to ArcGIS Desktop to georeference as though it is an image?

A:

You can use numpy's genfromtxt to create a numpy array and then convert this to a raster using NumpyArrayToRaster.
Example:
from numpy import genfromtxt
import arcpy

my_data = genfromtxt(r'C:\folder\depths.csv', delimiter=',') #If you have a header, add skip_header=1
myRaster = arcpy.NumPyArrayToRaster(in_array=my_data, x_cell_size=1, y_cell_size=1)
myRaster.save(r'C:\folder\raster.tif')

