爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: supersupergirl

[其他] 求问画panel组图时wrf_contour和gsn_csm_xy无法兼容问题

[复制链接]
 楼主| 发表于 2019-9-5 10:12:49 | 显示全部楼层
愛、星晴 发表于 2019-9-4 22:06
剖面按说y的高度和x的经度或者纬度都是确定的,添加应该不会出问题,你可能哪里没有弄清楚才会加错。

以下是我的脚本和出图 我想要的点是44.14N和87.94E 求大佬帮忙看下contour_tc = new(3, graphic)
contour_tc(0)  = wrf_contour(a, wks, ic_plane, opts)
contour_tc(1)  = wrf_contour(a1,wks, ic_plane1, opts)
contour_tc(2)  = wrf_contour(a2,wks, ic_plane2, opts)

pltres@PanelPlot = True
pltres@FramePlot = False

;add fukang Polymarker

dum = new(3, "graphic")

mkres = True
mkres@gsMarkerColor = "Red"
mkres@gsMarkerIndex = 16
mkres@gsMarkerSizeF = 0.01
lon = xlon(:,183)
lat = xlat(171,:)
print(lon)
print(lat)
dum(0) = gsn_add_polymarker(wks, contour_tc(0), lon, lat, mkres)
dum(1) = gsn_add_polymarker(wks, contour_tc(1), lon, lat, mkres)
dum(2) = gsn_add_polymarker(wks, contour_tc(2), lon, lat, mkres)

plots(0) = wrf_map_overlays(a, wks,(/contour_tc(0)/), pltres, mpres)
  plots(1) = wrf_map_overlays(a1, wks,(/contour_tc(1)/), pltres, mpres)
  plots(2) = wrf_map_overlays(a2, wks,(/contour_tc(2)/), pltres, mpres)
  ;set panel
  pnlres = res
  pnlres@gsnPanelCenter             = True
  pnlres@gsnPanelLabelBar           = True
  pnlres@lbOrientation  = "Vertical"
  pnlres@lbLabelPosition = "Right"
  pnlres@pmLabelBarParallelPosF     = 0.0
  pnlres@pmLabelBarOrthogonalPosF   = 0.008
  pnlres@pmLabelBarWidthF           = 0.05
  pnlres@pmLabelBarHeightF          = 0.2
  pnlres@gsnPanelRowSpec            = True
  pnlres@gsnPanelYWhiteSpacePercent = 5
  pnlres@gsnPanelScalePlotIndex     = 1
  pnlres@amJust                     = "TopLeft"
  gsn_panel(wks, (/plots/), (/3/), pnlres)

draw(contour_tc)
frame(wks)
  end

lon和lat的输出也是没有问题的 如下:

Variable: lon
Type: float
Total Size: 1320 bytes
            330 values
Number of Dimensions: 1
Dimensions and sizes:   [south_north | 330]
Coordinates:
Number Of Attributes: 6
  FieldType :   104
  MemoryOrder : XY
  description : LONGITUDE, WEST IS NEGATIVE
  units :       degree_east
  stagger :
  coordinates : XLONG XLAT
