爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5277|回复: 2

对于两个相减的变量怎么赋值求解

[复制链接]
发表于 2015-12-21 16:00:01 | 显示全部楼层 |阅读模式

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

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

x
a1 = a->QVAPOR(0,0,:,:)
b1 = b->QVAPOR(0,0,:,:)
  c = b1-a1
; note, in LSM files, it is safer to copy the missing value from the
; file than try to write it out, since the number of decimal points on the
; file may not be the same number NCL reads. (9.99999e29)
; c@_FillValue = a->TAM@missing_value
  ;c@long_name=c@Title                   ; no long_name on this file

c!0="lat"                               ; coordinate vars are called
c!1="lon"                               ; "latitude" etc. plots want "lat"
c&lat  =a->XLAT       ; Create coordinate variables
c&lon  =a->XLONG       ; for sst and store the sizes
  
c@lon2d  = xlong2D
c@lat2d  = xlat2D
密码修改失败请联系微信:mofangbao
发表于 2015-12-23 20:40:11 | 显示全部楼层
你说的赋属性吧,即把QVAPOR的属性赋予C,
如果是的话,可以用一个命令搞定
copy_VarMeta(a,c)
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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