<div dir="ltr"><div>Hi Zac,</div><div><br></div><div>This does indeed look like a bug -- I've traced through the code enough to see that it *looks* like an array is getting accessed <br></div><div>beyond its bound, which might explain the irregular behavior of the graphic.  I've filled a ticket -- NCL-2778.  <br></div><div><br></div><div>Unfortunately, that code is extremely complex, and I can't say I'll have a fix in the short term.  I also don't know of a work around <br></div><div>other than using a different cnFillMode (I know you said you really can't.)</div><div><br></div><div>Thanks for setting up the simplified test data. I wonder if you would mind sending me (directly) a snapshot of what the plot looks <br></div><div>like with your real data?</div><div><br></div><div>Wish I had better news to report...</div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 1, 2018 at 3:25 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I can reproduce the problem, although it hasn't been random for me -- always like the image you sent.  I'm looking into it.</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 1, 2018 at 1:47 PM Zac Suriano <<a href="mailto:zsuriano@unomaha.edu" target="_blank">zsuriano@unomaha.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
Hello,
<div><br>
</div>
<div>I am attempting to create a contour map using cell fill of a 1x1 degree dataset. There are no error messages, however the output plot is irregular, with a (seemingly random) column appearing in the NW corner of the domain. Running the identical
 code multiple times, the column starts in the NW corner, sometimes extending south, other times extending north, and occasionally not occurring at all.</div>
<div><br>
</div>
<div>Please find a screenshot of the plot and a simplified version of the script below. I would appreciate any assistance that could be provided.</div>
<div><br>
</div>
<div>Please note, the script is simplified for ncl-talk purposes; CellFill is necessary due to missing data constraints and the nature of the particular research project. I am running version 6.5.</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Zachary</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">begin</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">wks=gsn_open_wks("x11","figure")</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res=True</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpDataBaseVersion="Ncarg4_1"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpProjection="LambertEqualArea"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpLimitMode="Corners"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpLeftCornerLatF=40.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpLeftCornerLonF=-95.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpRightCornerLatF=52.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpRightCornerLonF=-70.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@gsnAddCyclic=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpCenterLonF=-84.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@cnFillOn=True</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@cnFillMode="CellFill"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@cnLinesOn=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpOutlineOn=True</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpOutlineBoundarySets = "National"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpOutlineSpecifiers=(/"Canada : Provinces", "United States : States"/)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@pmTickMarkDisplayMode="Always"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@tmXTOn=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@tmYROn=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@cnCellFillEdgeColor="Grey18"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpGeophysicalLineThicknessF=0.5</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpNationalLineThicknessF=0.5</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpProvincialLineThicknessF=0.5</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@mpFillOn=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@pmTickMarkDisplayMode="Always"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">;***** to get rasterfill to work:
<a href="https://www.ncl.ucar.edu/Applications/Scripts/raster_5.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/raster_5.ncl</a></span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">nlat=10</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">nlon=18</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@tmXBMinorOn=False</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@tmXBFormat="f"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@tmYLFormat="f"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@sfXArray=fspan(-93.,-75.,nlon)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@sfYArray=fspan(41,51,nlat)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@sfXArray := fspan(-93.,-75.,nlon+1)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">res@sfYArray := fspan(41,51,nlat+1)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">;******* test plot with dummy data</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy=new((/10,18/),"float",-999)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy!0="lat"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy&lat=fspan(40.5,50.5,10)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy!1="lon"</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy&lon=fspan(-92.5,-75.5,18)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy=3</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy(9,:)=5</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">dummy(9,9)=2</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">plot=gsn_csm_contour_map(wks,dummy,res)</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961);min-height:14px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">end</span><img id="m_2381207572853138358m_51595233506690290090D23CE6B-DB74-4799-AD2E-AEDCA15DFDA9"></div>
</div>
<div><span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
</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><br>
</blockquote></div>
</blockquote></div>