Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ncks -v name of var inp.nc out.nc
我有一个带有 hyperslab 的 netCDF 文件,name of var但是,由于 hyperslab 的名称中有空格,因此会导致错误“
name of var
ncks: ERROR recieved 3 filenames; need no more than two
如何解决这个问题?
伊莱坦是对的。引用变量是最简单的解决方案。这两个都可以工作:
ncks -v "name of var" in.nc out.nc ncks -v 'name of var' in.nc out.nc