<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Geeta,<div class=""><br class=""></div><div class="">the error message is telling you what is wrong - type mismatch in gsn_add_polymarker. </div><div class=""><br class=""></div><div class="">Take a look at the gsn_add_polymarker function page:</div><div class=""><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml" class="">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml</a></div><div class=""><br class=""></div><div class="">gsn_add_polymarker wants to have a numeric type for x and y (in your case lon and lat).</div><div class=""><br class=""></div><div class=""><pre 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;" class="">function gsn_add_polymarker (
                wks [1] : graphic,
                plot [1] : graphic,
                x [*] : numeric,
                y [*] : numeric,
                res [1] : logical
        )
        <a 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;" class="">return_val</a> [1] : graphic</pre><div class="">In your script the lat and lon arrays are defined as strings but gsn_add_polymarker </div><div class="">expects a numeric type. Use tofloat() function for lat and lon conversion.</div><div class=""><br class=""></div><div class="">Bye,</div><div class="">Karin</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">Am 19.09.2015 um 21:02 schrieb Geeta Geeta <<a href="mailto:geetag54@yahoo.com" class="">geetag54@yahoo.com</a>>:</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_1442679668002_7866" class=""><span id="yui_3_16_0_1_1442679668002_7877" class="">dear users.</span></div><div dir="ltr" id="yui_3_16_0_1_1442679668002_7884" class=""><span id="yui_3_16_0_1_1442679668002_7877" class=""> I am trying to plot station data and taking help of the some available scripts. (station_4.ncl)<br class=""></span></div><div id="yui_3_16_0_1_1442679668002_7992" dir="ltr" class=""><br class=""><span id="yui_3_16_0_1_1442679668002_7877" class=""></span></div><div id="yui_3_16_0_1_1442679668002_7994" dir="ltr" class=""><span id="yui_3_16_0_1_1442679668002_7877" class="">I am getting this error</span></div><div id="yui_3_16_0_1_1442679668002_7946" dir="ltr" class=""><span id="yui_3_16_0_1_1442679668002_7877" class="">fatal:Argument type mismatch on argument (2) of (gsn_add_polymarker) can not coerce<br class="" id="yui_3_16_0_1_1442679668002_7955">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 62 in file stn-v2.ncl<br class="" id="yui_3_16_0_1_1442679668002_7957"><br class="" id="yui_3_16_0_1_1442679668002_7959">I am attaching my script. <br class="" id="yui_3_16_0_1_1442679668002_7961">Kindly suggest what s the problem. <br class=""></span></div><div dir="ltr" class=""><br class=""><span id="yui_3_16_0_1_1442679668002_7877" class=""></span></div><div dir="ltr" class=""><span id="yui_3_16_0_1_1442679668002_7877" class="">when I execute this I get following......</span></div><div id="yui_3_16_0_1_1442679668002_8107" dir="ltr" class=""><span id="yui_3_16_0_1_1442679668002_7877" class="">(4) 77.24<br class="" id="yui_3_16_0_1_1442679668002_8016"><br class="" id="yui_3_16_0_1_1442679668002_8018"><br class="" id="yui_3_16_0_1_1442679668002_8020">Variable: hgt<br class="" id="yui_3_16_0_1_1442679668002_8022">Type: string<br class="" id="yui_3_16_0_1_1442679668002_8024">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442679668002_8026"> 5 values<br class="" id="yui_3_16_0_1_1442679668002_8028">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442679668002_8030">Dimensions and sizes: [5]<br class="" id="yui_3_16_0_1_1442679668002_8032">Coordinates: <br class="" id="yui_3_16_0_1_1442679668002_8034">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442679668002_8036"> _FillValue : <br class="" id="yui_3_16_0_1_1442679668002_8038">(0) hgt <br class="" id="yui_3_16_0_1_1442679668002_8040">(1) 919.6 <br class="" id="yui_3_16_0_1_1442679668002_8042">(2) 882.2 <br class="" id="yui_3_16_0_1_1442679668002_8044">(3) 900 <br class="" id="yui_3_16_0_1_1442679668002_8046">(4) 900 <br class="" id="yui_3_16_0_1_1442679668002_8048"><br class="" id="yui_3_16_0_1_1442679668002_8050"><br class="" id="yui_3_16_0_1_1442679668002_8052">Variable: rf<br class="" id="yui_3_16_0_1_1442679668002_8054">Type: string<br class="" id="yui_3_16_0_1_1442679668002_8056">Total Size: 20 bytes<br class="" id="yui_3_16_0_1_1442679668002_8058"> 5 values<br class="" id="yui_3_16_0_1_1442679668002_8060">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1442679668002_8062">Dimensions and sizes: [5]<br class="" id="yui_3_16_0_1_1442679668002_8064">Coordinates: <br class="" id="yui_3_16_0_1_1442679668002_8066">Number Of Attributes: 1<br class="" id="yui_3_16_0_1_1442679668002_8068"> _FillValue : <br class="" id="yui_3_16_0_1_1442679668002_8070">(0) rf<br class="" id="yui_3_16_0_1_1442679668002_8072">(1) 5.6<br class="" id="yui_3_16_0_1_1442679668002_8074">(2) 67.<br class="" id="yui_3_16_0_1_1442679668002_8076">(3) 0.1<br class="" id="yui_3_16_0_1_1442679668002_8078">(4) 0.1<br class="" id="yui_3_16_0_1_1442679668002_8080">fatal:Argument type mismatch on argument (2) of (gsn_add_polymarker) can not coerce<br class="" id="yui_3_16_0_1_1442679668002_8082">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 62 in file stn-v2.ncl<br class="" id="yui_3_16_0_1_1442679668002_8084"><br class="" id="yui_3_16_0_1_1442679668002_8086"> <br class="" id="yui_3_16_0_1_1442679668002_8088">I am attaching my input file and the script. </span></div><div id="yui_3_16_0_1_1442679668002_7909" class=""> </div><div id="yui_3_16_0_1_1442679668002_7911" class="signature">Geeta.</div></div></div><span id="cid:8d830809-1629-adcb-a55e-84c689112800@yahoo.com"><stn-v2.ncl></span><span id="cid:5adc5b31-2472-977d-1005-fbd595ab5ee5@yahoo.com"><input1.txt></span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></span></div></span></div></span></div></div></div></div></div></div></div><br class=""></body></html>