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

Home » Public Forums » archive » v8.1 Workbench Path problem?
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
v8.1 Workbench Path problem? [message #77009] Wed, 27 July 2011 10:09 Go to next message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
I have a simple code that includes the following line:

COLORBAR, Position=[0.85, 0.50, 0.87, 0.95], $
Range=[0.0, cmax], NColors=nLevels, /Vertical, $
Format = '(f3.1)', CharSize = char_size, /Right,
Title=variable

When I run the code in the development environment I get the following
error:

% Compiled module: COLORBAR.
% Attempt to call undefined procedure/function: 'COLORBAR'.
% Execution halted at: GLSEA2_TEST 443 /glsea2_test.pro
% $MAIN$

IDL> print, file_which('colorbar.pro')
/Applications/itt/idl/idl81/lib/graphics/colorbar.pro

I've tried fiddling with the path using the preferences menu.
Currently it is set to the default.

I'm not sure what is happening. Can someone point me in the right
direction please? Thanks.
Re: v8.1 Workbench Path problem? [message #77102 is a reply to message #77009] Wed, 27 July 2011 16:45 Go to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
I wouldn't advise putting other paths before <IDL_DEFAULT>. I'd recommend instead getting the latest version of COLORBAR (I think David has incorporated it into the CG library) or compiling your current version of COLORBAR in a startup file (see discussion in this thread: https://groups.google.com/d/msg/comp.lang.idl-pvwave/6ibcyYf UXzA/huEi4vcEovAJ).

mp
Re: v8.1 Workbench Path problem? [message #77106 is a reply to message #77009] Wed, 27 July 2011 11:33 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 27, 2:32 pm, Michael Galloy <mgal...@gmail.com> wrote:
> On 7/27/11 11:09 AM, Barry Lesht wrote:
>
>
>
>
>
>
>
>
>
>> I have a simple code that includes the following line:
>
>>    COLORBAR, Position=[0.85, 0.50, 0.87, 0.95], $
>>            Range=[0.0, cmax], NColors=nLevels, /Vertical, $
>>            Format = '(f3.1)', CharSize = char_size, /Right,
>> Title=variable
>
>> When I run the code in the development environment I get the following
>> error:
>
>> % Compiled module: COLORBAR.
>> % Attempt to call undefined procedure/function: 'COLORBAR'.
>> % Execution halted at: GLSEA2_TEST       443 /glsea2_test.pro
>> %                      $MAIN$
>
>> IDL>  print, file_which('colorbar.pro')
>> /Applications/itt/idl/idl81/lib/graphics/colorbar.pro
>
>> I've tried fiddling with the path using the preferences menu.
>> Currently it is set to the default.
>
>> I'm not sure what is happening.  Can someone point me in the right
>> direction please?  Thanks.
>
> IDL is finding the new graphics COLORBAR function (in the default path),
> but you actually want to call a third-party COLORBAR procedure. To fix,
> add the path to the third-party COLORBAR procedure to your IDL_PATH
> *before* the <IDL_DEFAULT> path in your preferences.

Or, if that was David's colorbar.pro that was intended, use
fsc_colorbar instead, which is just a new name, to avoid that problem.
Re: v8.1 Workbench Path problem? [message #77107 is a reply to message #77009] Wed, 27 July 2011 10:40 Go to previous message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
On Jul 27, 12:32 pm, Michael Galloy <mgal...@gmail.com> wrote:
> On 7/27/11 11:09 AM, Barry Lesht wrote:
>
>
>
>> I have a simple code that includes the following line:
>
>>    COLORBAR, Position=[0.85, 0.50, 0.87, 0.95], $
>>            Range=[0.0, cmax], NColors=nLevels, /Vertical, $
>>            Format = '(f3.1)', CharSize = char_size, /Right,
>> Title=variable
>
>> When I run the code in the development environment I get the following
>> error:
>
>> % Compiled module: COLORBAR.
>> % Attempt to call undefined procedure/function: 'COLORBAR'.
>> % Execution halted at: GLSEA2_TEST       443 /glsea2_test.pro
>> %                      $MAIN$
>
>> IDL>  print, file_which('colorbar.pro')
>> /Applications/itt/idl/idl81/lib/graphics/colorbar.pro
>
>> I've tried fiddling with the path using the preferences menu.
>> Currently it is set to the default.
>
>> I'm not sure what is happening.  Can someone point me in the right
>> direction please?  Thanks.
>
> IDL is finding the new graphics COLORBAR function (in the default path),
> but you actually want to call a third-party COLORBAR procedure. To fix,
> add the path to the third-party COLORBAR procedure to your IDL_PATH
> *before* the <IDL_DEFAULT> path in your preferences.
>
> Mike
> --
> Michael Galloywww.michaelgalloy.com
> Modern IDL, A Guide to Learning IDL:http://modernidl.idldev.com
> Research Mathematician
> Tech-X Corporation

Thank you, Mike. I'm sure that is the problem. Barry
Re: v8.1 Workbench Path problem? [message #77108 is a reply to message #77009] Wed, 27 July 2011 10:32 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/27/11 11:09 AM, Barry Lesht wrote:
> I have a simple code that includes the following line:
>
> COLORBAR, Position=[0.85, 0.50, 0.87, 0.95], $
> Range=[0.0, cmax], NColors=nLevels, /Vertical, $
> Format = '(f3.1)', CharSize = char_size, /Right,
> Title=variable
>
> When I run the code in the development environment I get the following
> error:
>
> % Compiled module: COLORBAR.
> % Attempt to call undefined procedure/function: 'COLORBAR'.
> % Execution halted at: GLSEA2_TEST 443 /glsea2_test.pro
> % $MAIN$
>
> IDL> print, file_which('colorbar.pro')
> /Applications/itt/idl/idl81/lib/graphics/colorbar.pro
>
> I've tried fiddling with the path using the preferences menu.
> Currently it is set to the default.
>
> I'm not sure what is happening. Can someone point me in the right
> direction please? Thanks.
>

IDL is finding the new graphics COLORBAR function (in the default path),
but you actually want to call a third-party COLORBAR procedure. To fix,
add the path to the third-party COLORBAR procedure to your IDL_PATH
*before* the <IDL_DEFAULT> path in your preferences.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PARTVELVEC procedure not overplotting despite setting over keyword, Trouble with OPLOT
Next Topic: PARTVELVEC procedure not overplotti​ng despite setting OVER keyword;Trouble with OPLOT

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

Current Time: Wed Oct 08 15:37:58 PDT 2025

Total time taken to generate the page: 0.00663 seconds