(0)     87.93561
(1)     87.93582
(2)     87.93604
(3)     87.93628
(4)     87.93646
(5)     87.93671
(6)     87.93692
(7)     87.93713
(8)     87.93735
(9)     87.93756
(10)    87.93777
(11)    87.93799
(12)    87.93823
(13)    87.93845
(14)    87.93866
(15)    87.93887
(16)    87.93909
(17)    87.9393
(18)    87.93951
(19)    87.93976
(20)    87.93997
(21)    87.94019
(22)    87.9404
(23)    87.94061
(24)    87.94086
(25)    87.94107
(26)    87.94128
(27)    87.94153
(28)    87.94174
(29)    87.94196
(30)    87.94217
(31)    87.94238
(32)    87.94263
(33)    87.94284
(34)    87.94305
(35)    87.9433
(36)    87.94351
(37)    87.94373
(38)    87.94397
(39)    87.94418
(40)    87.9444
(41)    87.94464
(42)    87.94485
(43)    87.94507
(44)    87.94531
(45)    87.94553
(46)    87.94574
(47)    87.94598
(48)    87.94623
(49)    87.94644
(50)    87.94666
(51)    87.9469
(52)    87.94711
(53)    87.94733
(54)    87.94757
(55)    87.94781
(56)    87.94803
(57)    87.94824
(58)    87.94849
(59)    87.9487
(60)    87.94894
(61)    87.94916
(62)    87.9494
(63)    87.94965
(64)    87.94986
(65)    87.95007
(66)    87.95032
(67)    87.95056
(68)    87.95078
(69)    87.95102
(70)    87.95123
(71)    87.95148
(72)    87.95172
(73)    87.95193
(74)    87.95215
(75)    87.95239
(76)    87.95264
(77)    87.95288
(78)    87.95309
(79)    87.95334
(80)    87.95355
(81)    87.9538
(82)    87.95404
(83)    87.95425
(84)    87.9545
(85)    87.95474
(86)    87.95496
(87)    87.9552
(88)    87.95544
(89)    87.95569
(90)    87.9559
(91)    87.95615
(92)    87.95639
(93)    87.9566
(94)    87.95685
(95)    87.95709
(96)    87.95734
(97)    87.95758
(98)    87.95782
(99)    87.95804
(100)   87.95828
(101)   87.95853
(102)   87.95877
(103)   87.95898
(104)   87.95923
(105)   87.95947
(106)   87.95972
(107)   87.95996
(108)   87.96021
(109)   87.96045
(110)   87.96069
(111)   87.96094
(112)   87.96115
(113)   87.9614
(114)   87.96164
(115)   87.96188
(116)   87.96213
(117)   87.96237
(118)   87.96262
(119)   87.96286
(120)   87.9631
(121)   87.96335
(122)   87.96359
(123)   87.96384
(124)   87.96408
(125)   87.96432
(126)   87.96457
(127)   87.96481
(128)   87.96506
(129)   87.9653
(130)   87.96555
(131)   87.96579
(132)   87.96603
(133)   87.96628
(134)   87.96655
(135)   87.9668
(136)   87.96704
(137)   87.96729
(138)   87.96753
(139)   87.96777
(140)   87.96802
(141)   87.96826
(142)   87.96851
(143)   87.96878
(144)   87.96902
(145)   87.96927
(146)   87.96951
(147)   87.96979
(148)   87.97003
(149)   87.97028
(150)   87.97052
(151)   87.97076
(152)   87.97101
(153)   87.97128
(154)   87.97153
(155)   87.9718
(156)   87.97205
(157)   87.97229
(158)   87.97253
(159)   87.97278
(160)   87.97305
(161)   87.9733
(162)   87.97357
(163)   87.97382
(164)   87.97406
(165)   87.97433
(166)   87.97458
(167)   87.97485
(168)   87.9751
(169)   87.97534
(170)   87.97562
(171)   87.97586
(172)   87.97614
(173)   87.97638
(174)   87.97662
(175)   87.9769
(176)   87.97714
(177)   87.97742
(178)   87.97766
(179)   87.97794
(180)   87.97818
(181)   87.97845
(182)   87.9787
(183)   87.97897
(184)   87.97922
(185)   87.97949
(186)   87.97974
(187)   87.98001
(188)   87.98029
(189)   87.98053
(190)   87.9808
(191)   87.98108
(192)   87.98132
(193)   87.98157
(194)   87.98184
(195)   87.98212
(196)   87.98236
(197)   87.98264
(198)   87.98291
(199)   87.98315
(200)   87.98343
(201)   87.9837
(202)   87.98398
(203)   87.98425
(204)   87.9845
(205)   87.98477
(206)   87.98505
(207)   87.98529
(208)   87.98557
(209)   87.98584
(210)   87.98611
(211)   87.98639
(212)   87.98663
(213)   87.98691
(214)   87.98718
(215)   87.98746
(216)   87.98773
(217)   87.98798
(218)   87.98825
(219)   87.98853
(220)   87.9888
(221)   87.98907
(222)   87.98935
(223)   87.98962
(224)   87.9899
(225)   87.99017
(226)   87.99042
(227)   87.99072
(228)   87.99097
(229)   87.99127
(230)   87.99152
(231)   87.99182
(232)   87.99207
(233)   87.99237
(234)   87.99261
(235)   87.99292
(236)   87.99316
(237)   87.99347
(238)   87.99374
(239)   87.99402
(240)   87.99429
(241)   87.99457
(242)   87.99484
(243)   87.99512
(244)   87.99539
(245)   87.99567
(246)   87.99597
(247)   87.99625
(248)   87.99652
(249)   87.9968
(250)   87.99707
(251)   87.99738
(252)   87.99765
(253)   87.99792
(254)   87.9982
(255)   87.99847
(256)   87.99878
(257)   87.99905
(258)   87.99933
(259)   87.99963
(260)   87.99991
(261)   88.00018
(262)   88.00046
(263)   88.00076
(264)   88.00104
(265)   88.00131
(266)   88.00162
(267)   88.00189
(268)   88.0022
(269)   88.00247
(270)   88.00275
(271)   88.00305
(272)   88.00333
(273)   88.0036
(274)   88.00391
(275)   88.00418
(276)   88.00449
(277)   88.00476
(278)   88.00507
(279)   88.00534
(280)   88.00565
(281)   88.00592
(282)   88.00623
(283)   88.0065
(284)   88.00681
(285)   88.00708
(286)   88.00739
(287)   88.00769
(288)   88.00797
(289)   88.00827
(290)   88.00854
(291)   88.00885
(292)   88.00916
(293)   88.00943
(294)   88.00974
(295)   88.01004
(296)   88.01031
(297)   88.01062
(298)   88.01093
(299)   88.01123
(300)   88.01151
(301)   88.01181
(302)   88.01212
(303)   88.01239
(304)   88.0127
(305)   88.013
(306)   88.01331
(307)   88.01361
(308)   88.01392
(309)   88.01419
(310)   88.0145
(311)   88.0148
(312)   88.01511
(313)   88.01541
(314)   88.01569
(315)   88.01599
(316)   88.0163
(317)   88.0166
(318)   88.01691
(319)   88.01721
(320)   88.01752
(321)   88.01782
(322)   88.01813
(323)   88.01843
(324)   88.01874
(325)   88.01904
(326)   88.01935
(327)   88.01965
(328)   88.01996
(329)   88.02026


