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

Home » Public Forums » archive » RESOLVE_ROUTINE essentially unusable on linux?
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
RESOLVE_ROUTINE essentially unusable on linux? [message #77189] Wed, 10 August 2011 11:36 Go to next message
Brian Wolven is currently offline  Brian Wolven
Messages: 94
Registered: May 2011
Member
I understand this - linux is case sensitive:

IDL> .compile sis_bin_mapped_data
% Error opening file. File: sis_bin_mapped_data
IDL> .compile SIS_BIN_MAPPED_DATA
% Error opening file. File: SIS_BIN_MAPPED_DATA
IDL> .compile SIS_bin_mapped_data
% Compiled module: SIS_BIN_MAPPED_DATA.

But there seems to be no way to get it to work at all with this approach:

IDL> resolve_routine,/EITHER,'sis_bin_mapped_data'
% Attempt to call undefined procedure/function: 'SIS_BIN_MAPPED_DATA'.
% Execution halted at: $MAIN$
IDL> resolve_routine,/EITHER,'SIS_BIN_MAPPED_DATA'
% Attempt to call undefined procedure/function: 'SIS_BIN_MAPPED_DATA'.
% Execution halted at: $MAIN$
IDL> resolve_routine,/EITHER,'SIS_bin_mapped_data'
% Attempt to call undefined procedure/function: 'SIS_BIN_MAPPED_DATA'.
% Execution halted at: $MAIN$

SIS_bin_mapped_data.pro is in the current working directory. Seems like the only solution is to rename all files in upper case? Am I missing something?
Re: RESOLVE_ROUTINE essentially unusable on linux? [message #77257 is a reply to message #77189] Fri, 12 August 2011 14:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian Wolven writes:

> If you develop and run in the same environment you're
> not likely to have problems. If you need portability,
> you'll have to watch out for gotchas like this when
> going from one OS to another.

To be fair to IDL, there are only about two rules
to achieve portability (and maybe a couple more if
you are writing widget programs):

Rule 1: Pay attention to file names. Save files
in lowercase letters and use file routines (e.g.,
FindFile, File_Search, Dialog_Pickfile) to
construct file names.

Rule 2: Save the current device so you can restore
it before you reset it.

thisDevice = !D.Name
Set_Plot, 'PS'
....
Set_Plot, thisDevice

That's about the extent of it. Everything else, to
ITTVIS's credit, just works. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: RESOLVE_ROUTINE essentially unusable on linux?
Next Topic: map_set projection "from below"?

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

Current Time: Sun Oct 12 04:27:06 PDT 2025

Total time taken to generate the page: 1.11962 seconds