<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Geeta,</div><div class=""><br class=""></div><div class="">the markers were not plotted because the plot will be created before the polymarker were drawn.&nbsp;</div><div class="">You have to set the resource <b class="">res@gsnFrame = False</b>.</div><div class=""><br class=""></div><div class="">I’ve written a short script just to show you how to handle ASCII data and how to draw the&nbsp;</div><div class="">polymarker onto of the map.</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" color="#0042aa" class="">;*********** Load Libraries ************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"&nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"&nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"&nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">;**************************************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">begin</font></div><div class=""><font face="Courier New" color="#0042aa" class="">;***************************************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">; User Input</font></div><div class=""><font face="Courier New" color="#0042aa" class="">;***************************************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;diri &nbsp; &nbsp;= "./" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; input directory</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;fili &nbsp; &nbsp;= "input_new.txt" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; input file</font></div><div class=""><font face="Courier New" color="#0042aa" class="">;***************************************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">; Read ASCII data</font></div><div class=""><font face="Courier New" color="#0042aa" class="">;***************************************************************</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;tStr &nbsp; &nbsp; &nbsp;= asciiread(diri+fili, -1,"string")</font></div><div class=""><br class=""></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;delim = " "</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;lat &nbsp; = tofloat(str_get_field(tStr,1,delim))</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;lon &nbsp; = tofloat(str_get_field(tStr,2,delim))</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;hgt &nbsp; = tofloat(str_get_field(tStr,3,delim))</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;rf &nbsp; &nbsp;= tofloat(str_get_field(tStr,4,delim))</font></div><div class=""><font face="Courier New" color="#0042aa" class=""><br class=""></font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;wks=gsn_open_wks("ps","stn-v2")</font></div><div class=""><br class=""></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= &nbsp;True</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@gsnDraw &nbsp; &nbsp;= &nbsp;False</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@gsnFrame &nbsp; = &nbsp;False</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@mpMinLatF &nbsp;= &nbsp; 0.0</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@mpMaxLatF &nbsp;= &nbsp;20.0</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@mpMinLonF &nbsp;= &nbsp;60.0</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res@mpMaxLonF &nbsp;= &nbsp;80.0</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;plot = gsn_csm_map(wks,res)</font></div><div class=""><font face="Courier New" color="#0042aa" class=""><br class=""></font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res_mark &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= &nbsp;True &nbsp;&nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res_mark@gsMarkerIndex &nbsp;= &nbsp;2 &nbsp;&nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res_mark@gsMarkerSizeF &nbsp;= &nbsp;0.01</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;res_mark@gsMarkerColor &nbsp;= "red"</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;dum =gsn_add_polymarker(wks,plot,lon,lat,res_mark)</font></div><div class=""><font face="Courier New" color="#0042aa" class=""><br class=""></font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;draw(plot)</font></div><div class=""><font face="Courier New" color="#0042aa" class="">&nbsp; &nbsp;frame(wks)</font></div><div class=""><font face="Courier New" color="#0042aa" class="">end &nbsp;</font></div></div><div class=""><br class=""></div><div class="">Bye,</div><div class="">Karin</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Am 20.09.2015 um 11:58 schrieb Geeta Geeta &lt;<a href="mailto:geetag54@yahoo.com" class="">geetag54@yahoo.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1442741230380_3634" class=""><span id="yui_3_16_0_1_1442741230380_3910" class="">thanks karin. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_3747" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">I tried a few things&nbsp; ;</span></div><div id="yui_3_16_0_1_1442741230380_3911" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">1. changed the string variables to float.&nbsp; But The markers were not plotted. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_3912" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">Got the following warning message. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_4215" class=""><span id="yui_3_16_0_1_1442741230380_3764" class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_1_1442741230380_3921" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">Copyright (C) 1995-2014 - All Rights Reserved<br class="" id="yui_3_16_0_1_1442741230380_3947">&nbsp;University Corporation for Atmospheric Research<br class="" id="yui_3_16_0_1_1442741230380_3949">&nbsp;NCAR Command Language Version 6.2.1<br class="" id="yui_3_16_0_1_1442741230380_3951">&nbsp;The use of this software is governed by a License Agreement.<br class="" id="yui_3_16_0_1_1442741230380_3953">&nbsp;See <a href="http://www.ncl.ucar.edu/" class="">http://www.ncl.ucar.edu/</a> for more details.<br class="" id="yui_3_16_0_1_1442741230380_3955"><br class="" id="yui_3_16_0_1_1442741230380_3957">Variable: tStr<br class="" id="yui_3_16_0_1_1442741230380_3959">Type: string<br class="" id="yui_3_16_0_1_1442741230380_3961">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_3963">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_3965">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_3967">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_3969">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_3971">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_3973">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_3975"><br class="" id="yui_3_16_0_1_1442741230380_3977"><br class="" id="yui_3_16_0_1_1442741230380_3979">Variable: temptStr<br class="" id="yui_3_16_0_1_1442741230380_3981">Type: string<br class="" id="yui_3_16_0_1_1442741230380_3983">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_3985">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_3987">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_3989">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_3991">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_3993">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_3995">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_3997">(0)&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_3999">(1)&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_4001">(2)&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_4003">(3)&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_4005">(4)&nbsp;&nbsp;&nbsp; missing<br class="" id="yui_3_16_0_1_1442741230380_4007">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value<br class="" id="yui_3_16_0_1_1442741230380_4009">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value<br class="" id="yui_3_16_0_1_1442741230380_4011">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value<br class="" id="yui_3_16_0_1_1442741230380_4013">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value<br class="" id="yui_3_16_0_1_1442741230380_4015"><br class="" id="yui_3_16_0_1_1442741230380_4017"><br class="" id="yui_3_16_0_1_1442741230380_4019">Variable: lat<br class="" id="yui_3_16_0_1_1442741230380_4021">Type: string<br class="" id="yui_3_16_0_1_1442741230380_4023">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_4025">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_4027">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_4029">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_4031">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_4033">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_4035">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4037">(0)&nbsp;&nbsp;&nbsp; lat&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4039">(1)&nbsp;&nbsp;&nbsp; 12.57<br class="" id="yui_3_16_0_1_1442741230380_4041">(2)&nbsp;&nbsp;&nbsp; 12.3 <br class="" id="yui_3_16_0_1_1442741230380_4043">(3)&nbsp;&nbsp;&nbsp; 13.06<br class="" id="yui_3_16_0_1_1442741230380_4045">(4)&nbsp;&nbsp;&nbsp; 13.06<br class="" id="yui_3_16_0_1_1442741230380_4047"><br class="" id="yui_3_16_0_1_1442741230380_4049"><br class="" id="yui_3_16_0_1_1442741230380_4051">Variable: lon<br class="" id="yui_3_16_0_1_1442741230380_4053">Type: string<br class="" id="yui_3_16_0_1_1442741230380_4055">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_4057">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_4059">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_4061">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_4063">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_4065">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_4067">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4069">(0)&nbsp;&nbsp;&nbsp; lon&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4071">(1)&nbsp;&nbsp;&nbsp; 77.38<br class="" id="yui_3_16_0_1_1442741230380_4073">(2)&nbsp;&nbsp;&nbsp; 78.18<br class="" id="yui_3_16_0_1_1442741230380_4075">(3)&nbsp;&nbsp;&nbsp; 77.24<br class="" id="yui_3_16_0_1_1442741230380_4077">(4)&nbsp;&nbsp;&nbsp; 77.24<br class="" id="yui_3_16_0_1_1442741230380_4079"><br class="" id="yui_3_16_0_1_1442741230380_4081"><br class="" id="yui_3_16_0_1_1442741230380_4083">Variable: hgt<br class="" id="yui_3_16_0_1_1442741230380_4085">Type: string<br class="" id="yui_3_16_0_1_1442741230380_4087">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_4089">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_4091">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_4093">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_4095">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_4097">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_4099">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4101">(0)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; hgt&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4103">(1)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 919.6 <br class="" id="yui_3_16_0_1_1442741230380_4105">(2)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 882.2 <br class="" id="yui_3_16_0_1_1442741230380_4107">(3)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 900&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4109">(4)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 900&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4111"><br class="" id="yui_3_16_0_1_1442741230380_4113"><br class="" id="yui_3_16_0_1_1442741230380_4115">Variable: rf<br class="" id="yui_3_16_0_1_1442741230380_4117">Type: string<br class="" id="yui_3_16_0_1_1442741230380_4119">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_4121">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="" id="yui_3_16_0_1_1442741230380_4123">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442741230380_4125">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="" id="yui_3_16_0_1_1442741230380_4127">Coordinates: <br class="" id="yui_3_16_0_1_1442741230380_4129">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442741230380_4131">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="" id="yui_3_16_0_1_1442741230380_4133">(0)&nbsp;&nbsp;&nbsp; rf<br class="" id="yui_3_16_0_1_1442741230380_4135">(1)&nbsp;&nbsp;&nbsp; 5.6<br class="" id="yui_3_16_0_1_1442741230380_4137">(2)&nbsp;&nbsp;&nbsp; 67.<br class="" id="yui_3_16_0_1_1442741230380_4139">(3)&nbsp;&nbsp;&nbsp; 0.1<br class="" id="yui_3_16_0_1_1442741230380_4141">(4)&nbsp;&nbsp;&nbsp; 0.1<br class="" id="yui_3_16_0_1_1442741230380_4143"><br class="" id="yui_3_16_0_1_1442741230380_4145"><br class="" id="yui_3_16_0_1_1442741230380_4147">Variable: lat_fl<br class="" id="yui_3_16_0_1_1442741230380_4149">Type: float<br class="" id="yui_3_16_0_1_1442741230380_4151">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442741230380_4153"><a id="yui_3_16_0_1_1442741230380_3943" href="http://www.ncl.ucar.edu/" class="">http://www.ncl.ucar.edu/</a><br class=""></span></div><div id="yui_3_16_0_1_1442741230380_4275" class=""><span id="yui_3_16_0_1_1442741230380_3764" class=""><br class=""></span></div><div id="yui_3_16_0_1_1442741230380_4276" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">2.&nbsp; Seeing this error, I changed my data file (input_new.txt) attached&nbsp; in which I removed the top string</span></div><div id="yui_3_16_0_1_1442741230380_4312" class=""><br class=""><span id="yui_3_16_0_1_1442741230380_3764" class=""></span></div><div id="yui_3_16_0_1_1442741230380_4490" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">but still the the dots/markers are not plotted. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_4491" class=""><br class=""><span id="yui_3_16_0_1_1442741230380_3764" class=""></span></div><div id="yui_3_16_0_1_1442741230380_4492" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">3. Sending the script and the input files. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_4493" class=""><br class=""><span id="yui_3_16_0_1_1442741230380_3764" class=""></span></div><div id="yui_3_16_0_1_1442741230380_4494" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">pls suggest. <br class=""></span></div><div id="yui_3_16_0_1_1442741230380_5002" class=""><span id="yui_3_16_0_1_1442741230380_3764" class="">thanks</span></div><div id="yui_3_16_0_1_1442741230380_3635" class="">&nbsp;</div><div id="yui_3_16_0_1_1442741230380_3636" class="signature">Geeta.</div>  <br class=""><div class="qtdSeparateBR"><br class=""><br class=""></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" class=""> <div dir="ltr" class=""> <font face="Arial" size="2" class=""> On Sunday, 20 September 2015 1:35 AM, Karin Meier-Fleischer &lt;<a href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a>&gt; wrote:<br class=""> </font> </div>  <br class=""><br class=""> <div class="y_msg_container"><div id="yiv4394483854" class=""><div class="">Hi Geeta,<div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class="yiv4394483854">the error message is telling you what is wrong - type mismatch in gsn_add_polymarker.&nbsp;</div><div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class="yiv4394483854">Take a look at the gsn_add_polymarker function page:</div><div class="yiv4394483854"><a rel="nofollow" shape="rect" class="yiv4394483854" target="_blank" href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml</a></div><div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class="yiv4394483854">gsn_add_polymarker wants to have a numeric type for x and y (in your case lon and lat).</div><div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class="yiv4394483854"><pre class="yiv4394483854" style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;">function gsn_add_polymarker (
                wks  [1] : graphic,  
                plot [1] : graphic,  
                x    [*] : numeric,  
                y    [*] : numeric,  
                res  [1] : logical   
        )

        <a rel="nofollow" shape="rect" class="yiv4394483854" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/return_val.shtml" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133, 45, 133);font-family:verdana, sans-serif;">return_val</a> [1] :  graphic</pre><div class="yiv4394483854">In your script the lat and lon arrays are defined as strings but gsn_add_polymarker&nbsp;</div><div class="yiv4394483854">expects a numeric type. Use tofloat() function for lat and lon conversion.</div><div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class="yiv4394483854">Bye,</div><div class="yiv4394483854">Karin</div><div class="yiv4394483854"><br class="yiv4394483854" clear="none"></div><div class=""><blockquote class="yiv4394483854" type="cite"><div class="yiv4394483854">Am 19.09.2015 um 21:02 schrieb Geeta Geeta &lt;<a rel="nofollow" shape="rect" class="yiv4394483854" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt;:</div><br class="yiv4394483854Apple-interchange-newline" clear="none"><div class="yiv4394483854"><div class="yiv4394483854yqt2693507693" id="yiv4394483854yqt10793"><div class="yiv4394483854"><div class="yiv4394483854" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7866"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">dear users.</span></div><div class="yiv4394483854" dir="ltr" id="yiv4394483854yui_3_16_0_1_1442679668002_7884"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">&nbsp;I am trying to plot station data and taking help of the some available scripts. (station_4.ncl)<br class="yiv4394483854" clear="none"></span></div><div class="yiv4394483854" dir="ltr" id="yiv4394483854yui_3_16_0_1_1442679668002_7992"><br class="yiv4394483854" clear="none"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877"></span></div><div class="yiv4394483854" dir="ltr" id="yiv4394483854yui_3_16_0_1_1442679668002_7994"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">I am getting this error</span></div><div class="yiv4394483854" dir="ltr" id="yiv4394483854yui_3_16_0_1_1442679668002_7946"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">fatal:Argument type mismatch on argument (2) of (gsn_add_polymarker) can not coerce<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7955" clear="none">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 62 in file stn-v2.ncl<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7957" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7959" clear="none">I am attaching my script. <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7961" clear="none">Kindly suggest what s the problem. <br class="yiv4394483854" clear="none"></span></div><div class="yiv4394483854" dir="ltr"><br class="yiv4394483854" clear="none"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877"></span></div><div class="yiv4394483854" dir="ltr"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">when I execute this I get following......</span></div><div class="yiv4394483854" dir="ltr" id="yiv4394483854yui_3_16_0_1_1442679668002_8107"><span class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7877">(4)&nbsp;&nbsp;&nbsp; 77.24<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8016" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8018" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8020" clear="none">Variable: hgt<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8022" clear="none">Type: string<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8024" clear="none">Total Size: 20 bytes<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8026" clear="none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8028" clear="none">Number of Dimensions: 1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8030" clear="none">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8032" clear="none">Coordinates: <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8034" clear="none">Number Of Attributes: 1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8036" clear="none">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8038" clear="none">(0)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; hgt&nbsp;&nbsp; <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8040" clear="none">(1)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 919.6 <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8042" clear="none">(2)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 882.2 <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8044" clear="none">(3)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 900&nbsp;&nbsp; <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8046" clear="none">(4)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 900&nbsp;&nbsp; <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8048" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8050" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8052" clear="none">Variable: rf<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8054" clear="none">Type: string<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8056" clear="none">Total Size: 20 bytes<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8058" clear="none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 values<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8060" clear="none">Number of Dimensions: 1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8062" clear="none">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [5]<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8064" clear="none">Coordinates: <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8066" clear="none">Number Of Attributes: 1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8068" clear="none">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; <br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8070" clear="none">(0)&nbsp;&nbsp;&nbsp; rf<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8072" clear="none">(1)&nbsp;&nbsp;&nbsp; 5.6<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8074" clear="none">(2)&nbsp;&nbsp;&nbsp; 67.<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8076" clear="none">(3)&nbsp;&nbsp;&nbsp; 0.1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8078" clear="none">(4)&nbsp;&nbsp;&nbsp; 0.1<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8080" clear="none">fatal:Argument type mismatch on argument (2) of (gsn_add_polymarker) can not coerce<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8082" clear="none">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 62 in file stn-v2.ncl<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8084" clear="none"><br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8086" clear="none">&nbsp;<br class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_8088" clear="none">I am attaching my input file and the script. </span></div><div class="yiv4394483854" id="yiv4394483854yui_3_16_0_1_1442679668002_7909">&nbsp;</div><div class="yiv4394483854signature" id="yiv4394483854yui_3_16_0_1_1442679668002_7911">Geeta.</div></div></div></div><span class="">&lt;stn-v2.ncl&gt;</span><span class="">&lt;input1.txt&gt;</span>_______________________________________________<br class="yiv4394483854" clear="none">ncl-talk mailing list<br class="yiv4394483854" clear="none"><a rel="nofollow" shape="rect" class="yiv4394483854" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br class="yiv4394483854" clear="none">List instructions, subscriber options, unsubscribe:<br class="yiv4394483854" clear="none"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="yiv4394483854" clear="none"></div></blockquote></div><div class="yiv4394483854"><div class="yiv4394483854" style="letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;"><div class="yiv4394483854" style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div class="yiv4394483854" style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div class="yiv4394483854" style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div class="yiv4394483854" style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><span class="yiv4394483854Apple-style-span" style="border-collapse:separate;border-spacing:0px;"></span><div class="yiv4394483854" style="word-wrap:break-word;"><span class="yiv4394483854Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"></span><div class="yiv4394483854" style="word-wrap:break-word;"><span class="yiv4394483854Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"></span><div class="yiv4394483854" style="word-wrap:break-word;"><br class="yiv4394483854" clear="none"></div></div></div></div></div></div></div></div></div></div><br class="yiv4394483854" clear="none"></div></div><br class=""><br class=""></div>  </div> </div>  </div></div></div><span id="cid:c73838b0-41aa-c5ed-a306-f50103f8073a@yahoo.com">&lt;stn-v2.ncl&gt;</span><span id="cid:ea1c3ee4-c025-15bf-bcdf-c667b0b67bfe@yahoo.com">&lt;input1.txt&gt;</span><span id="cid:705a64e9-cc34-ea85-2b8e-f5e68bef6033@yahoo.com">&lt;input_new.txt&gt;</span></div></blockquote></div><div apple-content-edited="true" class=""><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>