mapshader.transforms.get_data_array_extent#

mapshader.transforms.get_data_array_extent(dataarray)[source]#

Get the coordinate of the lower left corner and the coordinate of the upper right corner in map units.

Parameters:

dataarray (xarray.DataArray) – The input datasource.

Returns:

extent – A tuple of (xmin, ymin, xmax, ymax) values.

Return type:

tuple of integers