Skip to content

Commit 7e01145

Browse files
committed
add size property to centroids/base
1 parent b44e638 commit 7e01145

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

climada/hazard/centroids/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ def lon(self):
213213
""" Get longitude from coord array """
214214
return self.coord[:, 1]
215215

216+
@property
217+
def size(self):
218+
""" Get count of centroids """
219+
return self.id.size
220+
216221
@staticmethod
217222
def get_sup_file_format():
218223
""" Get supported file extensions that can be read.

0 commit comments

Comments
 (0)