<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body 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'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="moz-cite-prefix">Am 03.07.17 um 13:24 schrieb Lyndon
Mark Olaguera:<br>
</div>
<blockquote
cite="mid:CA+V+8dWKizPLZYB_5DrGdYeX==U1LZ6tEDpG6udkfvtBEJLYnQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div>
<div class="gmail_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 "geometry
type" 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"><<a
moz-do-not-send="true"
href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>></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 moz-do-not-send="true"
class="gmail-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/<wbr>Graphics/Interfaces/gsn_add_<wbr>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="gmail-m_6400829349194253848indent">Hope this
helps,<br>
Karin<br>
</p>
<br>
<br>
<div class="gmail-m_6400829349194253848moz-cite-prefix">Am
03.07.17 um 04:37 schrieb Lyndon Mark Olaguera:<br>
</div>
<blockquote type="cite">
<div>
<div class="gmail-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="gmail-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
moz-do-not-send="true"
href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml"
target="_blank">https://www.ncl.ucar.edu/<wbr>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-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>may_hgt-hgt_1996-2012_850hPa.<wbr>nc</font></div>
<div dir="ltr"><font
face="comic sans ms,
sans-serif">Number of
global attributes:<span class="gmail-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="gmail-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="gmail-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="gmail-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="gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Filename:
"sig_regpval_1996-2012.shp"</font></div>
<div dir="ltr"><font
face="comic sans ms,
sans-serif">(0)<span class="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-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="gmail-m_6400829349194253848gmail-Apple-tab-span" style="white-space:pre-wrap">        </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-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'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="gmail-m_6400829349194253848mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
ncl-talk mailing list
<a moz-do-not-send="true" class="gmail-m_6400829349194253848moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a moz-do-not-send="true" class="gmail-m_6400829349194253848moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<pre class="gmail-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 moz-do-not-send="true" href="tel:+49%2040%20460094126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax: <a moz-do-not-send="true" href="tel:+49%2040%20460094270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail: <a moz-do-not-send="true" class="gmail-m_6400829349194253848moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL: <a moz-do-not-send="true" class="gmail-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 moz-do-not-send="true" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a moz-do-not-send="true" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a>
</blockquote></div>
</div></div>
</blockquote>
<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>