【问题标题】:NCO permutation command in PythonPython中的NCO置换命令
【发布时间】:2021-04-06 14:48:58
【问题描述】:

我需要将我的 netcdf 文件的尺寸从 time,lat,lon 转换为 lat,lon,time。

用于此目的的 NCO 命令是:“ncpdq -a lat,lon,time input.nc input_fixed.nc”

请问如何使用 Python 库 'pynco' 运行此命令?

【问题讨论】:

    标签: python netcdf nco pynco


    【解决方案1】:

    请阅读本页示例:https://github.com/nco/pynco 这些说明建议了这种调用

    from nco import Nco
    nco = Nco()
    nco.ncpdq(input=in.nc, output=out.nc, options="-a lat,lon,time")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-26
      • 2023-01-17
      • 2021-11-15
      • 2011-07-24
      相关资源
      最近更新 更多