Commit 6a1e9b59 authored by mlang's avatar mlang
Browse files

Add Raster property

parent 35c0b931
No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
......@@ -540,6 +540,11 @@ class Raster(Sized):
"""The raster's count or number of bands (int)"""
return self._count
@property
def shape(self):
"""The raster's dimensions in numpy stype (rows, columns, band)"""
return (self.height, self.width, self.count)
@property
def dtype(self):
"""The raster's data type (RasterDataType object)"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment