How to calculate the number of days that both conditions are met simultaneously in two files
Added by Changyong Park over 4 years ago
Hi,
I am trying to calculate the number of days that both conditions are met simultaneously in two files.
In each grid, I would like to find the number of days that satisfy both conditions with daily mean temperature of 10 degrees or more and daily precipitation of 20 mm or more.
I want to create a new file with 1 if both conditions are met, and missing value if not.
But I failed and spent a lot of time on this.
Please help me, thanks!
Replies (1)
RE: How to calculate the number of days that both conditions are met simultaneously in two files - Added by Robert Wilson over 4 years ago
I have had to solve a similar problem recently.
This should work:
cdo -timsum -mul -gtc,10 tas.RSM.day.RCP85.HadGEM2-AO.KOR11.230station.2100_cdo_skorea.nc -gtc,20 pr.RSM.day.RCP85.HadGEM2-AO.KOR11.230station.2100_cdo_skorea.nc outfile
Regards
Robert Wilson