<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Lyndon,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">[Thanks Karin for helping out with this.]</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is the first time I&#39;ve seen a shapefile that didn&#39;t have a &quot;geometry_type&quot; of &quot;point&quot;, &quot;polyline&quot; or &quot;polygon&quot;.  As Karin pointed out, the shapefile should still plot just fine, but I will modifiy the gsn_add_shapefile_xxxx routines so they are not so restrictive. Instead of quitting with an error, I&#39;ll have them print a warning.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 8:29 AM, Lyndon Mark Olaguera <span dir="ltr">&lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@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"><p dir="ltr">Hi Karin,</p>
<p dir="ltr">I got it very clearly..Thank you so much.</p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">Lyndon</p></font></span><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On 3 Jul 2017 22:40, &quot;Karin Meier-Fleischer&quot; &lt;<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Lyndon,<br>
    <br>
    the projection is not the problem I just used the
    cylindrical-equidistant projection to see the global map.<br>
    <br>
    The function gsn_add_shapefile_polymarkers reads the shapefile and
    scan the global file attribute geometry_type. If it doesn&#39;t exist it
    directly returns to the main script printing the error message.<br>
    There are two ways to go on, you can copy and edit the
    gsn_add_shapefile_polymarkers function or you can draw the
    polymarkers as I did in the modified script using the
    gsn_add_polymarker function.<br>
    <br>
    Bye, Karin<br>
    <br>
    <div class="m_9027460880460316193m_8169411515678208655moz-cite-prefix">Am 03.07.17 um 13:24 schrieb Lyndon
      Mark Olaguera:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div>
            <div class="m_9027460880460316193m_8169411515678208655gmail_signature">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div>Dear Karin,</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Thank you for the help. Actually, I was
                            able to plot this successfully by editing
                            the shapefile attribute manually in QGIS. I
                            need to plot it in orthographic projection
                            (Similar to the attached).</div>
                          <div><br>
                          </div>
                          <div>Is it possible to specify the &quot;geometry
                            type&quot; within the code (or edit the shapefile
                            attribute?) after reading the shapefile?</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Many thanks,</div>
                          <div><br>
                          </div>
                          <div>Lyndz</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="gmail_quote">On Mon, Jul 3, 2017 at 8:09 PM, Karin
            Meier-Fleischer <span dir="ltr">&lt;<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>&gt;</span>
            wrote:<br>
            <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"> 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="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-txt-link-freetext" href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_shapefile_polymarkers.shtml" target="_blank">http://ncl.ucar.edu/Document/G<wbr>raphics/Interfaces/gsn_add_sha<wbr>pefile_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&#39;ve attached
                your modified script and the PNG plot.<br>
                <p class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848indent">Hope this
                  helps,<br>
                  Karin<br>
                </p>
                <br>
                <br>
                <div class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-cite-prefix">Am
                  03.07.17 um 04:37 schrieb Lyndon Mark Olaguera:<br>
                </div>
                <blockquote type="cite">
                  <div>
                    <div class="m_9027460880460316193m_8169411515678208655gmail-h5">
                      <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="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-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 href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/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 &quot;unknown&quot;.</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="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>may_hgt-hgt_1996-2012_850hPa.n<wbr>c</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">Number of
                                              global attributes:<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                              0</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">Number of
                                              dimensions:<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                              2</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">Number of
                                              variables:<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                              6</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>==============================<wbr>==============================<wbr>==========</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Filename:
&quot;sig_regpval_1996-2012.shp&quot;</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                Geometry type: unknown</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                # of features: 2906</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                Min/max lat:    -80.00/
                                               82.50</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                Min/max lon:      0.00/
                                              360.00</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                Variable names and their
                                              types:</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    geometry : integer</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    segments : integer</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    x : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    y : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    z : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    CREATED_BY : string</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    AUTHOR : string</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    TYPE : string</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    DESC : string</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    LONGITUDE : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    LATITUDE : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    GRID_VALUE : double</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>==============================<wbr>==============================<wbr>==========</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Error:
gsn_add_shapefile_polymarkers: geometry_type attribute must be &#39;point&#39;</font></div>
                                          <div dir="ltr"><font face="comic sans ms,
                                              sans-serif">(0)<span class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>
                                                    No shapefile
                                              information will be added.</font></div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div>I&#39;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="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848mimeAttachmentHeader"></fieldset>
                      <br>
                    </div>
                  </div>
                  <pre>______________________________<wbr>_________________
ncl-talk mailing list
<a class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    

    <pre class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-signature" cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL, CDO
Application Support

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

Phone:    <a href="tel:+49%2040%20460094126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax:      <a href="tel:+49%2040%20460094270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail:   <a class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL:      <a class="m_9027460880460316193m_8169411515678208655gmail-m_6400829349194253848moz-txt-link-abbreviated" href="http://www.dkrz.de" target="_blank">www.dkrz.de</a>

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


______________________________<wbr>_________________

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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a>


</blockquote></div>
</div></div>



</blockquote>
<pre class="m_9027460880460316193m_8169411515678208655moz-signature" cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL, CDO
Application Support

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

Phone:    <a href="tel:+49%2040%20460094126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax:      <a href="tel:+49%2040%20460094270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail:   <a class="m_9027460880460316193m_8169411515678208655moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL:      <a class="m_9027460880460316193m_8169411515678208655moz-txt-link-abbreviated" href="http://www.dkrz.de" target="_blank">www.dkrz.de</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre></div></blockquote></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>