2

我的目标是在 netcdf 文件上从 cdo 包 (timmean) 运行一个简单的命令。我已成功安装软件包,但似乎无法运行命令。

在 jupyter 终端 中,当我导航到相关目录并运行命令时,我收到错误:

"cdo : The term 'cdo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ cdo timmean infile.nc outfile.nc
+ ~~~
    + CategoryInfo          : ObjectNotFound: (cdo:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException"

在 Jupyter Notebook 中如文档中所述,我首先尝试导入和启动一个对象:

from cdo import *
cdo = Cdo()

但是将问题追溯到第二行代码我收到错误: "FileNotFoundError: [WinError 2] The system cannot find the file specified"

任何帮助感谢,谢谢。

4

0 回答 0