Project

General

Profile

Use ifthen to

Added by Jessica Steinkopf almost 3 years ago

Hi All

I have two netcdf files: file1 (cru pre) and file2 (chirps precip).

Is there a way to use "ifthen" to achieve the following logic:

for each data point in file1
if the value is not missing and the file2 value is not missing
then keep the file1 value
else treat as missing

I basically want to get an output_file1 which only contains file1 data for points where file2 is not missing (and then I'll do vice versa).

I am new to CDO and working with NetCDF files and would appreciate any guidance.

Jessica