ymonsub with multiple variables leads to erroneous output
Added by Tom Akkermans over 1 year ago
Hi all, i recently updated my CDO from 2.0.5 to 2.2.0 and ran my code again. Now, I noticed that some parts of the output produced wrong results.
It concerns the output of the "ymonsub" command. I used to apply this on multi-variable files but this seems to be the reason that it's not working anymore. More specifically, i have a long timeseries (20 years or 240 months) with variables A and B, and i have an annual cycle with also the variables A and B (12 months). The result should produce a 240-month timeseries in which all the timeseries' values are subtracted with the corresponding month from the annual cycle.
In the new CDO version this works if there is only a single variable (variable A or B). But as soon as I have more than one variable, the output consist of all zeroes !
Can someone confirm this behavious?
Thanks!
Tom Akkermans
Replies (3)
RE: ymonsub with multiple variables leads to erroneous output - Added by Tom Akkermans over 1 year ago
I attached some files so that you can reproduce the problem (including the output file which I obtain - might be different on your system so try to compare with the file you obtain as output). However, i had to cut the long timseries to 4 years (48 months) to keep it below the tolerated file size.
This is the command I try to execute using the multi-variable approach:
cdo ymonsub TOA_monthlymean_lowres_postprocessing_all_SWLW.nc TOA_monthlymean_lowres_postprocessing_annualcycle_deviation_SWLW.nc TOA_monthlymean_lowres_postprocessing_all_deseason_SWLW.nc
In the output file ( TOA_monthlymean_lowres_postprocessing_all_deseason_SWLW.nc ), only the first variable (LW_flux) has valid values. The second variable (SW_flux) has all zeroes. If one should use even more variables, they would all have zeroes.
What is causing this??
Best regards,
Tom
RE: ymonsub with multiple variables leads to erroneous output - Added by Uwe Schulzweida over 1 year ago
Hello Tom,
Thanks for this report! Unfortunately we have to rebuild parts of the code and we have tested this function with only one variable. Sorry for the inconvenience, we will fix the problem in CDO version 2.2.2.
Best regards,
Uwe
RE: ymonsub with multiple variables leads to erroneous output - Added by Tom Akkermans over 1 year ago
Hi Uwe,
Thanks for your answer. Okay, no problem! in the meantime we'll temporarily revert to v2.0.5 but we are looking forward to v2.2.2
Best regards,
Tom