- 积分
- 10628
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-10-10
- 最后登录
- 1970-1-1

|
发表于 2014-5-11 15:55:10
|
显示全部楼层
begin
filepath = systemfunc("ls ./month/*.nc", "r")
f = addfiles(filepath,"r")
ListSetType(f, "join")
lat= f[0]->lat
dstsfdry = f[:]->dry
dstsfwet = f[:]->wet
dstsfmbl = f[:]->mbl
wgty=latRegWgt(lat, "double", 0)
MBL = wgt_areaave(dstsfmbl(:, {28:62},{240:302}), wgty({28:62}), 1.0, 0)
DRY = wgt_areaave(dstsfdry(:, {28:62},{240:302}), wgty({28:62}), 1.0, 0)
WET = wgt_areaave(dstsfwet(:, {28:62},{240:302}), wgty({28:62}), 1.0, 0)
asciiwrite("MBL.txt", MBL)
asciiwrite("DRY.txt", DRY)
asciiwrite("WET.txt", WET)
end
|
|