SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

GROUP LABEL TO STRINGS

Name:
    GROUP LABEL TO STRINGS
Type:
    Let Subcommand
Purpose:
    Convert group labels to strings.
Description:
    The GROUP LABEL command can be used to convert previously read character data to group labels. Group labels are primarily used with the TIC MARK LABEL FORMAT and TIC MARK LABEL CONTENT commands.

    It may sometimes be useful to convert these group labels to individual strings to permit greater flexibility in how they are used.

    With this command, you define a base name. Then an integer is appended to the base name to create the individual strings. For example, if the base name is S and there are 10 values in the group label variable, this command will create the strings S1, S2, ..., S10.

    Currently, a maximum of 999 strings can be created with this command.

Syntax:
    LET <sbase> = GROUP LABEL TO STRINGS <ig>
    where <sbase> is the base name for the strings to be created;
    and      <ig> is a previously created group label variable name.
Examples:
    LET SOUT = GROUP LABEL TO STRINGS IG
Note:
    The number of strings generated by this command will be saved in the internal parameter NUMSTRIN.
Note:
    The total number of characters that DATAPLOT can use for storing functions and strings is set when DATAPLOT is built. The current default (11/2008) is 50,000 characters. Previous versions may set this limit at 1,000 or 10,000 characters. This limit applies to the combined number of characters for all functions and strings.

    The current maximum number of names (i.e., for all parameters, variables, matrices, and functions/strings) is currently set to 50,000.

    An error message will be generated if either of these limits is exceeded when running this command.

Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Data Management
Implementation Date:
    10/2011
Program:
     
    set convert character on
    skip 25
    read draft69c.dat rank day month
    .
    let ig = group label month
    let smonth = group label to strings ig
    print smonth1 to smonth^numstrin
        
    The following output is generated.
     
     FUNCTIONS--
    
         SMONTH1 --January
         SMONTH2 --February
         SMONTH3 --March
         SMONTH4 --April
         SMONTH5 --May
         SMONTH6 --June
         SMONTH7 --July
         SMONTH8 --August
         SMONTH9 --September
         SMONTH10--October
         SMONTH11--November
         SMONTH12--December
        

Date created: 10/21/2011
Last updated: 10/21/2011
Please email comments on this WWW page to alan.heckert@nist.gov.