Info in cdo --operators
Added by Ramiro Checa-Garcia about 1 year ago
Hello,
Thank you for developting the super-useful cdo tool. I am still learning and wondering the meaning of the numbers in parenthesis of the help given by cdo --operators
cdo --operators
abs Absolute value (1|1)
acos Arc cosine (1|1)
add Add two fields (2|1)
addc Add a constant (1|1)
addtrend Add trend (3|1)
....
Is it related to the number of arguments of each operator and outputs produced? How?
Thanks and apologies about this super-beginner question.
Regards,
Ramiro.
Replies (3)
RE: Info in cdo --operators - Added by Uwe Schulzweida about 1 year ago
Yes exactly (3|1) means that 3 input streams are expected and 1 output is written.
RE: Info in cdo --operators - Added by Ramiro Checa-Garcia about 1 year ago
Ok! Thanks. The case with (-1|0) or for example xsinfo or (0|0)? Should I understand that the input is not including the netcdf input file?
RE: Info in cdo --operators - Added by Uwe Schulzweida about 1 year ago
-1 means that the number is not known. When reading in, there can be any number of input files and when writing, the number depends on the content of the input data.
0 mean zero input or output files.