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

Home » Public Forums » archive » size(/dimen) that automatically fills in extra dimensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
size(/dimen) that automatically fills in extra dimensions [message #91241] Sat, 20 June 2015 20:38 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Before I write a quick routine that does this, it seems like someone must have done this already:

Does anyone have a drop-in replacement for SIZE(/DIMEN) that automatically fills in missing trailing dimensions with 1?

I.e. I have an array A that is always 3xN, but N could be 1, 2, or 3. I want to find out N, but

Size(A, /DIMEN)[1]

fails if N eq 1 because IDL drops the final dimension.

(even better: this would be a nice switch for the official SIZE function to have, if anyone is listening)

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: formatting y-axis when plotting relative frequency using cgHistoplot
Next Topic: problem in reading unformatted data from a FORTRAN file

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

Current Time: Wed Oct 08 09:19:27 PDT 2025

Total time taken to generate the page: 0.00560 seconds