<div dir="ltr"><div dir="ltr">Hi Jalal,<div>As you switched to using gsn_add_polyline/gsn_add_polymarker, my previous advice will not work. The gs resources do not allow one to specify multiple colors for multiple entries. Looking at your script, it looks to me like you are only drawing one storm path, but your graphic shows multiple. stormLat/stormLon look like single dimensioned arrays. (Maybe I am misreading your code though.)</div><div><br></div><div>In any case, assuming you have multiple tracks, you need to loop over each track, setting each track a different color along the way:</div><div>; ntracks is the number of tracks to be plotted</div><div><br></div><div>colors = (/"red","blue","green","yellow"/) ; and so on and so on</div><div>d1 = new(ntracks,graphic)</div><div>d2 = d1</div><div>do gg = 0,ntracks-1 ; loop over each track</div><div> resp@gsLineColor = colors(gg)</div><div> amres@gsMarkerColor = colors(gg)</div><div> d1(gg) = gsn_add_polyline(wks,map,stormLon,stormLat,resp)</div> d2(gg) = gsn_add_polymarker(wks,map,stormLon,stormLat,amres)<br><div>end do</div><div>draw(map)</div><div>frame(wks)</div><div><br></div><div>For the colors, you can alternatively go old school and read in a colormap directly and just refer to color indices:</div><div>gsn_define_colormap(wks,"srip_reanalysis") ; only has 19 colors</div><div>; (no need to set a colors array)</div><div><div>do gg = 0,ntracks-1 ; loop over each track</div><div> resp@gsLineColor = gg+2</div></div><div> amres@gsMarkerColor = gg+2<br></div></div><div><br></div><div>Anyway, the above should at the very least be able to get you started. Good luck!</div><div>Adam</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 6:52 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sorry, I forgot to add the updated script. Please see attached. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 26 Jan 2021 at 07:59, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jalal,<div>You did not send an updated version of your script, so I can only address what you are doing by looking at the script attached to your initial ncl-talk email. Assuming that you are drawing all the tracks with a single gsn_csm_xy plot call, you will need to set the color of each marker using the xyMarkerColors resource. </div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/xy.shtml#xyMarkerColors" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/xy.shtml#xyMarkerColors</a><br></div><div>An example of doing this can be seen in XY example 37 here:</div><div><a href="http://www.ncl.ucar.edu/Applications/xy.shtml#ex37" target="_blank">http://www.ncl.ucar.edu/Applications/xy.shtml#ex37<br></a></div><div>Hope that helps!</div><div>Adam</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 18, 2021 at 6:52 AM Md. Jalal Uddin via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<br><div><br></div><div>I have solved the previous issue. However, I am still facing a problem. All typhoons are getting one line (attached figure), but every typhoon should have a different line. </div><div><br></div><div>Any suggestions would be appreciated. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 17 Jan 2021 at 12:28, Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am getting a map for only one typhoon instead of all (attached figure). I followed the ibtracs_1.ncl example (<a href="https://www.ncl.ucar.edu/Applications/Scripts/ibtracs_1.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/ibtracs_1.ncl</a>). I need to modify the following code.</div><div><br></div><div>ID = 2<br> year = 2019</div><div><br clear="all"><div>if( ID.ge.2 ) then <br> stormInd = ind( ( year.eq.stormYear ).and.( ID.eq.stormID ) )<br> else<br> stormInd = ind( <a href="http://stormID.gt.ID" target="_blank">stormID.gt.ID</a> ) <br> end if<br><br> stormLat = Latitude(stormInd)<br> stormLon = Longitude(stormInd)<br></div><div><br></div><div>The full code and data have been added in the attachment. </div><div><br></div><div>Best regards,</div><div>Jalal</div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><span style="font-family:verdana,sans-serif"><font size="2" color="#000000">Md. Jalal Uddin</font></span></b></div><div dir="ltr"><div><span style="font-family:verdana,sans-serif"><font size="2">Founder and Director of Research Society (<a href="https://researchsociety20.org/founder-and-director/" target="_blank">https://researchsociety20.org/founder-and-director/</a>)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">PhD candidate - Atmospheric Physics and Atmospheric Environment (NUIST)<span style="background-color:rgb(0,0,0)"><span></span></span></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">M.Sc. in Applied Meteorology (NUIST)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">B.Sc. in Disaster Management (PSTU)</font></span></div><div><span style="font-family:verdana,sans-serif"><font size="2">Email: <a href="mailto:dmjalal90@nuist.edu.cn" target="_blank">dmjalal90@nuist.edu.cn</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Personal website: <a href="https://dmjalal90.weebly.com/" target="_blank">https://dmjalal90.weebly.com/</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Research gate profile: <a href="https://www.researchgate.net/profile/Md_Uddin125" target="_blank">https://www.researchgate.net/profile/Md_Uddin125</a> <br></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">YouTube channel: <a href="http://www.youtube.com/c/MdJalalUddindmjalal90" target="_blank">http://www.youtube.com/c/MdJalalUddindmjalal90</a> <br></font></span></div></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><span style="font-family:verdana,sans-serif"><font size="2" color="#000000">Md. Jalal Uddin</font></span></b></div><div dir="ltr"><div><span style="font-family:verdana,sans-serif"><font size="2">Founder and Director of Research Society (<a href="https://researchsociety20.org/founder-and-director/" target="_blank">https://researchsociety20.org/founder-and-director/</a>)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">PhD candidate - Atmospheric Physics and Atmospheric Environment (NUIST)<span style="background-color:rgb(0,0,0)"><span></span></span></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">M.Sc. in Applied Meteorology (NUIST)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">B.Sc. in Disaster Management (PSTU)</font></span></div><div><span style="font-family:verdana,sans-serif"><font size="2">Email: <a href="mailto:dmjalal90@nuist.edu.cn" target="_blank">dmjalal90@nuist.edu.cn</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Personal website: <a href="https://dmjalal90.weebly.com/" target="_blank">https://dmjalal90.weebly.com/</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Research gate profile: <a href="https://www.researchgate.net/profile/Md_Uddin125" target="_blank">https://www.researchgate.net/profile/Md_Uddin125</a> <br></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">YouTube channel: <a href="http://www.youtube.com/c/MdJalalUddindmjalal90" target="_blank">http://www.youtube.com/c/MdJalalUddindmjalal90</a> <br></font></span></div></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><span style="font-family:verdana,sans-serif"><font size="2" color="#000000"><img src="https://docs.google.com/uc?export=download&id=14nrMzGdY7LSGGJh7vha0PS2STqGLOyPp&revid=0B0CrmA2xRa4XS2F1Ymk0Q1dYZzZFQkg2SWNhOHlUYnRtT0kwPQ" width="96" height="96"></font></span></b></div><div dir="ltr"><b><span style="font-family:verdana,sans-serif"><font size="2" color="#000000">Md. Jalal Uddin</font></span></b></div><div dir="ltr"><div><span style="font-family:verdana,sans-serif"><font size="2">Founder and Director of Research Society (<a href="https://researchsociety20.org/founder-and-director/" target="_blank">https://researchsociety20.org/founder-and-director/</a>)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">PhD candidate - Atmospheric Physics and Atmospheric Environment (NUIST)<span style="background-color:rgb(0,0,0)"><span></span></span></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">M.Sc. in Applied Meteorology (NUIST)</font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">B.Sc. in Disaster Management (PSTU)</font></span></div><div><span style="font-family:verdana,sans-serif"><font size="2">Email: <a href="mailto:dmjalal90@nuist.edu.cn" target="_blank">dmjalal90@nuist.edu.cn</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Personal website: <a href="https://dmjalal90.weebly.com/" target="_blank">https://dmjalal90.weebly.com/</a></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Research gate profile: <a href="https://www.researchgate.net/profile/Md_Uddin125" target="_blank">https://www.researchgate.net/profile/Md_Uddin125</a> <br></font></span></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">YouTube channel: <a href="http://www.youtube.com/c/MdJalalUddindmjalal90" target="_blank">http://www.youtube.com/c/MdJalalUddindmjalal90</a> <br></font></span></div></div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font size="2">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div></div>