Project

General

Profile

Cooling degree days, Growing degree days

Added by Ed Maurer about 13 years ago

The CDO operators are incredibly helpful in computing extreme statistics on netCDF files. I noticed that while heating degree days is included, cooling degree days, and the equivalent (just changing base temp) growing degree days were not. I am using a work-around:
cdo timsum -max -sub infile infile -sub infile -mulc,18 -div infile infile cd18_outfile.nc
for a base temp of 18C. I thought I'd throw that on this forum to see if there were any comments on it. With all those child processes it does run a little slower than many other commands. If there were CDX and GDX commands added at some point, that could clean this sort of calculation up a bit.


Replies (3)

RE: Cooling degree days, Growing degree days - Added by Ralf Mueller about 13 years ago

I'm not sure, but you might have a look at consects and consecsum (or see issue #14).

RE: Cooling degree days, Growing degree days - Added by Ed Maurer about 13 years ago

Thanks for the suggestion. I was looking for a sum of all days rather than consecutive days, but looking at consecsum led me to a better solution:
cdo timsum -mul infile -gtc,18 infile outfile
which seems to work correctly and is much simpler than what I had above.

RE: Cooling degree days, Growing degree days - Added by Ed Maurer about 13 years ago

oops, I had a typo in the prior post. It should be cdo timsum -subc,18 -mul infile -gtc,18 infile outfile

    (1-3/3)