【发布时间】: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' 运行此命令?
【问题讨论】:
我需要将我的 netcdf 文件的尺寸从 time,lat,lon 转换为 lat,lon,time。
用于此目的的 NCO 命令是:“ncpdq -a lat,lon,time input.nc input_fixed.nc”
请问如何使用 Python 库 'pynco' 运行此命令?
【问题讨论】:
请阅读本页示例:https://github.com/nco/pynco 这些说明建议了这种调用
from nco import Nco
nco = Nco()
nco.ncpdq(input=in.nc, output=out.nc, options="-a lat,lon,time")
【讨论】: