爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5601|回复: 0

NCL画流场,小白求问大神这是怎么回事呀

[复制链接]

新浪微博达人勋

发表于 2019-4-25 21:58:51 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 qqkk 于 2019-4-25 22:00 编辑

NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
[backcolor=rgba(0, 0, 0, 0.85098)] See http://www.ncl.ucar.edu/ for more details.
[backcolor=rgba(0, 0, 0, 0.85098)]fatal:["NclFile.c":2100]:Subscript out of range, error in subscript #1
[backcolor=rgba(0, 0, 0, 0.85098)]fatal:["Execute.c":8640]:Execute: Error occurred at or near line 10 in file uv.ncl
[backcolor=rgba(0, 0, 0, 0.85098)]  1 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
[backcolor=rgba(0, 0, 0, 0.85098)]  2 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
[backcolor=rgba(0, 0, 0, 0.85098)]  3 load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
[backcolor=rgba(0, 0, 0, 0.85098)]  4 begin
[backcolor=rgba(0, 0, 0, 0.85098)]  5 dir="/home/knqian/201611/"
[backcolor=rgba(0, 0, 0, 0.85098)]  6 fname = "wrfout_d03_2016-11-15_00:00:00"
[backcolor=rgba(0, 0, 0, 0.85098)]  7 f=addfile(dir+fname,"r")
[backcolor=rgba(0, 0, 0, 0.85098)]  8 ;u1= f->U(:,0,:,:)
[backcolor=rgba(0, 0, 0, 0.85098)]  9 ;print(u1)
[backcolor=rgba(0, 0, 0, 0.8509u= f->U(8,1000,:,:)
[backcolor=rgba(0, 0, 0, 0.85098) v= f->V(8,1000,:,:)
[backcolor=rgba(0, 0, 0, 0.85098)12 ;u=wrf_user_getvar(f,U,8)
[backcolor=rgba(0, 0, 0, 0.85098) 13 ;v=wrf_user_getvar(f,V,8)
[backcolor=rgba(0, 0, 0, 0.85098)] 14 type="pdf"
[backcolor=rgba(0, 0, 0, 0.85098)] 15 name="uv"
[backcolor=rgba(0, 0, 0, 0.85098)] 16 wks=gsn_open_wks(type,name)
[backcolor=rgba(0, 0, 0, 0.85098)] 17 res=True
[backcolor=rgba(0, 0, 0, 0.85098) 18 res@stLineThicknessF = 5.0
[backcolor=rgba(0, 0, 0, 0.85098)] 19 res@stLineColor = "NavyBlue"
[backcolor=rgba(0, 0, 0, 0.85098)] 20 plot=gsn_csm_streamline(wks,u,v,res)
[backcolor=rgba(0, 0, 0, 0.85098)] 21 frame(wks)
[backcolor=rgba(0, 0, 0, 0.85098)] 22 end
[backcolor=rgba(0, 0, 0, 0.85098)] 23
[backcolor=rgba(0, 0, 0, 0.85098)]"uv.ncl" 23L, 560C                                                   
[backc用wrf_user_getvar是不是不能提取啊,因为我还需要固定层数,而且用了这个函数也是错误的

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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