- 积分
- 8989
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-9
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2014-6-10 21:51:27
|
显示全部楼层
朋友,能不能帮我看看,这个转数据因为之前没弄过,自己用你介绍的方法试了一下,应该是可以的,但是我弄的这个脚本运行老是出错,能不能帮忙看看,哪里错了....
load "$NCARG_ROOt/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOt/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOt/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOt/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
;******************** MAIN **********************************
begin
;========================
; get list of all files and open as "one big file"
;========================
all_files = systemfunc ("ls /home/puyiliang/data/Uwnd_daily/uwnd.*.nc")
fall = addfiles (all_files, "r") ; note the "s" of addfile
;========================
; choose how files are combined and read in variable across files
;========================
ListSetType (fall, "cat") ; concatenate or "merge" (default)
uwnd = fall[:]->uwnd ; note syntax [:]
time=fall[:]->time
printVarSummary(uwnd)
ncdf = addfile("Uwnd_daily.nc" ,"c") ; open output netCDF file
filedimdef(ncdf,"time",-1,True)
ncdf->uwnd = uwnd
end
运行的时候老是说倒数第二,第三行有问题...
先谢了
|
|