libpysal.weights.testDataArray¶
-
libpysal.weights.testDataArray(shape=
(3, 4, 4), time=False, rand=False, missing_vals=True)[source]¶ Creates 2 or 3 dimensional test xarray.DataArray object
- Parameters:¶
- shape : tuple¶
Tuple containing shape of the DataArray aligned with following dimension = (lat, lon) or (layer, lat, lon) Default shape = (3, 4, 4)
- time : boolean¶
Type of layer, if True then layer=time else layer=band Default is False.
- rand : boolean¶
If True, creates a DataArray filled with unique and random data. Default is false (generates seeded random data)
- missing_vals : boolean¶
Create a DataArray filled with missing values. Default is True.
- Returns:¶
da – instance of xarray.DataArray
- Return type:¶
xarray.DataArray