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

Home » Public Forums » archive » Passing Data Through CALL_EXTERNAL
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: Passing Data Through CALL_EXTERNAL [message #3936 is a reply to message #3818] Wed, 22 March 1995 06:40 Go to previous message
djk is currently offline  djk
Messages: 2
Registered: March 1995
Junior Member
This is just a follow up to my question concerning passing
multi-dimension arrays using call_external. First I want to thank all
those who responded. The answer is rather simple. One just passes
the multi-dimensioned array as a simple array.

Using the example from my original post:

long junk(argc, argv)
int argc;
void *argv[];
{
long *nx,
*ny;

float *arr;

/* Assign passed in arguments */
arr = (float **) argv[0]; /* array */
nx = (long *) argv[1]; /* X dimensions of array */
ny = (long *) argv[2]; /* Y dimensions of array */

z = arr[ix + iy * nx];
}


Thanks again for all the help!


--

( .
(. ) )
) ( ( David Kendig (Hughes STX)
.________. Operations Manager EGRET/Gamma Ray Observatory
| | __| Code 664, GSFC/NASA
| )) Greenbelt, MD 20771
| | //| (301) 286-7242
`---`-`------'---'
Coffee coffee ... djk@egretop.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Reading USGS DEMs
Next Topic: IDL Ignoring CTRL-C under SunOS

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

Current Time: Fri Oct 10 14:16:07 PDT 2025

Total time taken to generate the page: 0.23941 seconds