open different files without merge
Added by Estanislao Gavilan almost 2 years ago
Hi Community,
I was trying to compute the wind, but the u and v component are in different files. I tried this, but it fails.
cdo -z zip_6 -expr,wind="sqrt(u10m*u10m+v10m*v10m)" -selname,v10m v_input.nc -selname,u10m u_input.nc output.nc
cdo expr (Abort): Too many streams! Operator needs 1 input and 1 output streams.
I know I can use merge, but it takes a long time
Kind regards,
Estanislao
Replies (2)
RE: open different files without merge - Added by Karin Meier-Fleischer almost 2 years ago
Hi Estanislao,
the expression operator takes only one input stream (file), that's why you have to merge it on the fly:
cdo -z zip_6 -expr,wind="sqrt(u10m*u10m+v10m*v10m)" -merge -selname,v10m v_input.nc -selname,u10m u_input.nc output.nc
RE: open different files without merge - Added by Estanislao Gavilan almost 2 years ago
Thanks so much Karin