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

Home » Public Forums » archive » passing parameters indirectly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
passing parameters indirectly [message #6908] Tue, 03 September 1996 00:00 Go to next message
kkobayas is currently offline  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 Go to previous message
John Keck is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: map_continent
Next Topic: Re: slow file-handling

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

Current Time: Sat Oct 11 05:05:08 PDT 2025

Total time taken to generate the page: 1.03984 seconds