Relative Content

Tag Archive for python-3.xnetcdfcf-python-client

Creating annual sum precipitation from netcdf timeseries using cf-python

I have a netcdf file containing daily precipitation over many years. I want to calcul annual precipitation. To achieve that I am using cf-python. I run into the following error: ‘UFuncTypeError: Cannot cast ufunc ‘subtract’ output from dtype(‘float64’) to dtype(‘int64’) with casting rule ‘same_kind‘. Attached is the screenshot of the full error.