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

Home » Public Forums » archive » IDL issues: poly_fit.pro.
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
IDL issues: poly_fit.pro. [message #83954] Wed, 17 April 2013 07:41 Go to next message
Sreelakshmi S is currently offline  Sreelakshmi S
Messages: 8
Registered: April 2013
Junior Member
Hi
I am new to idl..I have been trying to fit the function poly_fit to my data but each time an error message comes:
% Variable is undefined: POLY_FIT.
% Execution halted at: $MAIN$

Its a lib defined function...
y am i still getting this error?
Re: IDL issues: poly_fit.pro. [message #84020 is a reply to message #83954] Wed, 24 April 2013 05:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sreelakshmi S writes:

>
> The issue is when i try compiling poly-fit it shows error opening the file.
> IDL is not looking into its own lib. But it accesses another lib astrolib. So this I suppose is due to my path defenition. So if you would tell me how to define the path such that IDL looks into both libraries.

Suppose IDL is installed here:

/usr/local/exelis/idl82

And the lib directory is:

/usr/local/exelis/idl82/lib

Then, you could do something like this:

export IDL_PATH='+/usr/local/exelis/idl82/lib/'
export IDL_PATH=$IDL_PATH:'~/coyote/:+~/idlastrosoftware/'

You can add as many directories as you need, separated by colons. The
directories are searched in the order they are specified on your IDL
PATH (!PATH). So, for example, if you were going to add the Coyote
Library, you would add it before the Astronomy Library, since the
Astronomy Library depends on it.

Cheers,

David




--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: IDL issues: poly_fit.pro. [message #84021 is a reply to message #83954] Wed, 24 April 2013 03:13 Go to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Sreelakshmi S <sreelakshmi.s86@gmail.com> wrote:

> The issue is when i try compiling poly-fit it shows error opening the file.
> IDL is not looking into its own lib. But it accesses another lib astrolib. So this I suppose is due to my path defenition. So if you would tell me how to define the path such that IDL looks into both libraries.

You may print the variable !path. On my computer (Windows 7, IDL 7.0) I get:
IDL> print, !path
C:\Program Files (x86)\RSI\IDL70\lib\bridges;C:\Program Files
(x86)\RSI\IDL70\lib\dicomex;C:\Program Files
(x86)\RSI\IDL70\lib\hook;C:\Program Files (x86)\RSI\IDL70\lib\imsl;C:\Program
Files (x86)\RSI\IDL70\lib\itools\components;

[lots of entries removed]

To manage the variable !path you may open the IDL workbench and navigate to

window -> user settings -> IDL -> pathes

Maybe these steps have a slightly different name as I have a German version
of IDL. To repair setting you may click on "Restore standard settings".
If this doesn't help you may run the installer again to repair your
installation.

HTH
Norbert
Re: IDL issues: poly_fit.pro. [message #84023 is a reply to message #83954] Tue, 23 April 2013 20:46 Go to previous message
Sreelakshmi S is currently offline  Sreelakshmi S
Messages: 8
Registered: April 2013
Junior Member
The issue is when i try compiling poly-fit it shows error opening the file.
IDL is not looking into its own lib. But it accesses another lib astrolib. So this I suppose is due to my path defenition. So if you would tell me how to define the path such that IDL looks into both libraries.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Smoothing global land-only data without land/sea boundary errors and then applying a land-mask?
Next Topic: caldat strange behavior CALDAT, JulianDay, NULL, NULL, GetYear

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

Current Time: Wed Oct 08 15:16:49 PDT 2025

Total time taken to generate the page: 0.52920 seconds