I am opening a dataset using xarray with this line: DS = xr.open_dataset(dataDIR)
. When I use DS.variables
, I see that there's a variable named 'u-vel', however, when I try to open this variable using DS.u-vel
, it returns me the following:
'Dataset' object has no attribute 'u'
I think that the python is interpreting it as me trying to open the u variable in DS and subtract it from my local variable vel. I have tried using DS."u-vel"
, but it did not work either.
Does anybody know how should I open this variable using xarray?