VACILT / SSW_project

MIT License
0 stars 0 forks source link

missing units in all colorbars #18

Closed kuchaale closed 3 years ago

kuchaale commented 3 years ago

We need to define units in the sea function in the following way:

comp_m.attrs['units'] = var.attrs['units']

so that xarray handles them in the colorbar label.

kuchaale commented 3 years ago

Another modification below:

temp = ds['u0'].attrs
comp_m.attrs['units'] = list(temp.values())[0].split(' / ')[-1]
kuchaale commented 3 years ago

I cannot see any change in definitions.py. Did you commit it?

gast-ben commented 3 years ago

I cannot see any change in definitions.py. Did you commit it?

Yeah, I forgot to commit the new version. I've done it just now.