Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Filter xarray

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 #xarray
ADD COMMENT
Topic
Name
6+9 =