<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Lyndon,<br>
    <br>
    the problem is that your shapefile data does not contain point data
    which is needed by gsn_add_shapefile_polymarkers function <br>
    <br>
    <font color="#3333ff"><a class="moz-txt-link-freetext" href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_shapefile_polymarkers.shtml">http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_shapefile_polymarkers.shtml</a></font><br>
    <br>
    To see what is in your shapefile you can draw the shapefile data
    using the x- and y-values. I've attached your modified script and
    the PNG plot.<br>
    <p class="indent">Hope this helps,<br>
      Karin<br>
    </p>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 03.07.17 um 04:37 schrieb Lyndon
      Mark Olaguera:<br>
    </div>
    <blockquote
cite="mid:CA+V+8dV-qCwaCw4F1rjEtVL5Q8azq9Rzg9Qa0M9fLQ_6LnDRnA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Dear NCL experts,
        <div><br>
        </div>
        <div>I am trying to add point shapefile to a plot using the
          gsn_add_shapefile_polymarkers function in NCL.</div>
        <div><br>
        </div>
        <div>To view the contents of the shapefile I used the
          shape_utils.ncl from the following link:</div>
        <div>
          <div>
            <div class="gmail-m_-5902586075954390952gmail_signature">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr"><br>
                        </div>
                        <div dir="ltr"><font face="comic sans ms,
                            sans-serif"><b><u><a moz-do-not-send="true"
href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml">https://www.ncl.ucar.edu/Applications/shapefiles.shtml</a><br>
                              </u></b></font></div>
                        <div dir="ltr"><br>
                        </div>
                        <div>I tried to plot the shapefile in GIS and it
                          works fine but I still got an error that the
                          geometry attribute should be a point when I
                          plot it in NCL. I am not sure why in the
                          filedump below, the geometry type is
                          "unknown".</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>I attached my script and the files that I
                          am plotting.</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div dir="ltr"><font face="comic sans ms,
                            sans-serif">Variable: a</font>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">Type: file</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">File path:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>may_hgt-hgt_1996-2012_850hPa.nc</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">Number of global attributes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                              0</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">Number of dimensions:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                              2</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">Number of variables:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                              6</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>======================================================================</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Filename:
                              "sig_regpval_1996-2012.shp"</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                Geometry type: unknown</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                # of features: 2906</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                Min/max lat:    -80.00/  82.50</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                Min/max lon:      0.00/ 360.00</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                Variable names and their types:</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    geometry : integer</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    segments : integer</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    x : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    y : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    z : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    CREATED_BY : string</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    AUTHOR : string</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    TYPE : string</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    DESC : string</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    LONGITUDE : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    LATITUDE : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    GRID_VALUE : double</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>======================================================================</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Error:
                              gsn_add_shapefile_polymarkers:
                              geometry_type attribute must be 'point'</font></div>
                          <div dir="ltr"><font face="comic sans ms,
                              sans-serif">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
                                    No shapefile information will be
                              added.</font></div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>I'll appreciate any suggestion on how I
                            can plot this correctly.</div>
                          <div><br>
                          </div>
                          <div>Thank you in advance.</div>
                          <div><br>
                          </div>
                          <div>Lyndz</div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL, CDO
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
URL:      <a class="moz-txt-link-abbreviated" href="http://www.dkrz.de">www.dkrz.de</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
  </body>
</html>