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

Home » Public Forums » archive » Getting error when running a routine using @ in IDL.
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: Getting error when running a routine using @ in IDL. [message #90165 is a reply to message #90162] Wed, 04 February 2015 07:25 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Wednesday, February 4, 2015 at 5:21:46 AM UTC-6, Fabien wrote:
> Hi,
>
> at some point in the script you test for variable "type" being either
> 'BRIGHT','MEDIUM', or 'FAINT'. It seems that at run-time, the variable
> type was something else than those three possibilities.
>
> As a side note, these kind of scripts are quite bad coding practice, IDL
> provides functions, procedures and even classes today ;-)
>
> Cheers

I'll add this too: it's ALWAYS a good idea to include a ELSE clause in the a CASE statement. This is exactly why - when no matches are found.

And, I can't agree with Fabien more: this way of coding is a best messy, and at worse poor coding practice. Just as a practical matter, all those line break/continuation characters would drive me crazy ;-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Exclusively Interactive Computer Programming with Python
Next Topic: Installation Problem of IDL 8.4 & ENVI 5.2 for Mac OS X Yosemite

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

Current Time: Mon Apr 27 11:05:21 PDT 2026

Total time taken to generate the page: 1.67872 seconds