comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ??% TRIGRID: X, Y, or Z array dimensions are incompatible?? what the....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ??% TRIGRID: X, Y, or Z array dimensions are incompatible?? what the.... [message #17510 is a reply to message #17501] Mon, 18 October 1999 00:00 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
This gives an error because a,b, and c have to have the same number of
elements - you have to have one and only one value of c for each [a,b]
coordinate pair. Try

gridData = trigrid(a, b, c[*,0], ang)

Todd Bowers wrote:

> Why does this give me an error? I'm just trying to
> test the gridding routines to get a feel for them
> before I dive in with real data.
>
> IDL> a = [0.0,1.0,2.2]
> IDL> b = [1.1,2.8,3.6]
> IDL> c = [ [0.0,1.1,2.2], [1.0,2.1,3.2], [2.0,3.1,4.2] ]
> IDL> triangulate, a, b, ang
> IDL> gridData = trigrid(a, b, c, ang)
> % TRIGRID: X, Y, or Z array dimensions are incompatible
> % Execution halted at: $MAIN$
>
> huh?
[Message index]
 
Read Message
Read Message
Previous Topic: IDL's handling of LOGICAL quantities (WHERE)
Next Topic: Re: saving plots as .eps

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 04:55:31 PDT 2025

Total time taken to generate the page: 0.48440 seconds