Project

General

Profile

cdo timmean (Abort): Too few streams specified!

Added by Adrian Cortese over 6 years ago

Hi,

we are currently trying to test the cdo module to make sure its working, we are using the follow python script to test

from cdo import *
cdo = Cdo()
cdo.timmean(input="test.nc", output="test.timmean.nc")

are are getting the following error

+_Error in calling operator timmean with:

cdo -O timmean test.nc<<<

STDOUT:

STDERR:cdo timmean (Abort): Too few streams specified! Operator needs 1 input and 1 output streams.

Traceback (most recent call last):
File "./test.py", line 3, in <module>
cdo.timmean(input="test.nc", output="test.timmean.nc")
File "build/bdist.macosx-10.12-x86_64/egg/cdo.py", line 206, in get

any help would be much appreciated
cdo.CDOException: (returncode:1) cdo timmean (Abort): Too few streams specified! Operator needs 1 input and 1 output streams._+


Replies (1)

RE: cdo timmean (Abort): Too few streams specified! - Added by Anthony D'Agostino over 6 years ago

Adrian Cortese wrote:

Hi,

we are currently trying to test the cdo module to make sure its working, we are using the follow python script to test

from cdo import *
cdo = Cdo()
cdo.timmean(input="test.nc", output="test.timmean.nc")

are are getting the following error

+_Error in calling operator timmean with:

cdo -O timmean test.nc<<<

STDOUT:

STDERR:cdo timmean (Abort): Too few streams specified! Operator needs 1 input and 1 output streams.

Traceback (most recent call last):
File "./test.py", line 3, in <module>
cdo.timmean(input="test.nc", output="test.timmean.nc")
File "build/bdist.macosx-10.12-x86_64/egg/cdo.py", line 206, in get

any help would be much appreciated
cdo.CDOException: (returncode:1) cdo timmean (Abort): Too few streams specified! Operator needs 1 input and 1 output streams._+

Long-time CDO with Python bindings user and having similar problem with old scripts that are breaking. No problem at all executing on command line with specified output file, but within Python keep receiving the under-specified streams error (with and without explicit mention of outfile). Was not experiencing this about two weeks ago.

    (1-1/1)