passing parameters indirectly [message #6908] |
Tue, 03 September 1996 00:00  |
kkobayas
Messages: 7 Registered: June 1994
|
Junior Member |
|
|
Hi,
I remember there is a way in IDL where one can pass parameters
indirectly; that is, if procedure A calls procedure B which then
calls procedure C, pass parameters from A to C without modifying
the procedure call in B. Specifically I need to pass extra
parameters to a function called by CURVEFIT. I looked over the
manual but could not find a reference; could someone tell me how
to do this?
- Ken
--
------------------------------------------------------------ -----------------
Ken Kobayashi . "Too low they build,
kkobayas@fas.harvard.edu . who build beneath the stars."
http://stargazer.student.harvard.edu/~ken/ . - Edward Young
|
|
|
Re: passing parameters indirectly [message #6997 is a reply to message #6908] |
Wed, 04 September 1996 00:00  |
John Keck
Messages: 10 Registered: August 1996
|
Junior Member |
|
|
Ken Kobayashi wrote:
> the procedure call in B. Specifically I need to pass extra
> parameters to a function called by CURVEFIT. I looked over the
> manual but could not find a reference; could someone tell me how
> to do this?
I had to do a similar thing with CURVEFIT and found a somewhat simple
solution. By examining the CURVEFIT procedure, I found that it just
passed along *blindly* the "X" variable
( as in Result = CURVEFIT(X, Y, W, A [, Sigmaa]) )
to the function procedure (FUNCT). Thus if you need to pass extra data
to FUNCT you can just pack it into X before you call CURVEFIT. Then
inside your FUNCT, you can unpack X into separate variables.
I hope that is understandable and answers your question.
Regards,
John Keck
|
|
|