[ncl-talk] NCL query

Jatin Kala jatin.kala.jk at gmail.com
Mon Feb 22 03:10:00 MST 2016


Here's a suggestion:

i_save = new(100000,integer)
j_save = new(100000,integer)
counter = 0

do i=0,127
do j=0,364
if(.not.ismissing(z2(i,j)).and.z2(i,j).lt. 0.0)then
       i_save(counter) = i
       j_save(counter) = j
       counter = counter + 1
end if
end do
end do

add_poly= gsn_add_polymarker(wks,plot,i_save,j_save,polyres)
draw(plot)
frame(wks)

On 22/02/2016 3:10 PM, Anusha sathyanadh wrote:
> Dear Sir,
> (haley_at_nyahnyahspammersnyahnyah)
>
> I have seen your reply to the query /to overcome this
>
>    warning:TransformPostDraw: tfPolyDrawList element 0 is invalid /
> /> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid /
> /> warning:TransformPostDraw: tfPolyDrawList element 2 is invalid /
>
>
> like
>
>
>  a = new(3,graphic)
>    a(0) = gsn_add_polygon(wks,plot,x1,y1,gsres)
>    a(1) = gsn_add_polyline(wks,plot,x2,y2,gsres)
>    a(2) = gsn_add_polymarker(wks,plot,x3,y3,gsres)
>
> but it doesnt work for my script as I have to use loop within..Can u 
> help to get out of this trouble?
>
>
> do i=0,127
> do j=0,364
> if(.not.ismissing(z2(i,j)).and.z2(i,j).lt. 0.0)then
> add_poly= gsn_add_polymarker(wks,plot,i,j,polyres)
>
> end if
> draw(plot)
> end do
> end do
> frame(wks)
>
> -- 
> */ANUSHA SATHYANADH
> Senior Research Fellow
> Deparment of Atmospheric and Space Sciences
> Pune university
> /*
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Dr. Jatin Kala
Lecturer in Atmospheric Science
Murdoch University,Perth, Western Australia
Tel: (+618) 9360 6297
http://www.jatinkala.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160222/e7fada31/attachment.html 


More information about the ncl-talk mailing list