- 积分
- 99
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-5-8
- 最后登录
- 1970-1-1
|
10金钱
本帖最后由 稀饭 于 2022-3-13 22:14 编辑
报错如下,如果我将删除变量的lon坐标变量,报错就会消失,但是画的图就不对了,多次调试仍然没有解决
(0) gsn_add_cyclic: Warning: The range of your longitude data is not 360.
(0) You may want to set the gsnAddCyclic resource to False to avoid a
(0) warning message from the spline function.
warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value
warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear
warning:gsnAddCyClic is not a valid resource in EPfluxCli_contour at this time
变量属性如下
Variable: DivEPCli
Type: float
Total Size: 7056828 bytes
1764207 values
Number of Dimensions: 3
Dimensions and sizes: [level | 27] x [lat | 181] x [lon | 361]
Coordinates:
level: [10000..100000]
lat: [ 0..90]
lon: [60..240]
Number Of Attributes: 1
_FillValue : 9.96921e+36
我的绘图参数如下
ctf_res1 = True
ctf_res1@gsnDraw = False
ctf_res1@gsnFrame = False
ctf_res1@gsnMaximize = False
ctf_res1@gsnAddCyClic = False
ctf_res1@gsnCenterString = ""
ctf_res1@gsnLeftString = ""
ctf_res1@gsnRightString = ""
ctf_res1@mpCenterLonF = 180.
ctf_res1@mpMinLatF = 0.
ctf_res1@mpMaxLatF = 60.
ctf_res1@mpMinLonF = 120.
ctf_res1@mpMaxLonF = 240.
ctf_res1@cnFillOn = True ;颜色填充
ctf_res1@cnLinesOn = False ;关闭轮廓线
ctf_res1@cnInfoLabelOn = False
ctf_res1@cnLineLabelsOn = False
ctf_res1@cnFillPalette = "BlueDarkRed18"
ctf_res1@cnLevelSelectionMode = "ManualLevels"
ctf_res1@cnMaxLevelValF = 5.0
ctf_res1@cnMinLevelValF = -5.0
ctf_res1@cnLevelSpacingF = 1.0
ctf_res1@pmLabelBarHeightF = 0.06
ctf_res1@pmLabelBarOrthogonalPosF = 0.15
ctf_res1@lbLabelBarOn = True
plot1 = gsn_csm_contour_map(wks, DivEPCli({30000},:,:), ctf_res1)
draw(plot1)
frame(wks)
|
|