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

Home » Public Forums » archive » Re: accessing reverse_indices
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: accessing reverse_indices [message #31008] Wed, 29 May 2002 08:07 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
"Craig Markwardt" <craigmnet@cow.physics.wisc.edu> wrote in message
news:onznyj10rg.fsf@cow.physics.wisc.edu...
>
> What happens if the particular bin is empty? It looks like HISTOBINS
> returns -1 which will gum the works, right?

If an array of bins is requested, then any empty bins will be quietly
ignored. If only one empty bin is requested, or if all requested bins
are empty, then HISTOBIN cannot very well return any valid indices into
the original array. Returning -1 and setting a COUNT variable to 0
seemed like an IDL 'standard' way of handling this situation, sort of.
It is what WHERE() does. Of course I would much prefer to return an
empty array...

This behaviour was the best I could come up with. I'm open to any
suggestions,
Jaco
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Keyword checking
Next Topic: Re: Keyword checking

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

Current Time: Sun Oct 12 01:28:35 PDT 2025

Total time taken to generate the page: 1.44103 seconds