lusos.LassoGrid.empty_array#
- LassoGrid.empty_array(layer_coords: list, dask: bool = True, chunksize: int = 3100) DataArray [source]#
Create an empty 3D DataArray within the extent of the LASSO grid. The “layer_coords” are added in the 3rd dimension, “layer”, of the DataArray.
- Parameters:
layer_coords (list) – List of coordinate names of the “layer” dimension.
dask (bool, optional) – If True, a DataArray containing an empty Dask array is returned otherwise, a DataArray containing all zeros is returned. The default is True.
chunksize (int, optional) – If the Dask option is used, specify a chunk size for the “y” and “x” dimensions. The dimension “layer” is handled as a single chunk. Recommended memory size of chunks is approximately 100 MB (see Dask documentation). The default is 3100.
- Returns:
Empty DataArray.
- Return type:
xr.DataArray