<div dir="ltr"><div class="gmail_default" style="font-size:small">Ruksana,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is very important that you look at your data before you assume that NCL is plotting it incorrectly. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you look at &quot;ppt3&quot; with printVarSummary and printMinMax, you will see that your missing values are not set correctly.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here&#39;s the printVarSummary, which claims the missing value is -99.9:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">Variable: ppt3</font></div><div class="gmail_default"><font face="monospace, monospace">Type: float</font></div><div class="gmail_default"><font face="monospace, monospace">Total Size: 3480 bytes</font></div><div class="gmail_default"><font face="monospace, monospace">            870 values</font></div><div class="gmail_default"><font face="monospace, monospace">Number of Dimensions: 3</font></div><div class="gmail_default"><font face="monospace, monospace">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[time | 1] x [lat | 30] x [lon | 29]</font></div><div class="gmail_default"><font face="monospace, monospace">Coordinates: </font></div><div class="gmail_default"><font face="monospace, monospace">            time: [14400..14400]</font></div><div class="gmail_default"><font face="monospace, monospace">            lat: [15.25..29.75]</font></div><div class="gmail_default"><font face="monospace, monospace">            lon: [  83..  97]</font></div><div class="gmail_default"><font face="monospace, monospace">Number Of Attributes: 5</font></div><div class="gmail_default"><font face="monospace, monospace">  long_name :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>daily precipitation analysis interpolated onto 0.5deg grids [mm/day]</font></div><div class="gmail_default"><font face="monospace, monospace">  units :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>mm/day</font></div><div class="gmail_default"><font face="monospace, monospace">  _FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>-99.9</font></div><div class="gmail_default"><font face="monospace, monospace">  missing_value :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>-99.9</font></div><div class="gmail_default"><font face="monospace, monospace">  level_description :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Earth surface</font></div><div class="gmail_default"><br></div><div class="gmail_default">However, if you do a printMinMax on pp3, you will see a maximum value of 1e+20, which seems suspicious:</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">daily precipitation analysis interpolated onto 0.5deg grids [mm/day] (mm/day) : min=-2497.37   max=1e+20</font></div><div class="gmail_default"><br></div><div class="gmail_default">My guess is that you need to set the missing value of ppt3 to 1e20:</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">ppt3@_FillValue = 1e20</font></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 19, 2016 at 2:35 PM, Ruksana Abedin <span dir="ltr">&lt;<a href="mailto:ruksana.abedin@gmail.com" target="_blank">ruksana.abedin@gmail.com</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"><div><div><div>Hi, <br><br></div>I have plotted a panel of two bias maps. The plot, input files and the script is attached. Problem is although my data is only on land points, on the first bias map, the ocean is colored as orange, which should not be the case. And the maps show few values of the contours on the land points irregularly, but I do not want any values to be shown. Can you please help me to do these two corections? <br><br>Thank you for your time and kind efforts.<br><br></div>Best regards,<br></div>Ruksana <br><div><div><div><br><br><br>begin<br><br>; read in data<br><br>f3=addfile(&quot;.........../WAH_<wbr>APHRO_1998_2007_ANN_sum_<wbr><a href="http://precip_bias.nc">precip_bias.nc</a>&quot;, &quot;r&quot;);<br>f4=addfile(&quot;.........../WAH_<wbr>GPCC_1998_2007_ANN_sum_precip_<wbr><a href="http://bias.nc">bias.nc</a>&quot;, &quot;r&quot;);<br><br>ppt3 = f3-&gt;precip<br>time = f3-&gt;time<br>lat = f3-&gt;lat<br>lon = f3-&gt;lon<br><br>ppt4 = f4-&gt;precip<br>time = f4-&gt;time<br>lat = f4-&gt;lat<br>lon = f4-&gt;lon<br><br>wks = gsn_open_wks(&quot;eps&quot;,&quot;ppt1&quot;)  <br>plot = new(2,graphic)   <br><br>printVarSummary(ppt3)<br>printVarSummary(ppt4)<br><br> gsn_define_colormap(wks,&quot;<wbr>percent_11lev&quot;)      ; choose colormap for bias map<br>  ;gsn_reverse_colormap(wks)<br>  res                          = True<br>  res@gsnDraw                  = False<br>  res@gsnFrame                   = False<br>  res@cnInfoLabelOn            = False <br>  res@cnFillOn                 = True                 ; turn on color<br>  res@cnLinesOn                = False             ; turn off contour lines<br>  res@cnLevelSpacingF          = 0.10              ; contour interval<br>  res@cnFillDrawOrder          = &quot;PreDraw&quot;         ; draw contours first<br>  res@lbLabelStride            = 2                 ; stride on label bar<br>  res@gsnSpreadColors          = True              ; use full colormap<br>  res@gsnSpreadColorEnd        = -3                ; -3 don&#39;t use land color<br>  res@gsnAddCyclic             = False             ; regional data <br>  res@gsnStringFontHeightF     = 0.01              <br>  res@tiMainString             = &quot;&quot;<br>  res@gsnRightString           = &quot;&quot;<br>  ;res@mpProjection            = &quot;LambertConformal&quot;<br>  ;res@gsnMaskLambertConformal = True<br>  res@gsnLeftString            = &quot;&quot;<br>  res@mpMaxLatF                = 30;max(lat)  ; zoom in on region<br>  res@mpMinLatF                = 15;min(lat)<br>  res@mpMinLonF                = 83;min(lon)<br>  res@mpMaxLonF                = 97; max(lon)<br>  res@mpCenterLonF             = 10                ; def is zero<br>  res@mpLandFillColor          = &quot;Transparent&quot;<br>  res@cnLevelSelectionMode= &quot;ManualLevels&quot;<br>  <br>  res@cnMinLevelValF      =  -2150.00       ;for bias maps <br>  res@cnMaxLevelValF      =  4450;100<br>  res@cnLevelSpacingF     = 150 ; 150<br> <br>  res@lbLabelBarOn         = False<br>  res@lbLabelAutoStride   = True<br>  ppt3@_FillValue    = 0.0<br>  ppt3@_FillValue    = -999<br><br>plot(0) = gsn_csm_contour_map(wks,ppt3(<wbr>0,:,:),res)<br>plot(1) = gsn_csm_contour_map(wks,ppt4(<wbr>0,:,:),res)<br><br>;*****************************<wbr>******************************<br>; create panel<br>;*****************************<wbr>******************************<br><br>resP                          = True <br>resP@gsnFrame                 = False <br>resP@gsnMaximize              = True<br>resP@gsnPanelLabelBar         = True<br>resP@lbLabelFontHeightF       = 0.01<br>gsn_panel(wks,plot,(/2,2/),<wbr>resP)          ; now draw as one plot <br><br>end<br><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>