修改并添加到 netcdf 属性

Modify and add to netcdf attributes

我有一个包含以下内容的 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

@user308827 是对的...

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