Hi!

The height dimension of my data has the unit 'm'. I want to change it to 'km'. I have tried to change this by updating the 'data' attribute for 'height' with one that is multiplied by 0.001 using the ct.cdm_attribute function:

Issue: My intention was to replace the old 'data'-attribute. However, it seems that cdm.update_attributes made a copy (the first list) without replacing the old one, while also putting it a layer too deep, in a nested dictionary. 


I used the following code:

data = ct.cdm.update_attributes(data, coord_attrs={'height': {'data':[float(element) * 0.001 for element in data.coords['height']['data']]}})

The output before updating the attributes is as following:

and the link to the workflow: https://sis-dev.climate.copernicus.eu/toolbox-editor/1474/satellite-humidity-1


Any help would be appreciated!

Thanks.


Huayuan