<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 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 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 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 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 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>
<br>
<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 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="gmail-m_6400829349194253848moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL: <a 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>
<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></div>