PPPRINT
Name
PPPRINT
Purpose
Pretty print arrays.
Category
Misc, Arrays, Console
Calling Sequence
PPPRINT, array
Inputs
Array: An array. Should work with any basic type. Not sure (yet)
how to handler arrays of pointers or objects or structures.
Keyword Parameters
FORMAT: Provide some control over the formatting of the output
POWER: Set this keyword to print floats like "3.5E-02"
rather than "0.035"
Outputs
The array is printed to the screen, perhaps in a nicer way than
the default IDL print command.
Restrictions
Doesn't work with types such as pointers, objects, or structures.
Procedure
Procedure taken from
http://groups.google.com/group/comp.lang.idl-pvwave/msg/013a8314ce6dcef5
Example
ppprint, [2e3,3.5e-3]
ppprint, [2e3,3.5e-3], /power
ppprint, indgen(10)
ppprint, indgen(10)+998
ppprint, ['a','b','c']
ppprint, ['goodbye','cruel','world']
Modification History
Written by: Ken Mankoff, 2010-04-13