We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d4912 commit e576d39Copy full SHA for e576d39
parcels/field.py
@@ -189,6 +189,10 @@ def __init__(
189
else:
190
raise ValueError("Unsupported mesh type in data array attributes. Choose either: 'spherical' or 'flat'")
191
192
+ if self.data.shape[0] > 1:
193
+ if "time" not in self.data.coords:
194
+ raise ValueError("Field data is missing a 'time' coordinate.")
195
+
196
@property
197
def units(self):
198
return self._units
0 commit comments