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

Re: array dimensions



Francesco (francesco.spada@jrc.it) writes:

> Hi to everybody,
> 
> 	I have an array
> 
> myarray fltarr[dimx,dimy,dimz]
> 
> How can I get the value of dimx, dimy and dimz?
> 
> Whith n_elements I have only the total number.

    dimensions = Size(myarray, /Dimensions)

Cheers,

David
-- 
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