Closed laufers closed 5 years ago
I got clim.attrs['units'] = 'mm/day' to work.
OK, now I see that the later code does make use of the .attrs naming where you reverse the color index. So need to fix the typo in the previous code box. s
Thanks for spotting this typo, @laufers! Much appreciated.
When working on the second episode, when I get to change the units for the precip data, I get the following error.
AttributeError: cannot set attribute 'units' on a 'DataArray' object. Use setitem style assignment (e.g.,
ds['name'] = ...
) instead to assign variables.