hydromt.DataArray.vector.ogr_compliant#

DataArray.vector.ogr_compliant(reducer=None) Dataset#

Create a Dataset/Array which is understood by OGR.

Variables with more than one dimension are not understood and will removed if no reducer is provided.

Parameters:

reducer (callable, optional) – method by which multidimensional data is reduced to 1 dimensional e.g. numpy.mean

Returns:

ogr compliant Dataset

Return type:

xr.Dataset