Dorita,
If both sets of vectors are in the same coordinate space, then you can use the "overlay" procedure.
You didn't say whether these were vectors that are over a map, or just vectors. If they are just vectors, then you simply create both plots and call "overlay":
vector1= gsn_csm_vector(wks,u1,v1,res1)
vector2= gsn_csm_vector(wks,u2,v2,res2)
overlay(vector1,vector2) ; vector2 is now part of vector1
draw(vector1) ; this will draw both vector1 and vector2
frame(wks)
If these are vectors over a map, then only one set of vectors can be over a map, and it must be the plot that gets overlaid on:
vector1= gsn_csm_vector_map(wks,u1,v1,res1) ; vectors over a map
vector2= gsn_csm_vector(wks,u2,v2,res2) ; vectors only
overlay(vector1,vector2) ; vector2 is now part of vector1
draw(vector1) ; this will draw both vector1 and vector2
frame(wks)
For more examples, see:
http://www.ncl.ucar.edu/Applications/overlay.shtml
--Mary
On Oct 14, 2013, at 1:01 AM, Dorita Rostkier-Edelstein <drostkier@yahoo.com> wrote:
> Hi,
> Does anybody know how to overlay two sets of vectors? I have tried to read both, etc, and I get only on the plot. I know I am missing something but don't know what.
> Thanks,
> Dorita
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 14 08:46:02 2013
This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT