Thank you all very much!!!
More accurately,
I have created part of a code which
a) takes two specific raster files (of a 5x4 grid) following a path
b) creates two separate arrays of 5x4 dimension
I have used the following:
array_d=arcpy.RasterToNumPyArray(raster_d)
array_v=arcpy.RasterToNumPyArray(raster_v)
(height_d, width_d)=array_d.shape
(height_v, width_v)=array_velocity.shape
c) Subsequently, the code reads every cell value of both arrays, obtaining two values h, v
for row1 in range (0,height_d):
row2=row1
for col1 in range (0,width_d):
col2=col1
h=array_d.item(row1,col1)
v=array_v.item(row2,col2)
d) according to several scenarios of these values, h and v, the code calculates a parameter, named "D", in every cell. That is, the D parameter depends on the h and v.
I need to save the calculated parameter, "D", for every cell in a new array of the same dimensions (5x4 dimension), in an ascii file.
This ascii file will be converted subsequently to a raster file (I suppose this is the easy thing)