Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Filter dataarray

da = xr.DataArray(
    np.random.rand(4, 3),
    [
        ("time", pd.date_range("2000-01-01", periods=4)),
        ("space", ["IA", "IL", "IN"]),
    ],
)

da[:2]
da[0, 0]
da[:, [2, 1]]
Source by xarray.pydata.org #
 
PREVIOUS NEXT
Tagged: #Filter #dataarray
ADD COMMENT
Topic
Name
5+9 =