<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Adv,<br>
    <br>
    please always reply to ncl-talk!<br>
    <br>
    Without any information about your data it is not possible to help.<br>
    Please send the output of the printVarSummary(prob1).<br>
    <br>
    Does your data include the selected region of the map?<br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div class="moz-cite-prefix">Am 13.07.15 um 17:30 schrieb Adv:<br>
    </div>
    <blockquote
cite="mid:CAHfbfHtwx5Lnduk1BNtmu148eiwtSvKBkA=5nZwBWe2MWPp0qA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi,<br>
              </div>
              I get a plot not the values. I have attached here the
              output of this script.<br>
            </div>
            I don't understand. <br>
            <br>
          </div>
          Thanks,<br>
        </div>
        Adv<br>
        <div>
          <div>
            <div>
              <div> <br>
              </div>
            </div>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Jul 13, 2015 at 1:53 AM,
            Karin Meier-Fleischer <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Adv,<br>
              <br>
              first you have set<br>
              <br>
                 resP@gsnFrame = False<br>
              <br>
              which will let NCL end without drawing a frame! Delete the
              line and you<br>
              will get your plot.<br>
              <br>
              Bye,<br>
              Karin<br>
              <br>
              Am 13.07.15 um 04:54 schrieb Adv:<br>
              <div>
                <div class="h5">&gt; Hi ,<br>
                  &gt; Could someone point out the error in this script?
                  It plots no values.<br>
                  &gt; Many times i checked, the values are proper. I
                  think graphical part<br>
                  &gt; has issues.<br>
                  &gt;<br>
                  &gt;
                  ;****************************************************<br>
                  &gt;
                  ;****************************************************<br>
                  &gt; load
                  "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
                  &gt;
                  ;***************************************************<br>
                  &gt;<br>
                  &gt;
                  ;***************************************************<br>
                  &gt; begin<br>
                  &gt;
                  ;***************************************************<br>
                  &gt; ;prec*.25x.25cpc1948-present-usa grid<br>
                  &gt; ;others*2.25x2.25cpc1948-present-globalgrid<br>
                  &gt; f1    =
                  addfile("tas_Amon_CCSM4_historical_r3i1p1_185001-200512.nc",<br>
                  &gt; "r")   ; note the "s" of addfile<br>
                  &gt; u1 = f1-&gt;tas<br>
                  &gt; printVarSummary(u1)                            ;
                  [time| 720]x[lat|<br>
                  &gt; 91]x[lon| 180]<br>
                  &gt; ;;;;;;1961-2005;;;;;;;;;;;;;;;;;<br>
                  &gt; ua1=u1(lat|:,lon|:,time|1332:)<br>
                  &gt; ua11=u1(time|1332:,lat|:,lon|:)<br>
                  &gt; printVarSummary(ua1)                            ;
                  [time| 720]x[lat|<br>
                  &gt; 91]x[lon| 180]<br>
                  &gt;    ua11      = ua11-273.15<br>
                  &gt;    ua11@units= "degC"<br>
                  &gt; ;return<br>
                  &gt;    yyyymm = cd_calendar(ua11&amp;time, -1)<br>
                  &gt;    yyyy   = yyyymm/100<br>
                  &gt;    dimx = dimsizes(ua11)<br>
                  &gt;    ntim = dimx(0)                ; all years and
                  months<br>
                  &gt;<br>
                  &gt;    year  = ispan(yyyy(0), yyyy(ntim-2), 1)<br>
                  &gt; print(year)<br>
                  &gt;    nyrs  = dimsizes(year)<br>
                  &gt; print(nyrs)<br>
                  &gt; ;return<br>
                  &gt; ;delete(u)<br>
                  &gt; xann1  = month_to_annual(ua11 , 1)               
                   ; [year| 60]x[lat|<br>
                  &gt; 91]x[lon| 180]<br>
                  &gt; printVarSummary(xann1)<br>
                  &gt; xann1&amp;year  = year<br>
                  &gt; rc1           =
                  regCoef(year,xann1(lat|:,lon|:,year|:))<br>
                  &gt; copy_VarCoords(ua11(0,:,:), rc1)<br>
                  &gt; rc1=rc1*45<br>
                  &gt; tval1 = onedtond(rc1@tval , dimsizes(rc1))<br>
                  &gt; printVarSummary(tval1)<br>
                  &gt; df1   = onedtond(rc1@nptxy, dimsizes(rc1)) - 2<br>
                  &gt; printVarSummary(df1)<br>
                  &gt; b = 0.5<br>
                  &gt; t4=onedtond(0.5,dimsizes(rc1))<br>
                  &gt; prob1  =
                  (1-betainc(df1/(df1+tval1^2),df1/2.0,t4))<br>
                  &gt; print(prob1)<br>
                  &gt; printVarSummary(prob1)<br>
                  &gt; copy_VarCoords(rc1,prob1)<br>
                  &gt; printVarSummary(prob1)<br>
                  &gt; ;return<br>
                  &gt; print(prob1)<br>
                  &gt; print(min(prob1))<br>
                  &gt; print(max(prob1))<br>
                  &gt; printVarSummary(prob1)<br>
                  &gt;
                  ;**************************************************<br>
                  &gt; ; plot parameters<br>
                  &gt;
                  ;**************************************************<br>
                  &gt;<br>
                  &gt;   wks =<br>
                  &gt;
                  gsn_open_wks("x11","NorthernPlains_Significant_AirTemp_1961-2005")
                  ;<br>
                  &gt; Open ps file<br>
                  &gt;   gsn_define_colormap(wks,"gui_default")         
                   ; assign colormap<br>
                  &gt; plot = new(1,graphic)                       ;
                  create a plot array<br>
                  &gt;<br>
                  &gt;   res                       = True<br>
                  &gt; res@gsnDraw             = False           ; don't
                  draw<br>
                  &gt; res@gsnFrame            = False           ; don't
                  advance frame<br>
                  &gt; res@cnInfoLabelOn       = False           ; turn
                  off cn info label<br>
                  &gt;  res@cnLinesOn       = False                   ;
                  turn off contour lines<br>
                  &gt;    res@cnFillOn        = True               ;
                  color plot desired<br>
                  &gt;    res@cnLineLabelsOn  = False<br>
                  &gt;  res@lbLabelBarOn        = False           ; turn
                  off individual cb's<br>
                  &gt; res@txFontHeightF = 0.030                   ;
                  adjust font height of<br>
                  &gt; gsnLeftString/gsnRightString titles<br>
                  &gt; res@cnLevelSelectionMode = "ExplicitLevels"     
                                 ; set<br>
                  &gt; explicit contour levels<br>
                  &gt; ;  res@cnLevels    = (/
                  10,20,30,40,50,60,70,80,90,100/)<br>
                  &gt;   res@cnLevels    = (/
                  0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1/)<br>
                  &gt; res@vpWidthF              = 0.90                ;
                  change aspect ratio<br>
                  &gt; of plot<br>
                  &gt;   res@vpHeightF             = 0.90<br>
                  &gt;   res@vpXF                  = 0.05<br>
                  &gt;   res@vpYF                  = 0.95<br>
                  &gt;<br>
                  &gt; ; map resources for projection<br>
                  &gt; res@mpGridAndLimbOn       = False<br>
                  &gt; res@gsnTickMarksOn = False<br>
                  &gt;
                  ;***************************************************<br>
                  &gt; res@mpLimitMode           = "LatLon"<br>
                  &gt;   res@mpMinLatF             =   40.<br>
                  &gt;   res@mpMaxLatF             =   49.<br>
                  &gt;   res@mpMinLonF             = 242.<br>
                  &gt;   res@mpMaxLonF             =  264.<br>
                  &gt;  res@mpCenterLonF           = 252<br>
                  &gt;<br>
                  &gt;    res@mpPerimOn              = True             
                        ; draw box<br>
                  &gt; around map<br>
                  &gt;<br>
                  &gt; res@mpGeophysicalLineThicknessF = 3.0<br>
                  &gt; res@mpGeophysicalLineColor = "Black"; (/22/)<br>
                  &gt; ;res@mpNationalLineThicknessF  = 3.0<br>
                  &gt; res@mpOutlineBoundarySets =
                  "GeophysicalAndUSStates" ; add state<br>
                  &gt; boundaries<br>
                  &gt; res@mpNationalLineColor  =
                  res@mpGeophysicalLineColor<br>
                  &gt; res@mpUSStateLineThicknessF = 3.0<br>
                  &gt; res@mpUSStateLineColor  =
                  res@mpGeophysicalLineColor<br>
                  &gt;<br>
                  &gt; res@gsnAddCyclic            = False<br>
                  &gt; ; to take advantage of NCL's automatic labeling,
                  we need to assign som<br>
                  &gt; attributes:<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; plot(0) = gsn_csm_contour_map_ce(wks,prob1,res)<br>
                  &gt; ;return<br>
                  &gt; ;************************************************<br>
                  &gt; ; create panel<br>
                  &gt; ;************************************************<br>
                  &gt;   resP                  = True                 
                   ; modify the panel plot<br>
                  &gt;   resP@gsnFrame         = False                 
                  ; don't advance the<br>
                  &gt; frame, so we can use gsn_text_ndc<br>
                  &gt;   resP@gsnPanelLabelBar = True                 
                   ; add common colorbar<br>
                  &gt;   resP@lbLabelFontHeightF = 0.015               
                  ; set font height of<br>
                  &gt; Label Bar labels<br>
                  &gt;   resP@gsnPanelBottom   = 0.2                   
                  ; shrink panel plot<br>
                  &gt; by setting bottom edge of plot<br>
                  &gt;  resP@gsnPanelTop      = 0.9                    ;
                  shrink panel plot by<br>
                  &gt; setting top edge of plot<br>
                  &gt;  resP@pmLabelBarWidthF  = 0.7                 ;
                  make thinner<br>
                  &gt;   resP@pmLabelBarHeightF = 0.09<br>
                  &gt;   resP@gsnPanelYWhiteSpacePercent = 5.         
                   ; increase spacing<br>
                  &gt; along Y-axis between panel plots<br>
                  &gt;   resP@txString   =
                  "NorthernPlains_AirTemperature_Significant_1961-2005"<br>
                  &gt;   gsn_panel(wks,plot,(/1,1/),resP)             
                   ; now draw as one plot<br>
                  &gt;<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; end<br>
                  &gt;<br>
                  &gt; Thank you,<br>
                  &gt; Adv<br>
                </div>
              </div>
              _______________________________________________<br>
              ncl-talk mailing list<br>
              <a moz-do-not-send="true" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
              List instructions, subscriber options, unsubscribe:<br>
              <a moz-do-not-send="true"
                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>
        </div>
      </div>
    </blockquote>
  </body>
</html>