<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Adv,<br>
    <br>
    I'd run the script below with another CMIP5 tas_Amon file I had and
    I got a <br>
    plot with data values (colors). The plot is attached.<br>
    <br>
    It is your script but I cleaned it and made some indents which makes
    it more readable.<br>
    Try to run it with your data.<br>
    ;---------------------------------------------------------<br>
    <font color="#3366ff"><tt>begin</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  f1 =
        addfile("$HOME/data/CMIP5/atmos/tas_Amon_MPI-ESM-LR_historical_r3i1p1_185001-200512.nc",
        "r")   ; note the "s" of addfile</tt><tt><br>
      </tt><tt>  u1 = f1-&gt;tas</tt><tt><br>
      </tt><tt>  printVarSummary(u1)                            ; [time|
        720]x[lat| 91]x[lon| 180]</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  ua1=u1(lat|:,lon|:,time|1332:)</tt><tt><br>
      </tt><tt>  ua11=u1(time|1332:,lat|:,lon|:)</tt><tt><br>
      </tt><tt>  printVarSummary(ua1)                            ;
        [time| 720]x[lat| 91]x[lon| 180]</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  ua11       = ua11-273.15</tt><tt><br>
      </tt><tt>  ua11@units = "degC"</tt><tt><br>
      </tt><tt>  </tt><tt><br>
      </tt><tt>  yyyymm = cd_calendar(ua11&amp;time, -1)</tt><tt><br>
      </tt><tt>  </tt><tt><br>
      </tt><tt>  yyyy   = yyyymm/100</tt><tt><br>
      </tt><tt>  dimx   = dimsizes(ua11)</tt><tt><br>
      </tt><tt>  ntim   = dimx(0)                ; all years and months</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  year  = ispan(yyyy(0), yyyy(ntim-2), 1)</tt><tt><br>
      </tt><tt>  print(year)</tt><tt><br>
      </tt><tt>  nyrs  = dimsizes(year)</tt><tt><br>
      </tt><tt>  print(nyrs)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  xann1      = month_to_annual(ua11 , 1)                
        ; [year| 60]x[lat| 91]x[lon| 180]</tt><tt><br>
      </tt><tt>  printVarSummary(xann1)</tt><tt><br>
      </tt><tt>  xann1&amp;year = year</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  rc1        = regCoef(year,xann1(lat|:,lon|:,year|:))</tt><tt><br>
      </tt><tt>  copy_VarCoords(ua11(0,:,:), rc1)</tt><tt><br>
      </tt><tt>  rc1        = rc1*45</tt><tt><br>
      </tt><tt>  tval1      = onedtond(rc1@tval , dimsizes(rc1))</tt><tt><br>
      </tt><tt>  printVarSummary(tval1)</tt><tt><br>
      </tt><tt>  df1        = onedtond(rc1@nptxy, dimsizes(rc1)) - 2</tt><tt><br>
      </tt><tt>  printVarSummary(df1)</tt><tt><br>
      </tt><tt>  b          = 0.5</tt><tt><br>
      </tt><tt>  t4         = onedtond(0.5,dimsizes(rc1))</tt><tt><br>
      </tt><tt>  prob1      = (1-betainc(df1/(df1+tval1^2),df1/2.0,t4))</tt><tt><br>
      </tt><tt>  print(prob1)</tt><tt><br>
      </tt><tt>  printVarSummary(prob1)</tt><tt><br>
      </tt><tt>  copy_VarCoords(rc1,prob1)</tt><tt><br>
      </tt><tt>  printVarSummary(prob1)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  print(prob1)</tt><tt><br>
      </tt><tt>  print(min(prob1))</tt><tt><br>
      </tt><tt>  print(max(prob1))</tt><tt><br>
      </tt><tt>  printVarSummary(prob1)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>;**************************************************</tt><tt><br>
      </tt><tt>; plot parameters</tt><tt><br>
      </tt><tt>;**************************************************</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  wks  =
        gsn_open_wks("png","NorthernPlains_Significant_AirTemp_1961-2005")                 
        ; Open ps file</tt><tt><br>
      </tt><tt>  gsn_define_colormap(wks,"gui_default")           ;
        assign colormap</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  plot = new(1,graphic)                       ; create a
        plot array</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  res                       = True</tt><tt><br>
      </tt><tt>  res@gsnDraw               = False           ; don't
        draw</tt><tt><br>
      </tt><tt>  res@gsnFrame              = False           ; don't
        advance frame</tt><tt><br>
      </tt><tt>  res@gsnAddCyclic          = False</tt><tt><br>
      </tt><tt>  res@gsnTickMarksOn        = False</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  res@lbLabelBarOn          = False           ; turn off
        individual cb's</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  res@txFontHeightF         = 0.030           ; adjust
        font height of gsnLeftString/gsnRightString titles</tt><tt><br>
      </tt><tt>  </tt><tt><br>
      </tt><tt>  res@cnInfoLabelOn         = False           ; turn off
        cn info label</tt><tt><br>
      </tt><tt>  res@cnLinesOn             = False           ; turn off
        contour lines</tt><tt><br>
      </tt><tt>  res@cnFillOn              = True            ; color
        plot desired</tt><tt><br>
      </tt><tt>  res@cnLineLabelsOn        = False</tt><tt><br>
      </tt><tt>  res@cnLevelSelectionMode  = "ExplicitLevels" ; set
        explicit contour levels</tt><tt><br>
      </tt><tt>;  res@cnLevels              = (/
        10,20,30,40,50,60,70,80,90,100/)</tt><tt><br>
      </tt><tt>  res@cnLevels              = (/
        0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1/)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  res@vpWidthF              = 0.90            ; change
        aspect ratio of plot</tt><tt><br>
      </tt><tt>  res@vpHeightF             = 0.90</tt><tt><br>
      </tt><tt>  res@vpXF                  = 0.05</tt><tt><br>
      </tt><tt>  res@vpYF                  = 0.95</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  res@mpGridAndLimbOn       = False</tt><tt><br>
      </tt><tt>  res@mpLimitMode           = "LatLon"</tt><tt><br>
      </tt><tt>  res@mpMinLatF             =   40.</tt><tt><br>
      </tt><tt>  res@mpMaxLatF             =   49.</tt><tt><br>
      </tt><tt>  res@mpMinLonF             = 242.</tt><tt><br>
      </tt><tt>  res@mpMaxLonF             =  264.</tt><tt><br>
      </tt><tt>  res@mpCenterLonF          = 252</tt><tt><br>
      </tt><tt>  res@mpPerimOn             = True                    ;
        draw box around map</tt><tt><br>
      </tt><tt>  res@mpGeophysicalLineThicknessF = 3.0</tt><tt><br>
      </tt><tt>  res@mpGeophysicalLineColor      = "Black"; (/22/)</tt><tt><br>
      </tt><tt>;  res@mpNationalLineThicknessF   = 3.0</tt><tt><br>
      </tt><tt>  res@mpOutlineBoundarySets       =
        "GeophysicalAndUSStates" ; add state boundaries</tt><tt><br>
      </tt><tt>  res@mpNationalLineColor         =
        res@mpGeophysicalLineColor</tt><tt><br>
      </tt><tt>  res@mpUSStateLineThicknessF     = 3.0</tt><tt><br>
      </tt><tt>  res@mpUSStateLineColor          =
        res@mpGeophysicalLineColor</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  plot(0) = gsn_csm_contour_map_ce(wks,prob1,res)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>;************************************************</tt><tt><br>
      </tt><tt>; create panel</tt><tt><br>
      </tt><tt>;************************************************</tt><tt><br>
      </tt><tt>  resP                    = True                   ;
        modify the panel plot</tt><tt><br>
      </tt><tt>;  resP@gsnFrame           = False                  ;
        don't advance the frame, so we can use gsn_text_ndc</tt><tt><br>
      </tt><tt>  resP@gsnPanelLabelBar   = True                   ; add
        common colorbar</tt><tt><br>
      </tt><tt>  resP@lbLabelFontHeightF = 0.015                  ; set
        font height of Label Bar labels</tt><tt><br>
      </tt><tt>  resP@gsnPanelBottom     = 0.2                    ;
        shrink panel plot by setting bottom edge of plot</tt><tt><br>
      </tt><tt>  resP@gsnPanelTop        = 0.9                    ;
        shrink panel plot by setting top edge of plot</tt><tt><br>
      </tt><tt>  resP@pmLabelBarWidthF   = 0.7                    ; make
        thinner</tt><tt><br>
      </tt><tt>  resP@pmLabelBarHeightF  = 0.09</tt><tt><br>
      </tt><tt>  resP@gsnPanelYWhiteSpacePercent = 5.             ;
        increase spacing along Y-axis between panel plots</tt><tt><br>
      </tt><tt>  resP@txString           =
        "NorthernPlains_AirTemperature_Significant_1961-2005"</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  gsn_panel(wks,plot,(/1,1/),resP)                 ; now
        draw as one plot</tt><tt><br>
      </tt><tt><br>
      </tt><tt>end</tt></font><br>
    ;---------------------------------------------------------<br>
    <br>
    Bye, Karin<br>
    <br>
    <div class="moz-cite-prefix">Am 13.07.15 um 21:33 schrieb Adv:<br>
    </div>
    <blockquote
cite="mid:CAHfbfHuLL9i5J4OsOe6GhO-Sj9+S8uBFDrMhoApwDkks+3_+=g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
            </div>
            Sorry about it. Here is the printVarSummary out.<br>
            Variable: prob1<br>
            Type: float<br>
            Total Size: 221184 bytes<br>
                        55296 values<br>
            Number of Dimensions: 2<br>
            Dimensions and sizes:    [lat | 192] x [lon | 288]<br>
            Coordinates: <br>
                        lat: [ -90..  90]<br>
                        lon: [   0..358.75]<br>
          </div>
          Thanks<br>
        </div>
        Adv<br>
        <div>
          <div>
            <div><br>
              <br>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Jul 13, 2015 at 1:44 PM, 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">
            <div 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>Am 13.07.15 um 17:30 schrieb Adv:<br>
              </div>
              <div>
                <div class="h5">
                  <blockquote 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>&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"
                              target="_blank">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>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>