<div dir="ltr"><div>HI,</div><div><br></div><div>You have this:</div><div><br></div><div><div> res@mpMaxLatF=55</div><div> res@mpMinLatF=35</div><div> res@mpMinLatF=120</div><div> res@mpMaxLatF=135</div><div><br></div><div>I think you meant this:</div><div><br></div><div><div> res@mpMaxLatF=55</div><div> res@mpMinLatF=35</div><div> res@mpMin<span style="color:rgb(255,0,0)">Lon</span>F=120</div><div> res@mpMax<span style="color:rgb(255,0,0)">Lon</span>F=135</div><div><br></div><div>Also note that its:</div><div><br></div><div> res@mpDat<span style="color:rgb(255,0,0)">a</span>SetName="Earth..4"</div><div><br></div><div>not</div><div><br></div><div> res@mpDat<span style="color:rgb(153,153,153)">e</span>SetName="Earth..4"</div><div><br></div><div>Correcting these might help, although I'm not certain where the error "...invalid boundary..." is coming from.</div><div><br></div><div>Rick</div><div><br></div><div><br></div></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 23, 2019 at 1:02 AM WIND via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi NCL users,</div><div>Thanks for reading.</div><div>I am trying to draw a color map within my province.</div><div>But the error seems to be confused.</div><div>My NCL version is 6.4.0. Was that because I lose some function in the Script File? </div><div>Any help would be grateful.</div><div><br></div><div>Sincerely,</div><div>Wind</div><div><br><b>My script is listed below:</b></div><div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</div><div>f = addfile("<a href="http://air.day.ltm.nc" target="_blank">air.day.ltm.nc</a>","r")</div><div>TT= f->air</div><div>TT=TT-273.15 </div><div>TT@units = "degC" </div><div>t = TT ; local [deleted upon exit]</div><div> if (.not.isatt(t,"_FillValue"))</div><div> t@_FillValue = 1e20</div><div> end if</div><div>test=t(0,:,:)</div><div>lat=f->lat</div><div>lon=f->lon</div><div>test@lat=lat</div><div>test@lon=lon</div><div>d=test(::-1,:)</div><div>wks = gsn_open_wks("png","testT")</div><div>gsn_define_colormap(wks,"GMT_drywet")</div><div> res = True</div><div> res@gsnDraw = False ; Will panel later</div><div> res@gsnFrame = False</div><div> res@gsnAddCyclic = False</div><div> res@gsnMaximize = True </div><div> res@mpMaxLatF=55</div><div> res@mpMinLatF=35</div><div> res@mpMinLatF=120</div><div> res@mpMaxLatF=135</div><div> res@mpDataBaseVersion="Ncarg4_1"</div><div> res@mpDateSetName="Earth..4"</div><div> res@mpAreaMaskingOn=True</div><div> res@mpMaskAreaSpecifiers=(/"China:Jilin"/)</div><div> res@mpOceanFillColor=0</div><div> res@mpInlandWaterFillColor=0</div><div> res@mpLandFillColor=0</div><div> res@mpOutline=True</div><div> res@mpOutlineSpecifiers="China:Jilin"</div><div> res@mpOutlineBoundarySets="NoBoundaries"</div><div> res@cnFillOn = True </div><div> res@cnLinesOn = True</div><div> res@cnLineThicknessF =0.5</div><div> res@cnLevelSelectionMode = "ManualLevels"</div><div> res@cnLevelSpacingF = 10</div><div> res@cnMinLevelValF = -20</div><div> res@cnMaxLevelValF = 30</div><div>res@cnFillDrawOrder="preDraw"</div><div>res@cnLineDrawOrder="preDraw"</div><div>res@gsnRightString = ""</div><div>plot = gsn_csm_contour_map(wks,d,res)</div></div><div>draw(plot)</div><div>frame(wks)</div><div><br></div><div><b>The warning is listed below:</b></div><div><div>warning:MapSetTrans: map limits invalid - using maximal area</div><div>warning:MapV41DHUpdateDrawList: invalid boundary specification string: "china"</div><div>warning:MapV41DHUpdateDrawList: invalid boundary specification string: "china"</div><div>warning:mpDateSetName is not a valid resource in map at this time</div><div>warning:mpOutline is not a valid resource in map at this time</div></div><div><br></div><div><br></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>