爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 37830|回复: 42

[作图] 如何用NCL从地表气压开始进行垂直积分

[复制链接]
发表于 2015-6-5 20:47:42 | 显示全部楼层 |阅读模式

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

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

x
使用       p_file=addfile("pres.nc","r")
      pres=p_file->pres
      p       = (/ 1000.,925.,850.,700.,600.,500., \
               400.,300.,250.,200.,150.,100., \
                70.,50.,30.,20.,10. /)
     linlog = 1
     pbot   = 1000.                                             
     ptop   = 300.

     u = vibeta (p,qu_new(time|:,lat|:,lon|:,level|:),linlog,pres,pbot,ptop)/9.8 进行垂直积分,发现这个函数是从pbot积到ptop,但是我想从地表气压pres往上积分,请教各位大神们如何解决?



密码修改失败请联系微信:mofangbao
发表于 2015-6-6 07:41:20 | 显示全部楼层
vibeta
Performs vertical integration using beta factors.

Prototype

        function vibeta (
                p          : numeric,  
                x          : numeric,  
                linlog [1] : integer,  
                psfc       : numeric,  
                pbot   [1] : numeric,  
                ptop   [1] : numeric   
        )

        return_val [dimsizes(psfc)] :  numeric
Arguments

p
A multi-dimensional array of pressure levels. The rightmost dimension must be at least of length 3. The order is bottom-to-top.

x
A multi-dimensional numeric array to be integrated. If p is a 1-dimensional array, then the rightmost dimension of x must be same size as p. Otherwise, x and p must be same size. The order of x's level dimension must be bottom-to-top.

linlog
A scalar integer, 1 = linear interpolation, 2 = log interpolation.

psfc
A multi-dimensional numerical array of surface pressures. Must be same size as x, minus the rightmost dimension.

pbot
A scalar numeric equal to the lower limits of integration.

ptop
A scalar numeric equal to the upper limits of integration.
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2015-6-6 07:42:35 | 显示全部楼层
psfc
A multi-dimensional numerical array of surface pressures. Must be same size as x, minus the rightmost dimension.
密码修改失败请联系微信:mofangbao
发表于 2015-6-6 08:19:35 | 显示全部楼层

  为什么要 “ /9.8” ?
密码修改失败请联系微信:mofangbao
发表于 2015-6-6 10:35:37 | 显示全部楼层
风往北吹 发表于 2015-6-6 07:42
psfc
A multi-dimensional numerical array of surface pressures. Must be same size as x, minus the ri ...

这个是不是只是为了判断哪里是missingvalue用的。实质上就是从pbot开始积分的?
密码修改失败请联系微信:mofangbao
发表于 2015-6-6 10:40:57 | 显示全部楼层
niuda 发表于 2015-6-6 08:19
为什么要 “ /9.8” ?

z坐标和p坐标换算
密码修改失败请联系微信:mofangbao
发表于 2015-6-6 11:25:53 | 显示全部楼层
talkd 发表于 2015-6-6 10:40
z坐标和p坐标换算


  一般不是  /(pbot-ptop) 的吗?

另外如果想从地表气压pres往上积分的话,是否可以设置 pbot的值很大,这样是否会默认从地表气压开始积分?
密码修改失败请联系微信:mofangbao
发表于 2015-6-6 13:08:06 | 显示全部楼层
niuda 发表于 2015-6-6 11:25
一般不是  /(pbot-ptop) 的吗?

另外如果想从地表气压pres往上积分的话,是否可以设置 pbot的值很 ...

好主意,我觉得值得一试
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-6-6 17:13:53 | 显示全部楼层
niuda 发表于 2015-6-6 08:19
为什么要 “ /9.8” ?

因为我要算大气质量流,公式里面有要/g的哦
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-6-6 17:14:45 | 显示全部楼层
talkd 发表于 2015-6-6 13:08
好主意,我觉得值得一试

我来试试~~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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