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

Home » Public Forums » archive » get IDL to issue warning or throw error for mismatched arrays
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: get IDL to issue warning or throw error for mismatched arrays [message #94046 is a reply to message #93331] Wed, 04 January 2017 19:25 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, June 16, 2016 at 10:59:02 AM UTC-4, Markus Schmassmann wrote:
> is there any way to get IDL to issue a warning or throw an error in for
> mismatched arrays like those below?
>
> indgen(2,2)+indgen(3,3)

Just letting off steam here. I know that IDL does not have the ability to throw a warning for mismatched arrays. But I just embarrassed myself by reporting results based on a division y = a/b where a,b were both supposed to be 4096 x 4096 arrays. But I forgot to trim variable b from size 4100 x 4100 so I was dividing different sized arrays (and not getting any error from IDL).

I suppose there are times when one wants to divide different size arrays. I just can't think of any.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8,2 cannot call ENVI function
Next Topic: Mismatch between video frame dimensions and stream using Coyote graphics

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

Current Time: Wed Oct 08 19:23:26 PDT 2025

Total time taken to generate the page: 0.00419 seconds