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

Home » Public Forums » archive » histogram crashes
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
histogram crashes [message #22545] Wed, 15 November 2000 00:00
R.G.S. is currently offline  R.G.S.
Messages: 46
Registered: September 2000
Member
Greetings all,

I have a situation where histogram is crashing on me, in what seems to be
a strange manner. (IDL 5.3.1, on WinNT 4 Workstation SP 5)

Here is info on my data (latitudes):
LAT FLOAT = Array[76, 1624]
IDL> help,lat(*)
<Expression> FLOAT = Array[123424]

range of latitudes: -65.8900 79.9300
min = : 20.0000
There are NAN values in the array.


Here is the offending call to histogram:
hlat = histogram(lat(*),binsize = float(deltalat), min
=float(20),REVERSE_INDICES = R,/nan)

This results in a Norton CrashGuard message and IDL closes.


Of course,the following call to histogram works with no problems:
hlat = histogram(lat(*),binsize = long(deltalat), min =float(-1),/nan)
as does:
hlat = histogram(lat(*),binsize = float(deltalat), min =float(20),/nan)

The difference seems to be that a positive "min" crashes and a negative
"min" is ok when
the reverse_index keyword is called. For my purposes the reverse_indices
keyword
is required.

Anyone run across this before, and are there any fixes?


Cheers,
bob stockwell
stockwell (at) co-ra.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Programming Techniques, 2nd Edition Available
Next Topic: Rotating tick labels

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

Current Time: Wed Oct 08 14:56:29 PDT 2025

Total time taken to generate the page: 0.00603 seconds