I created a fishnet grid and assigned numeric attributes 1-16 to a new field using the
arcpy.da.UpdateCursor function. It however assigned the attributes north to south (see image).
How can I change it so that the attributes are assigned from top-left to right i.e row by row as opposed to column by column? I know this could be achieved by the grid index tool but I used the fishnet tool because it allows me to draw the grid starting at the northwest corner drawing to the east which the grid index tool cannot achieve.
with arcpy.da.UpdateCursor("myfish1",("OID","switch")) as cursor: for row in cursor: row=row cursor.updateRow(row)