Project

General

Profile

Selecting timestepes and according values from two different files

Added by Gaby Langendijk about 3 years ago

Hello!

I have two .nc RCM files:
1. File contains values where threshold SH lower than 0.006 Kg/KG is calculated over a fieldmean of Berlin, only timesteps where this is true between 1996-2005 (I have both the boolean or real data files)
2. A gridded file for the Berlin region, with all timesteps between 1996-2005.

I would like to plot a timmean of the gridded file for where the threshold condition of the fieldmean Berlin file is true.

I tried to figure out how to do this (e.g. with np.where function in Python), but unsuccessfully.

Is there a way to deal with this with CDO? Could you e.g. multiply two files based on the timesteps of one file, but leave all other values (e.g. SH)?

Glad to hear from you!