psse_read

psse_read(rawfile_name, verbose)

psse_read() - Reads the data from a PSS/E RAW data file.

[RECORDS, SECTIONS] = PSSE_READ(RAWFILE_NAME)
[RECORDS, SECTIONS] = PSSE_READ(RAWFILE_NAME, VERBOSE)

Reads the data from a PSS/E RAW data file into a cell array of
strings, corresponding to the lines/records in the file. It
detects the beginning and ending indices of each section as well
as any Q record used to indicate the end of the data.

Input:
    RAWFILE_NAME :  name of the PSS/E RAW file to be read
                    (opened directly with FILEREAD)
    VERBOSE      :  1 to display progress info, 0 (default) otherwise

Output:
    RECORDS :   a cell array of strings, one for each line in
                the file (new line characters not included)
    SECTIONS  : a struct array with the following fields
        first : index into RECORDS of first line of the section
        last  : index into RECORDS of last line of the section
        name  : name of the section (if available) extracted
                from the 'END OF <NAME> DATA, BEGIN ... DATA'
                comment typically found in the terminator line

See also psse2mpc().