udf with z and t

Henrique Barbosa hmjbarbosa at GMAIL.COM
Sun Oct 29 18:30:48 EST 2006


Hi all,

I want to write a UDF that deals with field values varying in
Z and T dimensions. From the grads help files, it seems that
it should work:

http://www.iges.org/grads/gadoc/udf.html

... At least there are fields in the header of the transfer file
that tell if the first and second varying dimensions are either
x, y, z or t.

My function is very simple,  it only reads the transfer file and
print the header info, and returns a undefined field. But when
I call it with fixed (x,y) and varying (Z,T), grads call the function
many times.

I mean, instead of calling the function only once with
the 2D subset:

x=cte, y=cte, z=z_min...z_max,t=t_min...t_max

Grads calls the udf one time for each pair (z,t),
always passing only a single value.

Does anyone know how to pass a varying (Z,T) to a UDF function?

Or is that feature that will only be implemented in the future?

I am using grads-1.9b4, precompiled binaries (rh9),
on a Suse 10.1 intel platform (i386).

Thank you,

Henrique



More information about the gradsusr mailing list