I am trying to convert Kelvin into Degree Celcius with cdo in Ubuntu. I am using this code: cdo -addc,-273.15 <infile> <outfile> and this one cdo -setattribute,tas@units="degC" -addc,-273.15 <infile> <outfile> A new netCDF file is generated with the new unit degree Celsius but when I run the whole netCDF file the temperature is still shown in Kelvin. How can I do this?

  • can you post the header you get from "ncdump -h outfile" ? Commented Jun 1, 2023 at 12:58
  • code.mpimet.mpg.de/boards/1/topics/1357 See this discussion. Generally, any support needed on CDO should be obtained from this forum, you will be more likely to get help
    – Jon
    Commented Aug 23, 2023 at 12:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.