-
Hi team, import xarray as xr
import numpy as np
import pandas as pd
ds1 = xr.DataArray(np.arange(60).reshape(12, 5), coords = {'X': range(12), 'Y': range(5)}, dims = ['X', 'Y'])
ds2 = xr.DataArray(np.arange(60).reshape(12, 5), coords = {'X': range(12), 'Y': range(5)}, dims = ['X', 'Y'])
ds3 = xr.DataArray(np.arange(60).reshape(12, 5), coords = {'X': range(12), 'Y': range(5)}, dims = ['X', 'Y'])
ds = xr.concat([ds1, ds2, ds3], pd.Index(['feature_0', 'feature_1', 'feature_2'], name = 'features'))
one_xr = xr.full_like(ds1, 1.) I want to concat/combine/merge one_xr with ds along 'X' and 'Y' dims.
Thank |
Beta Was this translation helpful? Give feedback.
Answered by
max-sixty
May 28, 2021
Replies: 1 comment 3 replies
-
Could you edit your question such that it's possible to copy & paste the example? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
max-sixty
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you edit your question such that it's possible to copy & paste the example?