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

Re: Filling an array




JD Smith <jdsmith@astro.cornell.edu> writes:
> tmp=histogram(total(b,/CUMULATIVE)-1,/BINSIZE,MIN=0,REVERSE_INDICES=ri)
> c=a[ri[0:n_elements(ri)-n_elements(b)-2]-ri[0]]
> 

Bravo.  I guess the juices just weren't flowing last night :-)

Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------