<div dir="ltr">Hi Liz,<div>I am looking into this now. I will let you know what I find.</div><div> -dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 4:09 PM, Elizabeth Burakowski <span dir="ltr">&lt;<a href="mailto:burakows@ucar.edu" target="_blank">burakows@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi NCL-Talk, <div><br></div><div>I am trying to use cnConstFEnableFill to stiple regions in a constant fill color/pattern where signal/noise ratios are greater than two.  However, I keep getting an error that says: </div><div><br></div><div>warning:ContourPlotInitialize: scalar field is constant; no contour lines will appear; use cnConstFEnableFill to enable fill</div><div><br></div><div>The plotting resources for my contour plot (res) and my signal:noise ratio plot (snres) using cnConstFEnableFill is below.  The plot turns out perfectly fine, minus the desired stipling.  </div><div><br></div><div>Is there a specific order I must put cnConstFEnableFill in my script that I am missing?  The full script is pretty long, so I&#39;ve snipped out the bulk of it and copied the plot resources information below.  If the full script is desired, it is available here:</div><div><br></div><div>/glade/p/work/burakows/plot/NCL/LC_Diff/biascorr_diff_PD_DF_mult_mean_panel.ncl<br></div><div><br></div><div>Thanks, </div><div><br></div><div>Liz.</div><div><br></div><div><br></div><div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl&quot;</div><div><br></div><div>;==========================================================</div><div>;                         The main code</div><div>;==========================================================</div><div><br></div><div>begin</div><div><br></div><div>&lt;snip&gt;  </div><div><br></div><div><br></div><div>;----------------------------------------------------------------------</div><div>; Plotting options section</div><div>;----------------------------------------------------------------------</div><div><br></div><div> pltType = &quot;ps&quot;                                 ; plot type</div><div>       pltDir = &quot;./&quot;                            ; plot directory</div><div>       pltName = &quot;Panel_biascorr_&quot;+varw+&quot;PD-DF_2011&quot;  <span style="white-space:pre-wrap">        </span>; plot name (ps file)</div><div>       pltPath = pltDir+pltName                 ; plot path</div><div><br></div><div>   wks = gsn_open_wks(pltType,pltPath)              ; create workstation for ps file</div><div>       </div><div>        gsn_define_colormap(wks,&quot;temp_diff_18lev&quot;)</div><div><br></div><div><span style="white-space:pre-wrap">        </span>res = True</div><div><br></div><div><span style="white-space:pre-wrap">        </span>res@gsnDraw<span style="white-space:pre-wrap">                </span>= False</div><div><span style="white-space:pre-wrap">        </span>res@gsnFrame<span style="white-space:pre-wrap">                </span>= False</div><div><br></div><div><span style="white-space:pre-wrap">        </span>res@cnFillOn             = True              ; color plot desired</div><div>    <span style="white-space:pre-wrap">        </span>res@cnLinesOn            = False             ; turn off contour lines</div><div>    <span style="white-space:pre-wrap">        </span>res@cnLineLabelsOn       = False             ; turn off contour labels</div><div>    <span style="white-space:pre-wrap">        </span>res@cnInfoLabelOn<span style="white-space:pre-wrap">        </span> = False<span style="white-space:pre-wrap">        </span>     ; turn off info label (top labels of indvid. plots)</div><div><span style="white-space:pre-wrap">        </span>res@cnFillMode           = &quot;RasterFill&quot;      ; turn raster on</div><div><span style="white-space:pre-wrap">        </span>res@cnLevelSelectionMode = &quot;ManualLevels&quot;  ; Set contour levels manually</div><div><span style="white-space:pre-wrap">        </span>res@cnMinLevelValF       = -4                ; minimum contour (degrees C, or mm)</div><div>        res@cnMaxLevelValF       = 4                 ; maximum contour (degrees C, or mm)</div><div>        res@cnLevelSpacingF      = 0.5               ; contour interval</div><div><br></div><div>    <span style="white-space:pre-wrap">        </span>res@lbLabelBarOn         = False             ; Will turn on in panel later</div><div><span style="white-space:pre-wrap">        </span>res@lbOrientation<span style="white-space:pre-wrap">        </span> = &quot;Horizontal&quot;<span style="white-space:pre-wrap">        </span>     ; Horizontal label bar</div><div><br></div><div>    <span style="white-space:pre-wrap">        </span>res@mpFillOn             = False</div><div>    <span style="white-space:pre-wrap">        </span>res@mpOutlineOn           = True</div><div>    <span style="white-space:pre-wrap">        </span>res@mpOutlineBoundarySets = &quot;AllBoundaries&quot;</div><div>    <span style="white-space:pre-wrap">        </span>res@mpProjection          = &quot;CylindricalEquidistant&quot;</div><div><br></div><div>    <span style="white-space:pre-wrap">        </span>res@mpLimitMode           = &quot;LatLon&quot;           ; required</div><div>    <span style="white-space:pre-wrap">        </span>res@mpMinLatF             = minlat-bndadd</div><div>    <span style="white-space:pre-wrap">        </span>res@mpMaxLatF             = maxlat+bndadd</div><div>    <span style="white-space:pre-wrap">        </span>res@mpMinLonF             = minlon-bndadd</div><div>    <span style="white-space:pre-wrap">        </span>res@mpMaxLonF             = maxlon+bndadd</div><div>    <span style="white-space:pre-wrap">        </span>res@mpCenterLonF          = (minlon + maxlon)*0.5</div><div>    <span style="white-space:pre-wrap">        </span>res@mpCenterLatF          = (minlat + maxlat)*0.5</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>res@gsnLeftString         = &quot;&quot;                ; Turn off left subtitle</div><div>        res@gsnRightString        = &quot;&quot;                ; Turn off right subtitle</div><div>    <span style="white-space:pre-wrap">        </span>res@gsnMajorLatSpacing    = 2</div><div>   <span style="white-space:pre-wrap">        </span>;res@gsnMajorLonSpacing   = 2</div><div>    <span style="white-space:pre-wrap">        </span>res@gsnMinorLonSpacing    = 2</div><div><br></div><div><span style="white-space:pre-wrap">        </span>res@gsnAddCyclic<span style="white-space:pre-wrap">        </span>= False<span style="white-space:pre-wrap">                </span>; regional grid (changes central meridian)/xwo</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span></div><div>   ;----Resources for stipling of significant signal/noise (&gt;2)</div><div>        snres <span style="white-space:pre-wrap">                        </span>= True</div><div><span style="white-space:pre-wrap">        </span>snres@gsnDraw <span style="white-space:pre-wrap">                </span>= False</div><div><span style="white-space:pre-wrap">        </span>snres@gsnFrame<span style="white-space:pre-wrap">                </span>= False</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>snres@lbLabelBarOn<span style="white-space:pre-wrap">        </span>= False<span style="white-space:pre-wrap">                </span>; turn off label bar</div><div><span style="white-space:pre-wrap">        </span>snres@cnInfoLabelOn<span style="white-space:pre-wrap">        </span>= False<span style="white-space:pre-wrap">                </span>; turn off info label</div><div><span style="white-space:pre-wrap">        </span>snres@cnLineLabelsOn<span style="white-space:pre-wrap">        </span>= False<span style="white-space:pre-wrap">                </span>; turn off contour labels</div><div><span style="white-space:pre-wrap">        </span>snres@cnLinesOn<span style="white-space:pre-wrap">                </span>= False<span style="white-space:pre-wrap">                </span>; no contour lines</div><div><span style="white-space:pre-wrap">        </span>snres@cnConstFEnableFill= True<span style="white-space:pre-wrap">                </span>; allow constant values (1=sig) to fill</div><div><span style="white-space:pre-wrap">        </span>snres@cnFillOn<span style="white-space:pre-wrap">                </span>= True<span style="white-space:pre-wrap">                </span>; turn on fill</div><div><span style="white-space:pre-wrap">        </span>snres@cnMonoFillPattern = True<span style="white-space:pre-wrap">                </span>; single fill pattern</div><div><span style="white-space:pre-wrap">        </span>snres@cnFillColor<span style="white-space:pre-wrap">        </span>= &quot;black&quot;<span style="white-space:pre-wrap">        </span>; </div><div><span style="white-space:pre-wrap">        </span>snres@cnFillPattern<span style="white-space:pre-wrap">        </span>= 17<span style="white-space:pre-wrap">                </span>; stipling</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">&lt;snip&gt;</span></div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>plot_diff = gsn_csm_contour_map(wks,Wrfdiff_mean,res)</div><div><span style="white-space:pre-wrap">        </span>plot_sn   = gsn_csm_contour(wks,Wrfdiff_sn2,snres)</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>overlay(plot_diff,plot_sn)</div><div><span style="white-space:pre-wrap">        </span></div></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>