Re: draw scatter points over map?

From: Dennis Shea (shea AT XXXXXX)
Date: Wed Jun 30 2004 - 14:45:42 MDT


FYI: the following reply was sent directly to me:

>>I was trying to plot amplitudes using colored points to indicate different
>>amplitude levels. Thanks,

You would have to be a bit more specific but here
are a couple of examples.

see:. http://www.cgd.ucar.edu/csm/support/CSM_Graphics/polyg.shtml
[see example 4]

You can design your own marker if you do not like the standard selection.
[see example 7]

Also, in the loop below u could change marker indices (styles)
rather than have one marker style

==========================================================

   [add to previous post: a map has been created ==> plot]
;********************************
; plot original data
;********************************
   polyres = True
   polyres@gsMarkerIndex = 16 ; polymarker style
   polyres@gsMarkerSizeF = 5. ; polymarker size

   
   do n=0,dimsizes(amp)-1
      if (amp(n).gt.0. .and. amp(n).lt.0.33) then
          polyres@gsMarkerColor ="green"
      end if
      if (amp(n).ge.0.33 .and. amp(n).lt.0.67) then
          polyres@gsMarkerColor ="blue"
      end if
      if (amp(n).ge.0.67 .and. amp(n).lt.1.00) then
          polyres@gsMarkerColor ="red"
      end if
[etc]
      gsn_polymarker(wks,plot,lon(n),lat(n),polyres)
   end do
   
   draw(plot)
   frame(wks)

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Thu Jul 01 2004 - 07:48:34 MDT