爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5828|回复: 1

[作图] 请教NCL时间轴设置的问题

[复制链接]

新浪微博达人勋

发表于 2019-8-26 16:10:41 | 显示全部楼层 |阅读模式

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

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

x
    请教大家一个问题,小弟绘制了一个时间-纬度 要素的演变图,但是时间纬显示的是很大的值(函数名称为time,单位是hours since 1900-01-01 00:00:00.0),请问怎么把他显示为1-May这样的格式?还有我想把XY坐标轴对调下,用什么函数合适呢?附源代码,哪位大侠能帮解答下,谢谢!
var=v(7:26,4,{15:45},{110:130})   ; precip in June1-20
var1=dim_sum_n_Wrap(var,2)
printVarSummary(var1)
wks   = gsn_open_wks ("png", "time_lat" )  ; send graphics to PNG file
res                  = True                ; plot mods desired
res@tiMainString     = "color example"     ; title
res@tmXBLabelStride  = 2                   ; tick mark label stride
res@tiYAxisString    = "time"              ; y axis title
res@cnFillOn         = True                ; color on
res@lbLabelStride    = 2                   ; every other label
res@lbOrientation    = "Vertical"          ; vertical label bar
res@cnLinesOn        = False               ; turn off contour lines
res@cnFillPalette    = "ViBlGrWhYeOrRe"    ; set color map
plot = gsn_csm_time_lat(wks, var1, res )



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

新浪微博达人勋

发表于 2019-9-2 17:21:53 | 显示全部楼层
有cd_calendar函数可以转成199901这种形式
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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