修改并添加到 netcdf 属性 [英] Modify and add to netcdf attributes

查看:88
本文介绍了修改并添加到 netcdf 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 foll 的 netCDF 文件.维度之一的信息:

I have a netCDF file with the foll. information on one of the dimensions:

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

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

Are there any tools available e.g. nco that can modify the attributes like so:

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

推荐答案

@user308827 是对的...

@user308827 is right...

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

这篇关于修改并添加到 netcdf 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