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

Re: findng array[3] in array[3,n]

JD Smith (jdsmith@astro.cornell.edu) writes:
> I can't say it's elegant, but:
> where(total(rebin(b,n_elements(b),(size(a,/DIMENSIONS))[1],/SAMP) eq
> a,1) eq n_elements(b))
> The rule is, when comparing arrays, you must expand the smaller to the
> size of the larger.

I'm curious, JD. Are you any good with crossword puzzles?
I'm looking for a seven letter word that ....  :-)



David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155