爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6280|回复: 3

[作图] ncl画流场图

[复制链接]

新浪微博达人勋

发表于 2016-6-2 16:29:11 | 显示全部楼层 |阅读模式

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

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

x
下面脚本是官网画流场图的脚本,我把文件换成我自己的,但是画出来内容是空的,也没有经纬度信息,但我的文件有经纬度的啊,请问要怎么改呢?
; stream_5.ncl
;
; Concepts illustrated:
;   - Drawing a black-and-white streamline plot
;----------------------------------------------------------------------
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin
  f = addfile("../wrfout_d02_2009-09-16_06:00:00","r")
  ;u1   = f->U(:,0,:,:)
  ;print(u1)
  u    = f->U(0,0,:,:)    ; read in example data [2D only here]
  v    = f->V(0,0,:,:)
; =================================================;
; create plots
; =================================================;
wtype = "x11"
;
; These lines have been commented out due to the fact that they generate
; an excessively large plot.
; wtype@wkWidth = 2500
; wtype@wkHeight = 2500
  wks = gsn_open_wks(wtype,"stream")
; The following line is not needed, and has been commented out.
; wks  = gsn_open_wks("ps","stream")             ; open a ps plot
  res = True

  res@stLineThicknessF      = 5.0         ; default is 1.0
  res@stLineColor = "NavyBlue"
  plot = gsn_csm_streamline(wks,u,v,res)
end




1.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-2 17:28:50 | 显示全部楼层
你没有读取经纬度信息怎么有经纬度呢,建议用ncl里的WRF专用函数,可以直接画出wrf的底图
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-6-2 19:26:25 | 显示全部楼层
zhangyw 发表于 2016-6-2 17:28
你没有读取经纬度信息怎么有经纬度呢,建议用ncl里的WRF专用函数,可以直接画出wrf的底图

好的好的,我再试试,谢谢啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-12-7 20:04:50 | 显示全部楼层
敢问楼主,咋解决的呢?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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