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

Home » Public Forums » archive » Re: chi^2 minimisations & calling c
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: chi^2 minimisations & calling c [message #36700 is a reply to message #36697] Tue, 14 October 2003 10:21 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Dan B" wrote...

> Before I go and get Ronn Klings book on calling c from IDL am
> I going to be able to code a chi^2 minimisation routine?

Yes. If you can code it, it will come.

> The c program is already written and needs 6 parameters passed
> to it. It then does its thing and outputs a formatted ascii
> file (the model based on the parameters :D ).

<snip>

> I'm pretty sure that this is going to be possible, and that Ronn's
> book is going to be of some help (p.s. I've seen copies going for $180
> on amazon :eek:) I just want to be sure.

Wow! $180! I'll sell you mine for $100, complete with margin notes and
latte stains. Or, you could go to his website and spend $40.
www.kilvarock.com

As much as I think that every serious IDL programmer (all 7 of us) should
master the dlm, I don't think you would need to go thru the trouble unless
you view this as a fun exercise. CALL_EXTERNAL should work with minimal
effort but it does assume that your functions use the argc-argv calling
convention and this might be where you are getting hung up.

> oh, and I don't suppose anyone is going to be cheeky enough to give me
> a helping head start? :D I've mucked around with call_external, but
> it all goes horribly wrong, as, quite frankly, I don't understand the
> help files.

If you need to go the dlm route because you can't or don't want to make your
function work with CALL_EXTERNAL all you really need to do is wrap your
function inside the dlm. I wish I could point you to a proper example in
the IDL distribution which would illustrate the passing of different data
types back and forth but RSI's effort in this area is really pitiful.
Ronn's book is the way to go.

Good luck!


-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with 3D-Plot
Next Topic: How to get actual widget size?

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

Current Time: Wed Oct 08 18:50:55 PDT 2025

Total time taken to generate the page: 0.00385 seconds