You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Dataset has only one of the two variables 'U' and 'V'. Please rename the appropriate variable in your dataset to have both 'U' and 'V' for Parcels simulation."
332
+
)
325
333
326
-
forcf_standard_nameinfallbacks:
327
-
ifcf_standard_nameinds.cf.standard_names:
328
-
name=ds.cf[cf_standard_name].name
329
-
ds=ds.rename({name: parcels_varname})
330
-
logger.info(
331
-
f"Found variable {name!r} with CF standard name {cf_standard_name!r} in dataset, renamed it to {parcels_varname!r} for Parcels simulation."
f"Dataset has variable with CF standard name {cf_standard_name_U!r}, "
339
+
f"but not the matching variable with CF standard name {cf_standard_name_V!r}. "
340
+
"Please rename the appropriate variables in your dataset to have both 'U' and 'V' for Parcels simulation."
332
341
)
333
-
break
334
342
else:
335
-
raiseValueError(
336
-
f"Could not find variable {parcels_varname!r} in dataset, nor any of the fallback CF standard names {fallbacks}. Please rename the appropriate variables in your dataset to {parcels_varname!r} for Parcels simulation."
0 commit comments