Skip to content

Commit a303c9e

Browse files
authored
Merge pull request #110 from knutfrode/dev
Added docstrings to is_1d and is_2d
2 parents 9abd279 + a2c3a0d commit a303c9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

trajan/traj.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,16 @@ def set_crs(self, crs):
268268

269269
@abstractmethod
270270
def is_1d(self):
271+
"""
272+
Returns True if dataset is 1D, i.e. time is a 1D coordinate variable.
273+
"""
271274
pass
272275

273276
@abstractmethod
274277
def is_2d(self):
278+
"""
279+
Returns True if dataset is 2D, i.e. time is a 2D variable and not a coordinate variable.
280+
"""
275281
pass
276282

277283
def assign_cf_attrs(self,

0 commit comments

Comments
 (0)