skip() function in x-direction only & not y-direction

Stephen R McMillan smcmillan at PLANALYTICS.COM
Thu Mar 5 23:30:53 EST 2009


Pablo,
You are correct in that your three examples will skip a grid point in both 
x and y.  If your expression has a single "skip" value, GrADS will skip 
equally in both directions.  To skip differently (or one, and not the 
other), you must specify skip values for both.  For example:

'd skip(u,2,1);v'  will display every other in x direction, but all in y 
direction.

Reference:  http://grads.iges.org/grads/gadoc/gadocindex.html. 

Hope this helps!
Stephen McMillan




Pablo Romero <romero619 at HOTMAIL.COM> 
Sent by: GRADSUSR at LIST.CINECA.IT
03/05/2009 10:09 PM
Please respond to
GRADSUSR at LIST.CINECA.IT


To
GRADSUSR at LIST.CINECA.IT
cc

Subject
skip() function in x-direction only & not y-direction





Hi,
Im pretty sure this can be done:

I need to use the skip() function on u,v components in a way that will 
only skip in the x-direction (longitude) and not in the y-direction 
(latitude).

example:

the expressions...

'd skip(u,2);skip(v,2)'
'd skip(u,2);v'
'd u;skip(v,2)'

...will all plot "every other" grid point in both x&y directions.

I want to plot "every other" grid point longitudinally (x-direction), 
while still plotting "every point" latitudinally (y-direction).


so, this is what I want to achieve (in matrix form):


(x1,yn),,(x3,yn),,(x5,yn),,(x7,yn)...(xn,yn),,(x{n+2},yn)
...
(x1,y3),,(x3,y3),,(x5,y3),,(x7,y3)...(xn,y3),,(x{n+2},y3)
(x1,y2),,(x3,y2),,(x5,y2),,(x7,y2)...(xn,y2),,(x{n+2},y2)
(x1,y1),,(x3,y1),,(x5,y1),,(x7,y1)...(xn,y1),,(x{n+2},y1)

How can this be accomplished?

Thanks,
P.Romero





_________________________________________________________________
Windows Live? Groups: Create an online spot for your favorite groups to 
meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009




***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.  If you are not the intended recipient, you may not review, copy or distribute this message.  If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090305/f0f349a7/attachment.html 


More information about the gradsusr mailing list