[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User selectable lower array bound?



Paul van Delst <paul.vandelst@noaa.gov> writes:

[..] 
> Well, maybe WHERE could work as it does now, but for cases where the start index is not
> zero, a function like the Fortran 90 intrinsic LBOUND() could be used.
> 
> BTW, I never check the WHERE result either, always the COUNT value.

Funny, I [almost] never use the COUNT value.. If you're writing an IF 
test, the information is there anyway..

 ix = where(nonzero)
 IF ix[0] ne -1 THEN ...

-- 
--------------------------------------------------------------------------
Stein Vidar Hagfors Haugan                                    
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO

NASA Goddard Space Flight Center,      Email: shaugan@esa.nascom.nasa.gov
Mail Code 682.3, Bld. 26,  Room G-1,   Tel.:  1-301-286-9028/240-354-6066
Greenbelt, Maryland 20771, USA.	       Fax:   1-301-286-0264
--------------------------------------------------------------------------