![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, GermanyNew Address! -- Neue Adresse! |
![]() |
FSTRING
Wrapper around STRING function to fix pre-V5.4 1024 formatting size limit
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.
new = fstring(old, [ format, FORMAT = )
OLD = string or number to format, scalar, vector or array
FORMAT = scalar string giving format to pass to the STRING() function
See restrictions on possible formats below.
FORMAT = Format string can alternatively be called as keyword
FSTRING will return a string with the same dimensions
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.
Create a string array of 10000 uniform random numbers formatted as F6.2
IDL> a = fstring( randomu(seed,10000), '(f6.2)')
Written W. Landsman (based on program by D. Zarro) February 2000
Check if VERSION is V5.4 or later W. Landsman January 2002
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]