Skip to content
Advertisement

Merge 3 Arrays 2D arrays Dimension Wise to make a 6D array

so I have three Arrays of dimension (1949, 2649)

Jun_1TMean = xr.DataArray(Jun_1T.variables['__xarray_dataarray_variable__'])
lon = xr.DataArray(lon2)
lat = xr.DataArray(lat2)

When I do

June_1T =np.array( [Jun_1TMean, lat, lon])
June_1T.shape

I get (3, 1949, 2649)

However I actually want shape (1949, 2649, 1949, 2649, 1949, 2649) instead

Advertisement

Answer

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement