<div dir="ltr"><div>You must study the excellent document by Karin and Michael
Böttinger of <a href="https://www.dkrz.de/">DKRZ</a></div><div>  <a href="http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/"><b>http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/</b></a></div><div><br></div><div>[1]<b> </b>You used <b>gsn_csm_contour</b> which contours the values <b>but does not draw a map!</b><br></div><div>                plot = gsn_csm_contour(wks,cv,res) <br></div><div>     You must use <b>gsn_csm_contour_map </b>to get a map background </div><div>                plot = gsn_csm_contour<b>_map</b>(wks,cv,res) <br></div><div><br></div><div>[2] Basic to NCL: the 'cv' variable <b>*must* </b>have the lat/lon coordinates associated with it.</div><div>     This is how the mapping knows where to plot the data.</div><div><br></div><div>Please *study* the attached. The printVarSummary are there for you to look at the output.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 7:38 AM Atul Saini via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><b>lat=a->lat<br>printVarSummary(lat)</b><br><div><br></div><div>The above given code in ncl itself results into following detail, which contain the units and other things-<br></div><div><br></div><b><i><span style="color:rgb(11,83,148)">Variable: lat<br>Type: float<br>Total Size: 200 bytes<br>            50 values<br>Number of Dimensions: 1<br>Dimensions and sizes:      [lat | 50]<br>Coordinates: <br>            lat: [ 8..20.25]<br>Number Of Attributes: 4<br>  standard_name :      latitude<br>  long_name :        latitude<br>  units :    degrees_north<br>  axis :        Y</span></i></b><br><br><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br></div><div>                           <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 7:59 PM Atul Saini <<a href="mailto:atulsainimail@gmail.com" target="_blank">atulsainimail@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font size="4">Hi dear Karin,</font></div><div><font size="4">              I followed the same as suggested by you but it could not result into expected output. On the other hand I did 'ncdump -h' on the data file and it shows that data file contain the detail of unit of coordinate variable. May be I am still doing mistake somewhere, please suggest what should be done now, when setting lat lon unit do not work?</font></div><div><font size="4"><br></font></div><div><font size="2"><br></font></div><div><font size="2">a=addfile("WesternAgroClimRegion_MonthlySum_1901_2017Jan.nc","r")<br>b=a->rf<br>lat@units = "degrees_north"<br>lon@units = "degrees_east"<br>aveg=dim_avg_n(b,0)<br>stdev=dim_stddev_n(b,0)<br>;stdev = where(stdev.ne.0,stdev,stdev@_FillValue)<br>cv=(stdev/aveg)*100<br>;*****************************************<br>;create plot<br>;*****************************************<br>  wks  = gsn_open_wks("png","CV_map")   ; send graphics to PNG file<br>  res                     = True          ; plot mods desired<br>  res@cnFillOn            = True          ; turn on color<br>  res@cnLinesOn           = False <br>  res@cnFillMode          = "RasterFill"       ; Raster Mode<br>  res@cnFillPalette       = "gui_default" ; set color map<br>  ;res@vpWidthF           = 0.5          ; change aspect ratio of plot<br>  ;res@vpHeightF          = 0.3<br>  res@gsnMaximize         = False          ; maximize plot size<br>  ;res@gsnDraw            = False<br>  ;res@gsnFrame           = False<br>  plot = gsn_csm_contour(wks,cv,res)       ; contour the variable<br>  frame(wks)<br>  end</font></div><div><font size="4"></font><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br></div><div>                           <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 7:16 PM Karin Meier-Fleischer via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    The lat and lon variables don't have a units attribute. <br>
    <br>
    lat@units = "degrees_north"<br>
    lon@units = "degrees_east"<br>
    <br>
    -Karin<br>
    <br>
    <div>Am 05.12.19 um 13:50 schrieb Atul Saini
      via ncl-talk:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div><font size="4">Hi NCL,</font></div>
        <div><font size="4">              In spite of getting the real
            lat-lon label, I am getting the serial number of lat-lon.
            Please suggest the solution!</font></div>
        <div><font size="4"><br>
          </font></div>
        <div><font size="4">Please find the script and data attached
            with this mail.</font></div>
        <div><font size="4">Thanks in advance.</font></div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div dir="ltr">
                                                <div>
                                                  <div dir="ltr">
                                                    <div>
                                                      <div dir="ltr">
                                                        <div>
                                                          <div><font size="4">Regards,</font></div>
                                                          <div><br>
                                                          </div>
                                                          <div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br>
                                                          </div>
                                                          <div>                          
                                                          <br>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
    </blockquote>
    <br>
  </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></blockquote></div>
</blockquote></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></blockquote></div>