uxarray.UxDataArray.to_geodataframe

uxarray.UxDataArray.to_geodataframe#

UxDataArray.to_geodataframe(override=False, cache=True, exclude_antimeridian=False)#

Constructs a spatialpandas.GeoDataFrame with a “geometry” column, containing a collection of Shapely Polygons or MultiPolygons representing the geometry of the unstructured grid, and a data column representing a 1D slice of data mapped to each Polygon.

Parameters override: bool

Flag to recompute the GeoDataFrame stored under the uxgrid if one is already cached

cache: bool

Flag to indicate if the computed GeoDataFrame stored under the uxgrid accessor should be cached

exclude_antimeridian: bool, Optional

Selects whether to exclude any face that contains an edge that crosses the antimeridian

Returns:

gdf – The output GeoDataFrame with a filled out “geometry” and 1D data column representing the geometry of the unstructured grid

Return type:

spatialpandas.GeoDataFrame