PREjelly

随笔分类 -  ncl

ncl 常用绘图属性之常规设置
摘要:wks_type = "png" wks_type@wkWidth = 2500 ;设置分辨率 wks_type@wkHeight = 2500 res = True res@tmXTOn = False res@tmYROn = False ;;;;;;;;;;;;;;;;;;;;;;;;;;;; 阅读全文

posted @ 2022-11-09 21:51 天天编程je 阅读(1167) 评论(0) 推荐(0)

ncl批量读取多个nc文件
摘要:diri = "/mnt/g/data/3/" files = systemfunc("ls " + diri + "*nc4") ;批量读取文件路径 f1 = addfiles(files,"r") ListSetType (f1, "cat") lat = f1[0]->lat({20:30}) 阅读全文

posted @ 2022-11-07 21:08 天天编程je 阅读(2240) 评论(0) 推荐(0)

ncl中截取所需要的时间段数据
摘要:;;;;;;;;;;;装换时间 t = f->time YYYY =cd_calendar(t, -1) yrstrt =201901 ;起始年、月 yrlast =201912 ;结束年、月 ist =ind(yrstrt.eq.YYYY) iet =ind(yrlast.eq.YYYY) pre 阅读全文

posted @ 2022-10-21 21:34 天天编程je 阅读(818) 评论(0) 推荐(0)