[ncl-talk] invalid boundary specification string
Rick Brownrigg
brownrig at ucar.edu
Mon Dec 23 07:52:58 MST 2019
HI,
You have this:
res at mpMaxLatF=55
res at mpMinLatF=35
res at mpMinLatF=120
res at mpMaxLatF=135
I think you meant this:
res at mpMaxLatF=55
res at mpMinLatF=35
res at mpMinLonF=120
res at mpMaxLonF=135
Also note that its:
res at mpDataSetName="Earth..4"
not
res at mpDateSetName="Earth..4"
Correcting these might help, although I'm not certain where the error
"...invalid boundary..." is coming from.
Rick
On Mon, Dec 23, 2019 at 1:02 AM WIND via ncl-talk <ncl-talk at ucar.edu> wrote:
> 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
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191223/759ddc78/attachment.html>
More information about the ncl-talk
mailing list