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

Home » Public Forums » archive » Re: Array subscripting oddity
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: Array subscripting oddity [message #1277 is a reply to message #1274] Tue, 17 August 1993 08:47 Go to previous message
harris is currently offline  harris
Messages: 3
Registered: August 1993
Junior Member
glenn@atm.ch.cam.ac.uk (Glenn Carver) writes:

> I thought I understand array subscripting in PV-wave but this bit of
> code has got me foxed. I was trying to figure out what was going wrong
> with a procedure and finally tracked it down to a problem that I can
> demonstrate using the following example:

> WAVE> a=indgen(3)
> WAVE> print,a
> 0 1 2
> WAVE> m=[45,99]
> WAVE> print,m
> 45 99
> WAVE> a(m)=255
> WAVE> print,a
> 0 1 255

> Now, I would have thought that because both elements of 'm' are more
> than the size of 'a', no element of 'a' would have been assigned?
> The values '45' and '99' are completely arbitrary. You can set them to
> anything you like.

> If someone could explain what's going on here (maybe it's a bug??) I'd
> be most grateful. The configuration is PV-wave 4.01 running on SunOS
> 4.1.3.

> Thanks.

> ---
> ------------------------------------------------------------ ------------
> Dr Glenn Carver Email: glenn@atm.ch.cam.ac.uk
> Centre for Atmospheric Science Phone: (44-223) 336521
> Chemistry Department Fax : (44-223) 336362
> Cambridge University
> UK
> ------------------------------------------------------------ ------------

Yes, you found a bug. VNI knows about it and it should be fixed shortly.

Mitch
--
Mitch Harris | New Technology Inc.
(205)-544-2846 | 700 Boulevard South, #401
drvax3!harris@freedom.msfc.nasa.gov | Huntsville, AL 35802
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug in tvtwm (X11R5 version)
Next Topic: PV-WAVE POINT+CLICK

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

Current Time: Sat Oct 11 00:53:30 PDT 2025

Total time taken to generate the page: 1.11647 seconds