爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6465|回复: 0

替换nc格式中的变量,超级简单

[复制链接]
发表于 2016-3-11 15:36:47 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
The NCL function
addfile
can be used to read, create or overwrite a
NetCDF
file. To overwrite an existing file, use a "w" as the second argument. Note that you can not change the dimensionality of any existing variables, but you can change the values. If adding to a netCDF file the type and size of the variable must already exist.
    begin      in = addfile("./esvc.nc","w")      (ncdump of original file)      z_t = (/30,40,89,78,45,234,98,23,456,294,12,17,40,56,17,32,85,93,72,\      20,46,24,90,89,25/)      in->z_t=(/z_t/)      (ncdump of modified file)    end
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表