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

Home » Public Forums » archive » General help
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
General help [message #53319] Tue, 03 April 2007 14:34
D.Kochman@gmail.com is currently offline  D.Kochman@gmail.com
Messages: 7
Registered: October 2006
Junior Member
I've worked on and off with IDL for a little while, but consider
myself still quite the programming and IDL newbie, so any help will be
appreciated. I was handed an uncommented program, and more or less
had to figure out how it worked, and modify it to solve problems I
give it.

Pretty much the program uses Craig Markwardt's mpfit procedures to fit
a curve via iterative deconvolution.

After modifying the equation that it was supposed to fit, I was
feeling good about myself....now not so much.

Anyways, heres what I don't understand. The program consists of a
basewidget with a bunch of parameters, and a Function that returns
values to mpfit.

I had wanted to add in a couple things to the widget - namely a "start
bin" and a "stop bin" to define where the iterative deconvolution was
fitting.

So I added the appropriate place on the GUI, and threw the variables
into my main datastructure.

However, when I try to run the program, if the variables aren't given
values in the function 'func', the program won't compile, even if they
are given initial values in the data structure.

So lets say I do something like

arr=DBLARR(51,dg.numberbins)

It doesn't like it in my function, unless I define inside of it (the
function) an initial value, despite the fact that the datastructure dg
- has

numberbins:double(1024.0) $

And gives the error "array must be greater than 0"

What I want more or less is to be able to enter the number of bins
into the GUI, and have this value passed back to the program, so that
when I reload the program, it reloads the data file with a select
number of bins. Why isn't this happening?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: removing substring from string array
Next Topic: anisotropic diffusion filters or?

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

Current Time: Wed Oct 08 13:54:35 PDT 2025

Total time taken to generate the page: 0.00416 seconds