Here's what I did:
- I created a shapefile (polygon geometry) in ARCMAP (with relevant info in its attribute table).
- I converted the shapefile into a raster .tif file.
- I managed to extract all the info I needed from ArcMap into spyder (python3). Thus, I have a raster tif image, a dbf file and a csv that I used to extract and store some coordinates.
- I converted the tif image into an array,
im = Image.open(tif_filepath)
imarray = np.array(im)
so that I could work with pixel values.
My question: How do I associate each entry of the matrix (imarray
) with the real coordinate values, in the respective projection?
For example, I want a function that takes entries i, j and returns x, y, where x and y are well defined coordinates in Arcmap.