# How can I compute latitudinal-averaged values of a layer in ArcMap?

119
1
05-30-2018 08:27 AM
Labels (4)
New Contributor
I would like to produce the sort of plot with latitude-wise averages for a raster in ArcMap as in Petr Lukes et al 2016.
How can I do this?
Thanks a bunch,
Filipe
``a = np.random.randint(0, 10, size=(10, 5))  # a sample rasterx= np.mean(a, axis=1)  # the mean by rowy = np.arange(9, -1, -1)xy = np.array(list(zip(x, y)))aarray([[5, 1, 4, 7, 4],       [9, 9, 9, 0, 2],       [7, 6, 8, 3, 4],       [6, 5, 3, 3, 8],       [0, 2, 0, 0, 3],       [7, 8, 1, 2, 2],       [2, 4, 0, 6, 2],       [8, 3, 2, 8, 9],       [3, 8, 9, 2, 8],       [2, 4, 9, 5, 6]])xarray([4.2, 5.8, 5.6, 5. , 1. , 4. , 2.8, 6. , 6. , 5.2])yarray([9, 8, 7, 6, 5, 4, 3, 2, 1, 0])xyOut[20]: array([[4.2, 9. ],       [5.8, 8. ],       [5.6, 7. ],       [5. , 6. ],       [1. , 5. ],       [4. , 4. ],       [2.8, 3. ],       [6. , 2. ],       [6. , 1. ],       [5.2, 0. ]])‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍``