Replicating the cdstoolbox API

The cdstoolbox library has been discontinued. I previously used it to compute daily aggregations of hourly data before downloading. Is there a way I can find the exact code used for the aggregations? I’m getting inconsistent results, with newly created daily means of temperature differing stochastically from old daily means calculated with cdstoolbox. Applying the same method to surface solar and thermal radiation results in perfectly matching results.

Any guidance on how to replicate the cdstoolbox functions would be appreciated. This could be a link to the source code.

I found the answer:

https://confluence.ecmwf.int/display/CKB/GRIB+to+netCDF+conversion+on+new+CDS+and+ADS+systems

They changed the way they convert to netCDF from GRIB. The cdstoolbox applied another processing step: "Additionally if files were post-processed in the CDS toolbox (e.g. daily statistics), they were also converted to the common data model (CDS-CDM), which introduced additional differences in the netCDF structure and content. "