types

types#

Module Attributes

AnyPathType

Any Path Type (derived from Pathlib and CloudpathLib)

AnyPathStrType

Same as AnyPathType but appened with str

AnyXrDataStructure

Xarray's DataArray or Dataset

AnyNumpyArray

Numpy array or masked array

AnyPolygonType

Shapely Polygon or MultiPolygon

AnyRioDatasetType

Any Rasterio Dataset Type (both Reader, Writer)

AnyRasterType

Any object potentially describing a raster: - its path, - its xarray representation (Dataset or DataArray), - its rasterio representation (DatasetReader or Writer) - or its array + metadata (np.ndarray + dict)

AnyVectorType

Any object potentially describing a vector: - its path, - its GeoDataFrame

Functions

is_iterable(obj[, str_allowed])

Is the object an iterable?

make_iterable(obj[, str_allowed, convert_none])

Convert the object to a list if this object is not iterable