inttime with missing values
Added by Robert Wilson over 3 years ago
I am using inttime with a file which contains missing values. I expected inttime to interpolate between each non-missing value. But I still get missing values in the resulting file, which reflect those in the original file.
My code is as follows:
cdo -M -inttime,1998-01-01,12:00:00,1day 1998.nc outfile.nc
I note that, under news, before v0.9.7 CDO did not handle missing values correctly. How are missing values now handle by the method?
Regards
Robert
Replies (3)
RE: inttime with missing values - Added by Uwe Schulzweida over 3 years ago
Hi Robert,
Interpolation is only performed if both values exist. If both values are missing values, the result is also a missing value. If only one value exists, it is taken if the time weighting is greater than or equal to 0.5.
So no new value will be created at existing time steps, if the value is missing there.
Regards,
Uwe
RE: inttime with missing values - Added by Ralf Mueller over 3 years ago
This feature sounds a bit like a fillmiss operator for the time axis, right?
RE: inttime with missing values - Added by Robert Wilson over 3 years ago
Hi Ralf/Uwe
Thanks for the clarfication. I think a temporal version of setmisstonn would potentially be useful for some workflows. I am thinking mostly of satellite data where there is missing data due to cloud cover, and you need to do something to get, for example, driving data for models.
Regards
Robert