[ncl-talk] invalid boundary specification string
WIND
954051157 at qq.com
Mon Dec 23 01:02:15 MST 2019
Hi NCL users,
Thanks for reading.
I am trying to draw a color map within my province.
But the error seems to be confused.
My NCL version is 6.4.0. Was that because I lose some function in the Script File?
Any help would be grateful.
Sincerely,
Wind
My script is listed below:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
f = addfile("air.day.ltm.nc","r")
TT= f->air
TT=TT-273.15
TT at units = "degC"
t = TT ; local [deleted upon exit]
if (.not.isatt(t,"_FillValue"))
t at _FillValue = 1e20
end if
test=t(0,:,:)
lat=f->lat
lon=f->lon
test at lat=lat
test at lon=lon
d=test(::-1,:)
wks = gsn_open_wks("png","testT")
gsn_define_colormap(wks,"GMT_drywet")
res = True
res at gsnDraw = False ; Will panel later
res at gsnFrame = False
res at gsnAddCyclic = False
res at gsnMaximize = True
res at mpMaxLatF=55
res at mpMinLatF=35
res at mpMinLatF=120
res at mpMaxLatF=135
res at mpDataBaseVersion="Ncarg4_1"
res at mpDateSetName="Earth..4"
res at mpAreaMaskingOn=True
res at mpMaskAreaSpecifiers=(/"China:Jilin"/)
res at mpOceanFillColor=0
res at mpInlandWaterFillColor=0
res at mpLandFillColor=0
res at mpOutline=True
res at mpOutlineSpecifiers="China:Jilin"
res at mpOutlineBoundarySets="NoBoundaries"
res at cnFillOn = True
res at cnLinesOn = True
res at cnLineThicknessF =0.5
res at cnLevelSelectionMode = "ManualLevels"
res at cnLevelSpacingF = 10
res at cnMinLevelValF = -20
res at cnMaxLevelValF = 30
res at cnFillDrawOrder="preDraw"
res at cnLineDrawOrder="preDraw"
res at gsnRightString = ""
plot = gsn_csm_contour_map(wks,d,res)
draw(plot)
frame(wks)
The warning is listed below:
warning:MapSetTrans: map limits invalid - using maximal area
warning:MapV41DHUpdateDrawList: invalid boundary specification string: "china"
warning:MapV41DHUpdateDrawList: invalid boundary specification string: "china"
warning:mpDateSetName is not a valid resource in map at this time
warning:mpOutline is not a valid resource in map at this time
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191223/e7699cac/attachment.html>
More information about the ncl-talk
mailing list