psse_parse

psse_parse(records, sections, verbose, rev)

psse_parse() - Parses the data from a PSS/E RAW data file.

DATA = PSSE_PARSE(RECORDS, SECTIONS)
DATA = PSSE_PARSE(RECORDS, SECTIONS, VERBOSE)
DATA = PSSE_PARSE(RECORDS, SECTIONS, VERBOSE, REV)
[DATA, WARNINGS] = PSSE_PARSE(RECORDS, SECTIONS, ...)

Parses the data from a PSS/E RAW data file (as read by PSSE_READ)
into a struct.

Inputs:
    RECORDS : cell array of strings, corresponding to the lines
              in the RAW file
    SECTIONS : struct array with indices marking the beginning
               and end of each section, and the name of the
               section, fields are:
        first   : index into RECORDS of first line of section
        last    : index into RECORDS of last line of section
        name    : name of the section, as extracted from the
                  END OF ... DATA comments
    VERBOSE      :  1 (default) to display progress info, 0 otherwise
    REV          :  (optional) assume the input file is of this
                    PSS/E revision number, attempts to determine
                    REV from the file by default

Output(s):
    DATA :  a struct with the following fields, each with two
            sub-fields, 'num' and 'txt' containing the numeric and
            text data read from the file for the corresponding section
        id
        bus
        load
        gen
        shunt
        branch
        trans2
        trans3
        area
        twodc
        swshunt
    WARNINGS :  cell array of strings containing accumulated
                warning messages

See also psse2mpc(), psse_read(), psse_parse_section(), psse_parse_line().