Variable: lat
Type: float
Total Size: 1380 bytes
            345 values
Number of Dimensions: 1
Dimensions and sizes:   [west_east | 345]
Coordinates:
Number Of Attributes: 6
  FieldType :   104
  MemoryOrder : XY
  description : LATITUDE, SOUTH IS NEGATIVE
  units :       degree_north
  stagger :
  coordinates : XLONG XLAT
(0)     43.9077
(1)     43.91056
(2)     43.91341
(3)     43.91624
(4)     43.91906
(5)     43.92185
(6)     43.92464
(7)     43.9274
(8)     43.93015
(9)     43.93288
(10)    43.93559
(11)    43.93829
(12)    43.94097
(13)    43.94363
(14)    43.94628
(15)    43.94891
(16)    43.95153
(17)    43.95413
(18)    43.95671
(19)    43.95927
(20)    43.96182
(21)    43.96435
(22)    43.96687
(23)    43.96937
(24)    43.97185
(25)    43.97432
(26)    43.97677
(27)    43.97919
(28)    43.98161
(29)    43.98401
(30)    43.98639
(31)    43.98876
(32)    43.99111
(33)    43.99344
(34)    43.99575
(35)    43.99805
(36)    44.00034
(37)    44.0026
(38)    44.00485
(39)    44.00708
(40)    44.0093
(41)    44.0115
(42)    44.01368
(43)    44.01585
(44)    44.018
(45)    44.02013
(46)    44.02225
(47)    44.02435
(48)    44.02643
(49)    44.0285
(50)    44.03055
(51)    44.03258
(52)    44.0346
(53)    44.03659
(54)    44.03858
(55)    44.04055
(56)    44.0425
(57)    44.04443
(58)    44.04634
(59)    44.04825
(60)    44.05013
(61)    44.05199
(62)    44.05384
(63)    44.05567
(64)    44.0575
(65)    44.05929
(66)    44.06107
(67)    44.06284
(68)    44.06459
(69)    44.06632
(70)    44.06804
(71)    44.06974
(72)    44.07142
(73)    44.07309
(74)    44.07473
(75)    44.07637
(76)    44.07798
(77)    44.07959
(78)    44.08117
(79)    44.08273
(80)    44.08429
(81)    44.08581
(82)    44.08733
(83)    44.08883
(84)    44.09031
(85)    44.09177
(86)    44.09322
(87)    44.09466
(88)    44.09607
(89)    44.09747
(90)    44.09885
(91)    44.10022
(92)    44.10157
(93)    44.1029
(94)    44.10422
(95)    44.10551
(96)    44.10679
(97)    44.10806
(98)    44.10931
(99)    44.11054
(100)   44.11176
(101)   44.11295
(102)   44.11413
(103)   44.1153
(104)   44.11645
(105)   44.11758
(106)   44.11869
(107)   44.11979
(108)   44.12087
(109)   44.12193
(110)   44.12299
(111)   44.12401
(112)   44.12502
(113)   44.12602
(114)   44.127
(115)   44.12797
(116)   44.12892
(117)   44.12984
(118)   44.13075
(119)   44.13166
(120)   44.13253
(121)   44.1334
(122)   44.13425
(123)   44.13508
(124)   44.13589
(125)   44.13668
(126)   44.13747
(127)   44.13823
(128)   44.13897
(129)   44.1397
(130)   44.14041
(131)   44.14111
(132)   44.14179
(133)   44.14245
(134)   44.1431
(135)   44.14373
(136)   44.14434
(137)   44.14493
(138)   44.14551
(139)   44.14607
(140)   44.14661
(141)   44.14715
(142)   44.14766
(143)   44.14815
(144)   44.14863
(145)   44.14909
(146)   44.14954
(147)   44.14996
(148)   44.15038
(149)   44.15077
(150)   44.15115
(151)   44.1515
(152)   44.15184
(153)   44.15217
(154)   44.15248
(155)   44.15278
(156)   44.15306
(157)   44.15331
(158)   44.15356
(159)   44.15379
(160)   44.15399
(161)   44.15419
(162)   44.15437
(163)   44.15453
(164)   44.15467
(165)   44.1548
(166)   44.1549
(167)   44.15499
(168)   44.15507
(169)   44.15513
(170)   44.15517
(171)   44.1552
(172)   44.1552
(173)   44.1552
(174)   44.15517
(175)   44.15513
(176)   44.15507
(177)   44.15499
(178)   44.1549
(179)   44.1548
(180)   44.15467
(181)   44.15453
(182)   44.15437
(183)   44.15419
(184)   44.15399
(185)   44.15379
(186)   44.15356
(187)   44.15331
(188)   44.15306
(189)   44.15278
(190)   44.15248
(191)   44.15217
(192)   44.15184
(193)   44.1515
(194)   44.15115
(195)   44.15077
(196)   44.15038
(197)   44.14996
(198)   44.14954
(199)   44.14909
(200)   44.14863
(201)   44.14815
(202)   44.14766
(203)   44.14715
(204)   44.14661
(205)   44.14607
(206)   44.14551
(207)   44.14493
(208)   44.14434
(209)   44.14373
(210)   44.1431
(211)   44.14245
(212)   44.14179
(213)   44.14111
(214)   44.14041
(215)   44.1397
(216)   44.13897
(217)   44.13823
(218)   44.13747
(219)   44.13668
(220)   44.13589
(221)   44.13508
(222)   44.13425
(223)   44.1334
(224)   44.13253
(225)   44.13166
(226)   44.13075
(227)   44.12984
(228)   44.12892
(229)   44.12797
(230)   44.127
(231)   44.12602
(232)   44.12502
(233)   44.12401
(234)   44.12299
(235)   44.12193
(236)   44.12087
(237)   44.11979
(238)   44.11869
(239)   44.11758
(240)   44.11645
(241)   44.1153
(242)   44.11413
(243)   44.11295
(244)   44.11176
(245)   44.11054
(246)   44.10931
(247)   44.10806
(248)   44.10679
(249)   44.10551
(250)   44.10422
(251)   44.1029
(252)   44.10157
(253)   44.10022
(254)   44.09885
(255)   44.09747
(256)   44.09607
(257)   44.09466
(258)   44.09322
(259)   44.09177
(260)   44.09031
(261)   44.08883
(262)   44.08733
(263)   44.08581
(264)   44.08429
(265)   44.08273
(266)   44.08117
(267)   44.07959
(268)   44.07798
(269)   44.07637
(270)   44.07473
(271)   44.07309
(272)   44.07142
(273)   44.06974
(274)   44.06804
(275)   44.06632
(276)   44.06459
(277)   44.06284
(278)   44.06107
(279)   44.05929
(280)   44.0575
(281)   44.05567
(282)   44.05384
(283)   44.05199
(284)   44.05013
(285)   44.04825
(286)   44.04634
(287)   44.04443
(288)   44.0425
(289)   44.04055
(290)   44.03858
(291)   44.03659
(292)   44.0346
(293)   44.03258
(294)   44.03055
(295)   44.0285
(296)   44.02643
(297)   44.02435
(298)   44.02225
(299)   44.02013
(300)   44.018
(301)   44.01585
(302)   44.01368
(303)   44.0115
(304)   44.0093
(305)   44.00708
(306)   44.00485
(307)   44.0026
(308)   44.00034
(309)   43.99805
(310)   43.99575
(311)   43.99344
(312)   43.99111
(313)   43.98876
(314)   43.98639
(315)   43.98401
(316)   43.98161
(317)   43.97919
(318)   43.97677
(319)   43.97432
(320)   43.97185
(321)   43.96937
(322)   43.96687
(323)   43.96435
(324)   43.96182
(325)   43.95927
(326)   43.95671
(327)   43.95413
(328)   43.95153
(329)   43.94891
(330)   43.94628
(331)   43.94363
(332)   43.94097
(333)   43.93829
(334)   43.93559
(335)   43.93288
(336)   43.93015
(337)   43.9274
(338)   43.92464
(339)   43.92185
(340)   43.91906
(341)   43.91624
(342)   43.91341
(343)   43.91056
(344)   43.9077
warning:NhlDraw: cannot draw Plot Member, ID 11, independently
warning:NhlDraw: cannot draw Plot Member, ID 43, independently
warning:NhlDraw: cannot draw Plot Member, ID 75, independently

wrf_panel_ic_500hpa.000001.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-5 11:05:54 | 显示全部楼层
抱歉,我不是用wrf_contour、wrf_map_overlays做的叠加,我用的是gsn画图做得叠加,你的问题我没试过也没什么法子。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-5 11:31:52 | 显示全部楼层
愛、星晴 发表于 2019-9-5 11:05
抱歉,我不是用wrf_contour、wrf_map_overlays做的叠加,我用的是gsn画图做得叠加,你的问题我没试过也没什 ...

好的 还是非常感谢 我想问下可以单纯叠加gsn_csm_contour和gsn_csm_vector 不叠加map吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-5 15:49:31 | 显示全部楼层
supersupergirl 发表于 2019-9-5 11:31
好的 还是非常感谢 我想问下可以单纯叠加gsn_csm_contour和gsn_csm_vector 不叠加map吗

完全可以         
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-5 21:05:37 | 显示全部楼层

好的 我再尝试下 非常感谢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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