[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
New Address!   --   Neue Adresse!
[Uni logo]


FSTRING Source code in fstring.pro

FSTRING

Name
    FSTRING
Purpose
    Wrapper around STRING function to fix pre-V5.4 1024 formatting size limit
Explanation
    Prior to V5.4, the intrinsic STRING() function had a size limit of 1024
    elements. FSTRING() works around this by breaking a larger array into 1024 element
    element chunks.
Calling Sequence
    new = fstring(old, [ format, FORMAT = )
Input Parameters
    OLD = string or number to format, scalar, vector or array
Optional String
    FORMAT = scalar string giving format to pass to the STRING() function
             See restrictions on possible formats below.
Keyword Parameters
    FORMAT  = Format string can alternatively be called as keyword
Output Parameters
    FSTRING will return a string with the same dimensions
Restrictions
    Because FSTRING breaks up the formatting into 1024 element chunks, problems
    can arise if the number of formatting elements does not evenly divide
    into 1024.    For example, if format = '(i6,f6.2,e12.6)', (i.e. three
    formatting elements)  then both the 1023rd and 1024th element will be
    formatted as I6.
Example
    Create a string array of 10000 uniform random numbers formatted as F6.2
    IDL> a = fstring( randomu(seed,10000), '(f6.2)')
Revision History
     Written W. Landsman (based on program by D. Zarro)  February 2000
     Check if VERSION is V5.4 or later   W. Landsman     January 2002

Last modified by pro2html on 2002 January 02 at 05:56 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically