Hi Huseyin,
do i=0, dimsizes(markercodes) - 1
leg_symbol_res_at_gsMarkerIndex = markercodes(i)
leg_symbol_res_at_gsMarkerColor = markercolors(i)
leg_symbol_res_at_gsMarkerSizeF = markersizes(i)
gsn_polymarker_ndc(haritayeri,symbol_x_values(i),symbol_y_values(i),leg_symbol_res)
gsn_text_ndc(haritayeri,labels(i),label_x_values(i),label_y_values(i),leg_label_res)
end do
This is where I am getting a fatal error with your script:
fatal:Subscript out of range, error in subscript #0
fatal:An error occurred reading markercolors
fatal:Execute: Error occurred at or near line 335 in file mk_ve_harita.ncl
The error is occurring because your do loop is running through 7
iterations, but the following arrays are only of size 6:
labels
symbol_y_values
symbol_x_values
label_x_values
label_y_values
markersizes
markercolors
Once I increased each of those arrays to be of size 7
(ex. changed
markercolors = (/"green","blue","blue","red","red","purple"/)
to
markercolors = (/"green","blue","blue","red","red","purple","yellow"/)
)
the script worked fine....
Good luck,
Adam
HUSEYIN OZDEMIR wrote:
> Hi all,
>
> I have a problem with the markers. I want to draw marker (filled
> triangles) on the map, but it gives fatal error. I have attached my ncl
> script. What shall I do to solve it?
>
> Huseyin
>
> ------------------------------------------------------------------------
> Be a better Heartthrob. Get better relationship answers
> <http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433>from
> someone who knows.
> Yahoo! Answers - Check it out.
>
>
> ------------------------------------------------------------------------
>
> FLORYA
> KIRECBURNU
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Jul 12 2007 - 11:48:02 MDT
This archive was generated by hypermail 2.2.0 : Tue Jul 17 2007 - 06:52:01 MDT