Datasets:
File size: 3,530 Bytes
03a6065 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
data = yyyymmdd_time(2022, 2022, "integer")
; tp_y = new((/365,241,281/),float)
do a = 0,364
; a = 0
pa = "I:/ERA5/tp/era5.total_precipitation."+data(a)+".nc"
f = addfile(pa, "r")
tp=f->tp(:,120:360:-1,1000:1280)
tp1 = tp*1000
copy_VarCoords(tp, tp1)
tp_d = dim_sum_n_Wrap(tp1, 0)
printVarSummary(tp_d)
; printMinMax(tp1, 0)
printMinMax(tp_d, 0)
; tp_en = tp_y(:,192:220,192:260)
; printVarSummary(tp_en)
name = "f:/xiao/HXM/pre/tp"+data(a)
wks = gsn_open_wks("png", name)
FontHeightF = 0.013
; ;------------------------------------------------
resmp = True
resmp@gsnDraw = False
resmp@gsnFrame = False
resmp@tmXBMajorOutwardLengthF = 0
resmp@tmXBMinorOutwardLengthF = 0
resmp@tmYLMajorOutwardLengthF = 0
resmp@tmYLMinorOutwardLengthF = 0
resmp@tmXTOn = False
resmp@tmYROn = False
resmp@pmTickMarkDisplayMode = "Always"
resmp@mpFillOn = True
resmp@mpDataSetName = "Earth..4"
resmp@mpDataBaseVersion = "MediumRes"
;resmp@mpDataSetName = "Earth..4"
resmp@mpAreaMaskingOn = True
resmp@mpMaskAreaSpecifiers = (/"China","Taiwan"/)
resmp@mpOutlineSpecifiers = (/"China","China:Provinces"/)
; resmp@mpOutlineSpecifiers = (/"China"/)
resmp@mpLandFillColor = "white"
resmp@mpInlandWaterFillColor = "white"
;resmp@mpLandFillColor = "navajowhite1"
resmp@mpOceanFillColor = "white"
;resmp@mpOutlineBoundarySets = "NoBoundaries"
resmp@mpNationalLineThicknessF = 3
resmp@mpOutlineOn = True ;
resmp@mpGeophysicalLineColor = "black"
resmp@mpGeophysicalLineThicknessF = 0.5
resmp@tmYLLabelFontHeightF = 0.013
resmp@tmYRLabelFontHeightF = 0.013
resmp@mpMinLonF = 70.
resmp@mpMaxLonF = 140.
resmp@mpMinLatF = 0.
resmp@mpMaxLatF = 60.
resmp@tmXBLabelFontHeightF = 0.04
resmp@tmYLLabelFontHeightF = 0.04
resmp@tiXAxisFontHeightF = 0.03
resmp@tiYAxisFontHeightF = 0.03
cmap = read_colormap_file("precip3_16lev");"sunshine_9lev""WhiteYellowOrangeRed"
cmap1 = read_colormap_file("BlueWhiteOrangeRed")
resz = True
resz@gsnDraw = False
resz@gsnFrame = False
resz@gsnLeftString = ""
resz@gsnRightString = ""
resz@cnFillMode = "RasterFill"
resz@cnRasterSmoothingOn = True
; resz@gsnRightString = ""
resz@cnInfoLabelOn = False
resz@lbLabelBarOn = True ;关闭每幅图的色标
resz@cnInfoLabelOn = False
resz@cnFillOn= True ;填色图
resz@cnFillPalette = cmap;(2:190:25,:) ;"BlueWhiteOrangeRed""WhiteYellowOrangeRed"
resz@cnLinesOn = False ; 不绘制等值线值
resz@cnLineLabelsOn = False ;关闭等值线值标注
resz@cnLevelSelectionMode = "ManualLevels" ;手动设置
resz@cnMinLevelValF = 5.
resz@cnMaxLevelValF = 50.
resz@cnLevelSpacingF = 5.
resz@lbLabelFontHeightF = 0.01
resz@cnFillOn = True
resz@cnLinesOn = False
resz@cnSmoothingOn = True
resz@pmLabelBarOrthogonalPosF = 0.05 ;正的向上移
resz@lbAutoManage = False
resz@pmLabelBarHeightF = 0.1
resz@pmLabelBarWidthF = 0.5
resz@lbLabelFontHeightF = 0.02 ;数字越大字号越小
resz@lbBoxSeparatorLinesOn = False
map = gsn_csm_map(wks, resmp)
resz@gsnRightString = data(a)
resz@gsnLeftString = "Precipitation "
plotz500summ1 = gsn_csm_contour(wks, tp_d(:,:), resz)
overlay(map, plotz500summ1)
draw(wks)
frame(wks)
end do
|