【问题标题】:Modify and add to netcdf attributes修改并添加到 netcdf 属性
【发布时间】:2016-03-07 17:40:06
【问题描述】:

我有一个带有以下内容的 netCDF 文件。维度之一的信息:

int time(time=100);
  :units = "calendar_year as %Y";
  :_ChunkSizes = 1048576; // int

是否有可用的工具,例如nco 可以像这样修改属性:

int time(time=100);
   :units = "year as %Y.%f" ;
   :calendar = "proleptic_gregorian" ;
   :_ChunkSizes = 1048576; // int

【问题讨论】:

标签: netcdf


【解决方案1】:

@user308827 是对的...

ncatted -a 'units,time,o,c,"year as %Y.%f"' -a 'calendar,time,o,c,"proleptic_gregorian"' in.nc out.nc

【讨论】:

    猜你喜欢
    • 2020-09-11
    • 2015-12-21
    • 1970-01-01
    • 1970-01-01
    • 2019-03-11
    • 1970-01-01
    • 2011-10-15
    相关资源
    最近更新 更多