Project

General

Profile

Count number of days below certain threshold is reached

Added by Naresh Neupane 11 months ago

Hi there:

I have two netcdf files. File1.nc is daily (365 days) greenness index for 365 days for the entire globe. File2.nc (just 1 time period) has average greenness index for the entire globe. I want to get the total number of days counting from January 1 until when the greenness value reaches the average for that location. In the end I want to create third file, File3.nc, which has just the numbers that represents the total count days before crossing the average threshold. Since greenness index decreases in fall and autumn, masking using "CDO le File1.nc File2.nc File3.nc" would not work. Is there any other command, I tried it in Python but it takes long.

Thanks