云量的计算和在cesm模式中实现

15 篇文章 1 订阅
12 篇文章 0 订阅

今天我将云量计算加入了cesm

云量的计算方法,这是从我的论文里截图

这是绘制的相对湿度和云量的关系图。

云主要和相对湿度有关,当相对湿度大于一定阈值时候就容易产生云。

当然也和大气的稳定不稳定有关,稳定条件和不稳定条件下的云量计算是遵守不同的计算规律的。

实现代码

        subroutine yunliang(ncol,obklen , rh , n_l)
                integer,intent(in)  :: ncol
                real(r8),intent(in) :: rh(ncol) 
                real(r8),intent(in) :: obklen(ncol)
                integer             :: i
                real(r8)            :: n_l_stable(ncol)
                real(r8)            :: n_l_unstable(ncol)

                real(r8),intent(out) :: n_l(ncol)

                !stable 
                do i = 1, ncol 
                        if(rh(i)>= 80_r8 )then 
                                n_l_stable(i)  = ((rh(i) - 80_r8)**2_r8) / 4_r8
                        else if(rh(i)<80_r8)then
                                n_l_stable(i)  = 0_r8
                        end if
                end do


                !unstable 
                do  i = 1,ncol
                        if(rh(i)>=57_r8 )then  
                                 n_l_unstable(i)  =-0.74_r8 + -1.257_r8*rh(i) + 0.022644_r8*rh(i)*rh(i)
                        else if (rh(i)<57_r8)then 
                                n_l_unstable(i)  = 0_r8  
                        end if 
                end do 

                !panduan 
                do i = 1 , ncol
                        if(obklen(i)>=0_r8) then 
                                n_l(i) = n_l_stable(i)
                        else if( obklen(i)< 0_r8 )then 
                                n_l(i) = n_l_unstable(i)
                        end if 
                end do 
        


 
                        
        end subroutine yunliang

然后根据之前的添加输出变量的方法,将n_l输出出来,

运行5天先实验一下得出结果。

ncl画图程序

begin


  b = addfile("FHIST_SH.cam.h1.2000-01-01-00000.nc","r")

  n_l = b->n_l 

  do i = 1,20
  filename = "xunhuan_cloud"+i
  wks = gsn_open_wks("png",filename)             
  
  res = True                                     ; plot mods desired

  res@mpFillOn             = False               ; turn off gray continents
  res@cnFillOn             = True                ; turn on color fill
  res@cnFillPalette        = "WhiteBlue"         ; set color map
 

  res@cnLevelSelectionMode ="ManualLevels"
  res@cnMaxLevelValF =110
  res@cnMinLevelValF =0
  res@cnLevelSpacingF =5

  plot = gsn_csm_contour_map(wks,n_l(i,:,:), res); create plot

  end do

end 

 结果 2000年1月1日00时全球云量

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值